| 25 | INT_PTR CALLBACK About(HWND, UINT, WPARAM, LPARAM); |
| 26 | |
| 27 | int APIENTRY wWinMain(_In_ HINSTANCE hInstance, |
| 28 | _In_opt_ HINSTANCE hPrevInstance, |
| 29 | _In_ LPWSTR lpCmdLine, |
| 30 | _In_ int nCmdShow) |
| 31 | { |
| 32 | UNREFERENCED_PARAMETER(hPrevInstance); |
| 33 | UNREFERENCED_PARAMETER(lpCmdLine); |
| 34 | |
| 35 | // TODO: 在此处放置代码。} |
| 36 | |
| 37 | // 初始化全局字符串 |
| 38 | LoadStringW(hInstance, IDS_APP_TITLE, szTitle, MAX_LOADSTRING); |
| 39 | LoadStringW(hInstance, IDC_SIMPLEWIN, szWindowClass, MAX_LOADSTRING); |
| 40 | MyRegisterClass(hInstance); |
| 41 | |
| 42 | // 执行应用程序初始化: |
| 43 | if (!InitInstance (hInstance, nCmdShow)) { |
| 44 | return FALSE; |
| 45 | } |
| 46 | |
| 47 | HACCEL hAccelTable = LoadAccelerators(hInstance, MAKEINTRESOURCE(IDC_SIMPLEWIN)); |
| 48 | |
| 49 | MSG msg; |
| 50 | |
| 51 | // 主消息循环: |
| 52 | while (GetMessage(&msg, nullptr, 0, 0)) { |
| 53 | if (!TranslateAccelerator(msg.hwnd, hAccelTable, &msg)) { |
| 54 | TranslateMessage(&msg); |
| 55 | DispatchMessage(&msg); |
| 56 | } |
| 57 | } |
| 58 | |
| 59 | return (int) msg.wParam; |
| 60 | } |
| 61 | |
| 62 | // |
| 63 | // 函数: MyRegisterClass() |
nothing calls this directly
no test coverage detected
searching dependent graphs…