1. windows程序設計 王艷平 pdf
有個FTP裡面有:
61.132.59.166
用戶名:csdn
密碼:csdn
路徑是:計算機類/王艷平 Windows程序設侍敗計 電子書/
用FLASHFXP打開,可以看到察談歲文件目錄,注意,速度有點慢,但絕對能下載。
在第計算機內/C++/王艷平 Windows程敗睜序設計 電子書
2. windows 游戲編程大師技巧第二版 PDF
http://www.verycd.com/topics/2780526/你打開這個網站 可以用迅雷下載
你看看這個
本書是著名游戲程序設計類書籍作者André LaMothe的兩卷本《Windows游戲編程大師技巧》中的第一卷的第二版。和作者撰寫的其他暢銷書一樣,在書中隨處可見許多有趣但又有一定難度的源程序。作者循循善誘地從程序設計的角度介紹了在Windows環境下進行游戲開發所需的全部知識,包括Win32編程以及DirectX中所有主要組件(包括DirectDraw、DirectSound、DirectInput和DirectMusic)。書中還用單獨的章節詳細講授了2D圖形學和光柵化技術、游戲演算法、多線程編程、文本游戲和解析、人工智慧(包括模糊邏輯、神經網路和遺傳演算法)、物理建模(完全碰撞反應、動量傳遞和正反向運動學)及實時模擬等游戲程序開發中的關鍵技術。光碟上帶有兩套完整的在線電子版書籍,內容涉及General 3D圖形和演算法以及Direct3D直接模式;此外,還有大量其他特約作者所著的關於游戲編程內容的文章。
光碟內容:
·本書中所有程序的代碼,還包括一個新的16位引擎
·關於Direct3D和General 3D的文章和在線書籍
·通用游戲編程工具以及3D引擎的評定版本
·免費素材
·完整的Microsoft DirectX SDK
·Microsoft Visual C++入門版
300多m的是本書帶的光碟內容。網上只找到第一版書的中文pdf,第二版是英文chm格式
3. C# WinForms
花了幾分鍾寫的,沒有進行飢鄭代碼逗搜優化,不過你說的功能都實現了。`
請先在資料庫中添加一個名字為test的資料庫,一個test的表
表中的欄位為山肢歷:id,name,address
資料庫的用戶名為sa,密碼為sa
Form1.cs的代碼:
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.Data.SqlClient;
namespace WindowsApplication4
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void 數據增刪改查_Load(object sender, EventArgs e)
{
//this.dataGridView1.SelectionMode = DataGridViewSelectionMode.FullColumnSelect;
//this.textBox1.Text = "Provider=SQLOLEDB.1;Password=sa;Persist Security Info=True;User ID=sa;Initial Catalog=test;Data Source=.";
this.textBox1.Text = "Server=.;pwd=sa;uid=sa;database=test";
}
private void button5_Click(object sender, EventArgs e)
{
SqlConnection con = new SqlConnection(this.textBox1.Text);
con.Open();
SqlDataAdapter sqlda = new SqlDataAdapter("select * from test", con);
DataTable dt = new DataTable();
sqlda.Fill(dt);
this.dataGridView1.DataSource = dt;
}
private void dataGridView1_CellEndEdit(object sender, DataGridViewCellEventArgs e)
{
//if (MessageBox.Show("你是否要更新數據?", "x", MessageBoxButtons.OKCancel) == DialogResult.OK)
//{
// MessageBox.Show("OK");
// SqlConnection con = new SqlConnection(this.textBox1.Text);
// con.Open();
// SqlCommand com = new SqlCommand("update test set address = , con);
// com.ExecuteNonQuery();
// //SqlDataReader dr = com.ExecuteReader();
//}
//else
//{
// MessageBox.Show("NO");
//}
}
private void dataGridView1_SelectionChanged(object sender, EventArgs e)
{
//MessageBox.Show("xxx");
}
private void dataGridView1_UserAddedRow(object sender, DataGridViewRowEventArgs e)
{
//MessageBox.Show("xxx");
}
private void dataGridView1_CellClick(object sender, DataGridViewCellEventArgs e)
{
if (this.dataGridView1.SelectedRows.Count != 0)
{
this.textBox7.Text = this.dataGridView1.SelectedRows[0].Cells["id"].Value.ToString();
this.textBox8.Text = this.dataGridView1.SelectedRows[0].Cells["name"].Value.ToString();
this.textBox9.Text = this.dataGridView1.SelectedRows[0].Cells["address"].Value.ToString();
}
}
private void button3_Click(object sender, EventArgs e)
{
if (MessageBox.Show("你是否要更新數據?", "x", MessageBoxButtons.OKCancel) == DialogResult.OK)
{
SqlConnection con = new SqlConnection(this.textBox1.Text);
con.Open();
SqlCommand com = new SqlCommand("update test set name= '" + this.textBox8.Text + "' ,address= '" + this.textBox9.Text+"' where id="+this.textBox7.Text,con);
com.ExecuteNonQuery();
MessageBox.Show("更新成功!");
button5_Click(null, null);
}
}
private void dataGridView1_CellContentClick(object sender, DataGridViewCellEventArgs e)
{
}
private void button2_Click(object sender, EventArgs e)
{
if (MessageBox.Show("你是否要刪除數據?", "x", MessageBoxButtons.OKCancel) == DialogResult.OK)
{
SqlConnection con = new SqlConnection(this.textBox1.Text);
con.Open();
SqlCommand com = new SqlCommand("delete from test where id='"+textBox7.Text+"'",con);
com.ExecuteNonQuery();
MessageBox.Show("刪除成功!");
button5_Click(null, null);
}
}
private void button1_Click(object sender, EventArgs e)
{
if (this.textBox3.Text != null && this.textBox4.Text != null && this.textBox5.Text != null)
{
SqlConnection con = new SqlConnection(this.textBox1.Text);
con.Open();
SqlCommand com = new SqlCommand("insert test (id,name,address) values('"+this.textBox3.Text+"','"+this.textBox4.Text+"','"+this.textBox5.Text+"')",con);
com.ExecuteNonQuery();
MessageBox.Show("添加成功!");
button5_Click(null, null);
}
else
{
MessageBox.Show("請完整填寫信息!");
}
}
private void button4_Click(object sender, EventArgs e)
{
if (this.radioButton1.Checked || this.radioButton2.Checked)
{
if (this.textBox2.Text != null)
{
if (this.radioButton1.Checked)
{
SqlConnection con = new SqlConnection(this.textBox1.Text);
con.Open();
SqlDataAdapter sqlda = new SqlDataAdapter("select * from test where id='"+this.textBox2.Text+"'", con);
DataTable dt = new DataTable();
sqlda.Fill(dt);
this.dataGridView1.DataSource = dt;
}
else
{
SqlConnection con = new SqlConnection(this.textBox1.Text);
con.Open();
SqlDataAdapter sqlda = new SqlDataAdapter("select * from test where name='" + this.textBox2.Text + "'", con);
DataTable dt = new DataTable();
sqlda.Fill(dt);
this.dataGridView1.DataSource = dt;
}
}
else
{
MessageBox.Show("請輸入查詢內容!");
this.textBox2.Focus();
}
}
else
{
MessageBox.Show("請選擇查詢方式!");
this.radioButton1.Checked = true;
}
}
}
}
Form1.Designer.cs的代碼:
namespace WindowsApplication4
{
partial class Form1
{
/// <summary>
/// 必需的設計器變數。
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// 清理所有正在使用的資源。
/// </summary>
/// <param name="disposing">如果應釋放託管資源,為 true;否則為 false。</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Windows 窗體設計器生成的代碼
/// <summary>
/// 設計器支持所需的方法 - 不要
/// 使用代碼編輯器修改此方法的內容。
/// </summary>
private void InitializeComponent()
{
this.button1 = new System.Windows.Forms.Button();
this.button2 = new System.Windows.Forms.Button();
this.button4 = new System.Windows.Forms.Button();
this.textBox1 = new System.Windows.Forms.TextBox();
this.label1 = new System.Windows.Forms.Label();
this.button5 = new System.Windows.Forms.Button();
this.textBox2 = new System.Windows.Forms.TextBox();
this.radioButton1 = new System.Windows.Forms.RadioButton();
this.radioButton2 = new System.Windows.Forms.RadioButton();
this.textBox3 = new System.Windows.Forms.TextBox();
this.textBox4 = new System.Windows.Forms.TextBox();
this.textBox5 = new System.Windows.Forms.TextBox();
this.dataGridView1 = new System.Windows.Forms.DataGridView();
this.id = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.name = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.address = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.textBox7 = new System.Windows.Forms.TextBox();
this.textBox8 = new System.Windows.Forms.TextBox();
this.textBox9 = new System.Windows.Forms.TextBox();
this.button3 = new System.Windows.Forms.Button();
((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).BeginInit();
this.SuspendLayout();
//
// button1
//
this.button1.Location = new System.Drawing.Point(460, 301);
this.button1.Name = "button1";
this.button1.Size = new System.Drawing.Size(75, 23);
this.button1.TabIndex = 0;
this.button1.Text = "添加";
this.button1.UseVisualStyleBackColor = true;
this.button1.Click += new System.EventHandler(this.button1_Click);
//
// button2
//
this.button2.Location = new System.Drawing.Point(460, 359);
this.button2.Name = "button2";
this.button2.Size = new System.Drawing.Size(75, 23);
this.button2.TabIndex = 1;
this.button2.Text = "刪除";
this.button2.UseVisualStyleBackColor = true;
this.button2.Click += new System.EventHandler(this.button2_Click);
//
// button4
//
this.button4.Location = new System.Drawing.Point(460, 272);
this.button4.Name = "button4";
this.button4.Size = new System.Drawing.Size(75, 23);
this.button4.TabIndex = 3;
this.button4.Text = "查找";
this.button4.UseVisualStyleBackColor = true;
this.button4.Click += new System.EventHandler(this.button4_Click);
//
// textBox1
//
this.textBox1.Location = new System.Drawing.Point(83, 12);
this.textBox1.Name = "textBox1";
this.textBox1.Size = new System.Drawing.Size(371, 21);
this.textBox1.TabIndex = 4;
//
// label1
//
this.label1.AutoSize = true;
this.label1.Location = new System.Drawing.Point(12, 15);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(65, 12);
this.label1.TabIndex = 5;
this.label1.Text = "連接字元串";
//
// button5
//
this.button5.Location = new System.Drawing.Point(460, 12);
this.button5.Name = "button5";
this.button5.Size = new System.Drawing.Size(75, 23);
this.button5.TabIndex = 6;
this.button5.Text = "連接資料庫";
this.button5.UseVisualStyleBackColor = true;
this.button5.Click += new System.EventHandler(this.button5_Click);
//
// textBox2
//
this.textBox2.Location = new System.Drawing.Point(14, 272);
this.textBox2.Name = "textBox2";
this.textBox2.Size = new System.Drawing.Size(184, 21);
this.textBox2.TabIndex = 8;
//
// radioButton1
//
this.radioButton1.AutoSize = true;
this.radioButton1.Location = new System.Drawing.Point(234, 276);
this.radioButton1.Name = "radioButton1";
this.radioButton1.Size = new System.Drawing.Size(71, 16);
this.radioButton1.TabIndex = 9;
this.radioButton1.TabStop = true;
this.radioButton1.Text = "按ID查找";
this.radioButton1.UseVisualStyleBackColor = true;
//
// radioButton2
//
this.radioButton2.AutoSize = true;
this.radioButton2.Location = new System.Drawing.Point(336, 278);
this.radioButton2.Name = "radioButton2";
this.radioButton2.Size = new System.Drawing.Size(83, 16);
this.radioButton2.TabIndex = 10;
this.radioButton2.TabStop = true;
this.radioButton2.Text = "按Name查找";
this.radioButton2.UseVisualStyleBackColor = true;
//
// textBox3
//
this.textBox3.Location = new System.Drawing.Point(14, 302);
this.textBox3.Name = "textBox3";
this.textBox3.Size = new System.Drawing.Size(98, 21);
this.textBox3.TabIndex = 11;
//
// textBox4
//
this.textBox4.Location = new System.Drawing.Point(166, 303);
this.textBox4.Name = "textBox4";
this.textBox4.Size = new System.Drawing.Size(100, 21);
this.textBox4.TabIndex = 12;
//
// textBox5
//
this.textBox5.Location = new System.Drawing.Point(331, 303);
this.textBox5.Name = "textBox5";
this.textBox5.Size = new System.Drawing.Size(100, 21);
this.textBox5.TabIndex = 13;
//
// dataGridView1
//
this.dataGridView1.ColumnHeadersHeightSizeMode = System.Windows.Forms..AutoSize;
this.dataGridView1.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
this.id,
this.name,
this.address});
this.dataGridView1.Location = new System.Drawing.Point(14, 39);
this.dataGridView1.Name = "dataGridView1";
this.dataGridView1.RowTemplate.Height = 23;
this.dataGridView1.Size = new System.Drawing.Size(440, 227);
this.dataGridView1.TabIndex = 18;
this.dataGridView1.UserAddedRow += new System.Windows.Forms.DataGridViewRowEventHandler(this.dataGridView1_UserAddedRow);
this.dataGridView1.CellClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dataGridView1_CellClick);
this.dataGridView1.CellEndEdit += new System.Windows.Forms.DataGridViewCellEventHandler(this.dataGridView1_CellEndEdit);
this.dataGridView1.SelectionChanged += new System.EventHandler(this.dataGridView1_SelectionChanged);
this.dataGridView1.CellContentClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dataGridView1_CellContentClick);
//
// id
//
this.id.DataPropertyName = "id";
this.id.HeaderText = "id";
this.id.Name = "id";
this.id.ReadOnly = true;
//
// name
//
this.name.DataPropertyName = "name";
this.name.HeaderText = "name";
this.name.Name = "name";
this.name.ReadOnly = true;
//
// address
//
this.address.DataPropertyName = "address";
this.address.HeaderText = "address";
this.address.Name = "address";
//
// textBox7
//
this.textBox7.Location = new System.Drawing.Point(12, 342);
this.textBox7.Name = "textBox7";
this.textBox7.Size = new System.Drawing.Size(100, 21);
this.textBox7.TabIndex = 15;
//
// textBox8
//
this.textBox8.Location = new System.Drawing.Point(166, 342);
this.textBox8.Name = "textBox8";
this.textBox8.Size = new System.Drawing.Size(100, 21);
this.textBox8.TabIndex = 16;
//
// textBox9
//
this.textBox9.Location = new System.Drawing.Point(331, 342);
this.textBox9.Name = "textBox9";
this.textBox9.Size = new System.Drawing.Size(100, 21);
this.textBox9.TabIndex = 17;
//
// button3
//
this.button3.Location = new System.Drawing.Point(460, 330);
this.button3.Name = "button3";
this.button3.Size = new System.Drawing.Size(75, 23);
this.button3.TabIndex = 2;
this.button3.Text = "修改";
this.button3.UseVisualStyleBackColor = true;
this.button3.Click += new System.EventHandler(this.button3_Click);
//
// Form1
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(553, 387);
this.Controls.Add(this.dataGridView1);
this.Controls.Add(this.textBox9);
this.Controls.Add(this.textBox8);
this.Controls.Add(this.textBox7);
this.Controls.Add(this.textBox5);
this.Controls.Add(this.textBox4);
this.Controls.Add(this.textBox3);
this.Controls.Add(this.radioButton2);
this.Controls.Add(this.radioButton1);
this.Controls.Add(this.textBox2);
this.Controls.Add(this.button5);
this.Controls.Add(this.label1);
this.Controls.Add(this.textBox1);
this.Controls.Add(this.button4);
this.Controls.Add(this.button3);
this.Controls.Add(this.button2);
this.Controls.Add(this.button1);
this.Name = "Form1";
this.Text = "數據增刪改查";
this.Load += new System.EventHandler(this.數據增刪改查_Load);
((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).EndInit();
this.ResumeLayout(false);
this.PerformLayout();
}
#endregion
private System.Windows.Forms.Button button1;
private System.Windows.Forms.Button button2;
private System.Windows.Forms.Button button4;
private System.Windows.Forms.TextBox textBox1;
private System.Windows.Forms.Label label1;
private System.Windows.Forms.Button button5;
private System.Windows.Forms.TextBox textBox2;
private System.Windows.Forms.RadioButton radioButton1;
private System.Windows.Forms.RadioButton radioButton2;
private System.Windows.Forms.TextBox textBox3;
private System.Windows.Forms.TextBox textBox4;
private System.Windows.Forms.TextBox textBox5;
private System.Windows.Forms.DataGridView dataGridView1;
private System.Windows.Forms.DataGridViewTextBoxColumn id;
private System.Windows.Forms.DataGridViewTextBoxColumn name;
private System.Windows.Forms.DataGridViewTextBoxColumn address;
private System.Windows.Forms.TextBox textBox7;
private System.Windows.Forms.TextBox textBox8;
private System.Windows.Forms.TextBox textBox9;
private System.Windows.Forms.Button button3;
}
}
4. 《Windows核心編程(第5版)微軟技術叢書》pdf下載在線閱讀,求百度網盤雲資源
《Windows核心編程》(Jeffrey Richter)電子書網盤下載免費在線閱讀
鏈接:
書名:Windows核心編程
作者:Jeffrey Richter
豆瓣評分:9.2
出版社:人民郵電出版社
出版年份:2008-8
頁數:820
內容簡介:
【內容簡介】
本書是Windows 程序設計領域的名著,涵蓋了Windows 的最新版本Vista 以及Windows XP 的最新內容。書中全面深入地介紹了Windows 的各種基本要素,如進程、線程池、虛擬內存、DLL、設備I/O 和SEH 等,並列舉了大量應用程序,精闢地分析了要素的使用方法。.
本書適於各層次Windows 編程人員閱讀。 ...
【目錄信息】
Acknowledgments . xxi
Introction xxiii
64-Bit Windows xxiii
What』s New in the Fifth Edition xxiv
Code Samples and System Requirements xxvi
Support for This Book xxvi
Questions and Comments xxvi
Part I Required Reading
1 Error Handling 3
Defining Your Own Error Codes 7
The ErrorShow Sample Application 7
2 Working with Characters and Strings 11
Character Encodings 12
ANSI and Unicode Character and String Data Types 13
Unicode and ANSI Functions in Windows 15
Unicode and ANSI Functions in the C Run-Time Library 17
Secure String Functions in the C Run-Time Library 18
Introcing the New Secure String Functions 19
How to Get More Control When Performing String Operations 22
<< 查看詳細目錄
作者簡介:
Jeffrey Richter全球享有盛譽的微軟技術專家,著名技術咨詢和培訓公司Wintellect創始人之一,MSDN Magazine雜志特邀編輯。多年來,他擔任微軟各開發團隊顧問,參與了微軟的許多關鍵產品包括各版本Windows、Visual Studio、Microsoft Offce和.NET框架的設計和編程。他撰寫了一系列著作,包括本書和《深入理解.NET》(第2版·英文版,人民郵電出版社。2008),都堪稱技術圖書的典範,影響了一代Windows程序員,並因此榮獲微軟公司杜區最高技術榮譽「微軟軟體傳奇人物」(Software Legend)稱號。
5. C#Windows Forms程序設計,跪求正確答案!!
[DllImport("user32.dll", EntryPoint="SetWindowsHook")]
public static extern int SetWindowsHook (
int nFilterType,
int pfnFilterProc
);
鉤手散喊子技掘脊術畢野
6. 《Windows程序設計》epub下載在線閱讀,求百度網盤雲資源
《Windows程序設計》(佩措爾德)電子書網盤下載免費在線閱讀
資源鏈接:
鏈接:https://pan..com/s/1RzM_2TB0AvVAL1RRHdFWkA
書名:Windows程序設計
作者:佩措爾德
譯者:方敏
豆瓣評分:9.1
出版社:北京大學出版社
出版年份:2010-9
頁數:1114
內容簡介:
《Windows程序設計(第5版 珍藏版)》是一本經典的Windows編程聖經,曾經伴隨著近50萬Windows程序員步入編程殿堂,成長為IT時代的技術精英。
作為Windows開發人員的必備參考,涵蓋基礎知識和中高級主題,全面地介紹了Windows程序設計所涉及的細枝末節,旨在幫助讀者從高屋見瓴的角度,建立完整的知識體系,為以後的職業生涯奠定良好的基礎。全書共3部分23章。第1~12章著重介紹基礎知識,第13~18章的主題為圖形,第19~23章涉及更多高級主題。
《Windows程序設計(第5版 珍藏版)》適合任何層次的Windows程序員閱讀和參考,是幫助他們梳理和建立Windows知識體系的理想讀物。
點擊鏈接進入英文版:
Programming Windows 5th Edition Book/CD Package
作者簡介:
Charles Petzold 從1984年開始編寫個人計算機程序,從1985年開始編寫Micrososft Windows程序。他在《Microsoft Systems Journal》1986年12月號上發表了第一篇關於Windows程序設計的雜志論文。從1986年到1995年,他為《PC Magazine》撰寫「Environments」專欄,給讀者介紹了Windows和OS/2程序設計的許多方面。
《Windows程序設計》由微軟出版社在1988年首次出版,後來被認為是這方面最好的導論性讀本。在1994年5月,Petzold作為僅有的七個人之一(並且是唯一的作家)被《Windows Magazine》和Microsoft公司授予Windows Pioneer獎,以表彰他對Microsoft Windows的成功做出的貢獻。
在1999年秋天,微軟出版社將出版Charles Petzold 面向普通讀者的第一本書。暫時命名為《Code: The Hidden Language of Computer Hardware and Software》,這本書專門介紹數字信息的本質以及計算機處理數字信息的方式。
7. 用C#語言編寫windows窗體應用程序
控制項如圖,由左到右,由上到下,分別命名為b1,b2,b3,b4,l1,l2,button1,button2,timer1,timer2
timer1與timer2的Enabled的屬性默認為false,Interval默認為1000,
後代代碼如下
boolIsopen=false;
intb2Times=0;
intb3Times=0;
intonebreak=0;
privatevoidb1_Click(objectsender,EventArgse)
{
Isopen=true;
if(onebreak==1)
{
timer1.Enabled=true;
}
if(onebreak==2)
{
timer2.Enabled=true;
}
}
privatevoidb2_Click(objectsender,EventArgse)
{
if(onebreak==0)
{
if(Isopen==false)
{
return;
}
b2Times+=1;
if(b2Times>=b3Times)
敏巧{
缺顫l1.BackColor=Color.Red;
l2.BackColor=Color.White;
}
}
}
privatevoidb3_Click(objectsender,EventArgse)
{
if(onebreak==0)
{
if(Isopen==false)
{
return;
}
b3Times+=1;
if(b3Times>=b2Times)
{
l1.BackColor=Color.White;
l2.BackColor=Color.Red;
}
}
}
privatevoidb4_Click(objectsender,EventArgse)
橋扮鍵{
b3Times=0;
b2Times=0;
Isopen=false;
l1.BackColor=Color.White;
l2.BackColor=Color.White;
timer1.Enabled=false;
timer2.Enabled=false;
}
privatevoidbutton1_Click(objectsender,EventArgse)
{
if(onebreak==1)
{
button1.Text="第一個燈泡壞掉";
onebreak=0;
timer1.Enabled=false;
button2.Enabled=true;
return;
}
onebreak=1;
l2.BackColor=Color.White;
button1.Text="修好它";
button2.Enabled=false;
if(Isopen==false)
{
return;
}
timer2.Enabled=false;
timer1.Enabled=true;
}
privatevoidbutton2_Click(objectsender,EventArgse)
{
if(onebreak==2)
{
button2.Text="第二個燈泡壞掉";
onebreak=0;
timer2.Enabled=false;
button1.Enabled=true;
return;
}
onebreak=2;
l1.BackColor=Color.White;
button2.Text="修好它";
button1.Enabled=false;
if(Isopen==false)
{
return;
}
timer2.Enabled=true;
timer1.Enabled=false;
}
privatevoidtimer1_Tick(objectsender,EventArgse)
{
if(l1.BackColor!=Color.Red)
{
l1.BackColor=Color.Red;
return;
}
if(l1.BackColor!=Color.White)
{
l1.BackColor=Color.White;
return;
}
}
privatevoidtimer2_Tick(objectsender,EventArgse)
{
if(l2.BackColor!=Color.Red)
{
l2.BackColor=Color.Red;
return;
}
if(l2.BackColor!=Color.White)
{
l2.BackColor=Color.White;
return;
}
}
8. 求windows程序設計張錚孫寶山周天立第三版PDF
Ptstr 是定義為 wchar * (即寬字元指針)或 char * 的宏。 Tchar 也是一個宏,定義為 wchar (寬字元)或 char。 C 中的一個(類型)表達式,它是一個強制轉換。 Text」也是一個宏,它的功能是,如果你編寫一個定義為 unicode 版本的程序,text (「 abc」)前面有一個 l,然後變成 l「 abc」 ,它被定義為一個寬字元串。 「宏定義,寬字元,l」「這些概念將在 c 語言入門中提到,如果沒有學習基礎太差,最好填寫 c 語言的基礎,否則窗口編程是很難學的