程序运行效果:在创建窗口的时候,播放一个声音。且在窗口的客户区中央画一句文字:Hello, Windows 98!,无论程序怎么移动、最大化,文字始终在程序的中央部位。程序总共分为六个步骤:定义,注册,创建,显示,刷新,消息循环。其中定义部分还包括一个窗口回调函数WndProc。/*--------... Read More
posted @ 2014-09-14 05:58
findumars
Views(455)
Comments(0)
Diggs(1)
CreateWindowEx 函数功能:该函数创建一个具有扩展风格的重叠式窗口、弹出式窗口或子窗口,其他与 CreateWindow函数相同。关于创建窗口和其他参数的内容,请参看CreateWindowEx。 函数原型:HWND CreateWindowEx(DWORD dwExStle,LPCTS Read More
posted @ 2014-09-14 05:11
findumars
Views(9886)
Comments(1)
Diggs(1)
var t: TBitBtn;begin t:=TBitBtn.Create(nil); t.Name:='BitBtn100'; t.parent :=Self; // 这里下断点end;一路跟踪就会发现到TWinControl.UpdateShowing函数,它发现当前控件尚未有句柄,因... Read More
posted @ 2014-09-14 04:41
findumars
Views(565)
Comments(0)
Diggs(0)

浙公网安备 33010602011771号