标签:gis pcm int 显示 box rbac ons max tts
成功创建出第一个窗口
虽然无法对窗口进行操作
代码
int CALLBACK WinMain( _In_ HINSTANCE hInstance, _In_opt_ HINSTANCE hPrevInstance, _In_ LPSTR lpCmdLine, _In_ int nShowCmd) { const auto pClassName = L"renyibutts"; //注册一个窗口类 WNDCLASSEX wc = {0}; wc.cbSize = sizeof(wc); wc.style = CS_OWNDC; wc.lpfnWndProc = DefWindowProc; wc.cbClsExtra = 0; wc.cbWndExtra = 0; wc.hInstance = hInstance; wc.hIcon = nullptr; wc.hCursor = nullptr; wc.hbrBackground = nullptr; wc.lpszMenuName = nullptr; wc.lpszClassName = pClassName; wc.hIconSm = nullptr; RegisterClassEx(&wc); //创造实例 HWND hWnd = CreateWindowEx( 0, pClassName, L"Happy Hard Window", WS_CAPTION | WS_MAXIMIZEBOX | WS_SYSMENU, 200, 200, 640, 480, nullptr, nullptr, hInstance, nullptr );
//显示窗口 ShowWindow(hWnd, SW_SHOW); while (true); return 0; }
标签:gis pcm int 显示 box rbac ons max tts
原文地址:https://www.cnblogs.com/renyiz/p/14316738.html