摘要: 1 #include 2 #include "resource.h" 3 //#include "windows.rc" 4 5 /* Declare Windows procedure */ 6 LRESULT CALLBACK WindowProcedure (HWND, UINT, WPARAM, LPARAM); 7 8 /* Make the class name into a global variable */ 9 char szClassName[ ] = "CodeBlocksWindowsApp";10 11 in 阅读全文
posted @ 2014-01-01 19:43 rainboy 阅读(266) 评论(0) 推荐(0)
摘要: 学习自:http://blog.csdn.net/caimouse/article/details/1676859用Resedit 添加了 rc资源文件后 CB编译成功; 1 #include 2 #include "resource.h" 3 //#include "windows.rc" 4 5 /* Declare Windows procedure */ 6 LRESULT CALLBACK WindowProcedure (HWND, UINT, WPARAM, LPARAM); 7 8 /* Make the class name into 阅读全文
posted @ 2014-01-01 19:32 rainboy 阅读(218) 评论(0) 推荐(0)
摘要: 学习自:http://blog.csdn.net/caimouse/article/details/1675586#include int WINAPI WinMain( HINSTANCE hInstance, // handle to current instanceHINSTANCE hPrevInstance, // handle to previous instanceLPSTR lpCmdLine, // command lineint nCmdShow // show state){HWND hwnd = GetDesktopWindow();MessageBoxA(hwnd,& 阅读全文
posted @ 2014-01-01 19:11 rainboy 阅读(222) 评论(0) 推荐(0)