摘要: WM_ACTIVATEThe WM_ACTIVATE message is sent to both the window being activated and the window being deactivated. If the windows use the same input queue, the message is sent synchronously, first to the window procedure of the top-level window being deactivated, then to the window procedure of the top 阅读全文
posted @ 2012-05-18 14:49 —八戒— 阅读(10901) 评论(0) 推荐(0) 编辑
摘要: 一个典型的Win32窗口应用程式的框架是这样的: 程式入口点(WinMain函数)-->注册窗口类(调用RegisterClass函数或RegisterClassEx函数)-->创建主窗口(调用CreateWindow函数或CreateWindowEx函数)-->显示主窗口(调用ShowWindow函数)-->更新主窗口(调用UpdateWindow函数)-->进入消息循环(GetMessage、TranslateMessage、DispatchMessage)并处理各种Windows消息(窗口过程函数)-->程式出口点(WinMain返回)。就像下面这个例 阅读全文
posted @ 2012-05-18 09:31 —八戒— 阅读(216) 评论(0) 推荐(0) 编辑