扫一扫
分享文章到微信
扫一扫
关注官方公众号
至顶头条
在本页阅读全文(共9页)
//主程序函数
procedure CXX_RunMainProgram();
var
myMsg:TMsg;
begin
if NOT CXX_InitInstance() then
Exit;
hWndMain := CreateWindowEx(WS_EX_CLIENTEDGE or WS_EX_TOPMOST,
CXX_WND_CLASS,CXX_WND_CAPTION,
WS_VISIBLE or WS_SYSMENU or WS_MINIMIZEBOX,
0,0,320,150,0,0,hInstMain,nil);
hStcPos := CreateWindowEx(0,'static','鼠标位置:',
WS_VISIBLE OR WS_CHILD,
5,10,80,20,
hWndMain,0,hInstMain,nil);
hEdtPos := CreateWindowEx(WS_EX_CLIENTEDGE,'Edit','',
WS_VISIBLE OR WS_CHILD,
100,10,200,20,
hWndMain,0,hInstMain,nil);
hStcTitle := CreateWindowEx(0,'static','获取密码:',
WS_VISIBLE OR WS_CHILD,
5,50,80,20,
hWndMain,0,hInstMain,nil);
hEdtTitle := CreateWindowEx(WS_EX_CLIENTEDGE,'Edit','',
WS_VISIBLE OR WS_CHILD,
100,50,200,20,
hWndMain,0,hInstMain,nil);
hBtnCheck := CreateWindowEx(WS_EX_STATICEDGE or WS_EX_CLIENTEDGE,'Button','发送消息',
WS_VISIBLE OR WS_CHILD,
10,85,100,30,
hWndMain,0,hInstMain,nil);
hBtnClose := CreateWindowEx(WS_EX_STATICEDGE or WS_EX_CLIENTEDGE,'Button','退出程序',
WS_VISIBLE OR WS_CHILD,
180,85,100,30,
hWndMain,0,hInstMain,nil);
//主程序函数循环
while(GetMessage(myMsg,hWndMain,0,0)) do
begin
TranslateMessage(myMsg);
DispatchMessage(myMsg);
end;
end;
begin
CXX_RunMainProgram();
end.
如果您非常迫切的想了解IT领域最新产品与技术信息,那么订阅至顶网技术邮件将是您的最佳途径之一。
现场直击|2021世界人工智能大会
直击5G创新地带,就在2021MWC上海
5G已至 转型当时——服务提供商如何把握转型的绝佳时机
寻找自己的Flag
华为开发者大会2020(Cloud)- 科技行者