How WinMain Execute
来源:互联网 发布:乌丸莲耶 知乎 编辑:程序博客网 时间:2024/06/05 07:05
Windows delivers the address in memory represented by HINSTANCE(tell the winmain where should execute), szCmdline (what the cmdline )and iCmdShow (how to show the window) to WinMain function then WinMain(main thread) executes your code.Register a window class ,create a window using it and involve the message loop and so forth.
Later,Windows call window procedure associated with the main thread by passing MSG structure,that is to say Windows sends message to the window ,then your code is executed again by system(not by itself).
Many messages is handled by the DefWindowProc ,that is to say ,You let Windows does it not you.You task is only take care what you want ,such as WM_KDOWN message,WM_CHAR message ,and let your own code to repond the message ,this is Windows programing.haha!!!!
Do what you like in window procedure!!!
- How WinMain Execute
- How to execute Makefile
- How do programs execute?
- WinMain
- winmain
- WinMain
- winmain
- WinMain
- WinMain
- How to execute the jar
- How to: Execute Expression Trees
- How to execute jar file
- How to execute system command in MSSQL
- How to execute system command in MSSQL
- How to execute system command in MSSQL
- How to execute system command in MSSQL
- How DB2 execute a sql file
- How to execute a query in varchar2 ?
- 中文问题
- ASP.NET中文件上传下载方法总结
- Chinese servers host malicious cursor attacks——中国主机遭受恶意攻击
- 关于windows系统中文件夹的隐藏
- 过河问题的图论解法
- How WinMain Execute
- ERP SAP ABAP
- 怎样在选择屏幕中添加LISTBOX
- c++ g++ int 转化为 string
- Merge Two Sorted Single-linke List
- 不想帮人家写一辈子程序就要看的一本书
- 让别人欣赏你的28个理由
- 一个数组函数 ArrayToValue
- 建立国内Web前端开发的生态系统