MCPcopy Create free account
hub / github.com/acl-dev/acl / wWinMain

Function wWinMain

lib_fiber/samples-gui/SimpleWin/SimpleWin.cpp:27–60  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

25INT_PTR CALLBACK About(HWND, UINT, WPARAM, LPARAM);
26
27int 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()

Callers

nothing calls this directly

Calls 3

MyRegisterClassFunction · 0.85
GetMessageFunction · 0.85
InitInstanceFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…