![](https://img-blog.csdnimg.cn/20201014180756916.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Windows
文章平均质量分 80
飞天遇见妞
学海无涯回头是岸
展开
-
<02>创建Window窗口
#include //7.消息处理 LRESULT CALLBACK WndProc(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam) { return DefWindowProc(hWnd, msg, wParam, lParam); } int WINAPI WinMain(HINSTANCE hInstance, HI转载 2016-01-12 23:41:18 · 248 阅读 · 0 评论 -
<03>消息处理
#include //7.消息处理 LRESULT CALLBACK WndProc(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam) { TCHAR Text[100]; switch (msg) { case WM_CREATE: MessageBox(NULL, L"Create Window", L"Title"转载 2016-01-12 23:49:16 · 197 阅读 · 0 评论 -
<04>自定义消息
#include #include //自定义消息 #define WM_MYMSG WM_USER + 1 //7.消息处理 LRESULT CALLBACK WndProc(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam) { TCHAR Text[100]; switch (msg) { case W转载 2016-01-12 23:52:09 · 256 阅读 · 0 评论 -
<01>HelloWorld
#include int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nShowCmd) { int res = MessageBox(NULL, L"Hello World", L"This is Window", MB_YESNO | MB_ICONASTER转载 2016-01-12 23:39:27 · 284 阅读 · 0 评论