Menu

Programming the road / Blog: Recent posts

使用C++创建一个窗口源代码

以下代码均手写,已全部注释其意思,正准备写一个参考手册,方便创建窗口。。。。。。。


include <windows.h></windows.h>

LRESULT CALLBACK WndProc(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam);

int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, PSTR szCmdLine, int iCmdShow)
{
static TCHAR * szAppName = TEXT("main"); // 设置WNDCLASS名称... read more

Posted by cnnidajie 2013-01-24