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

Function MyRegisterClass

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

函数: MyRegisterClass() 目标: 注册窗口类。

Source from the content-addressed store, hash-verified

65// 目标: 注册窗口类。
66//
67ATOM MyRegisterClass(HINSTANCE hInstance)
68{
69 WNDCLASSEXW wcex;
70
71 wcex.cbSize = sizeof(WNDCLASSEX);
72
73 wcex.style = CS_HREDRAW | CS_VREDRAW;
74 wcex.lpfnWndProc = WndProc;
75 wcex.cbClsExtra = 0;
76 wcex.cbWndExtra = 0;
77 wcex.hInstance = hInstance;
78 wcex.hIcon = LoadIcon(hInstance, MAKEINTRESOURCE(IDI_SIMPLEWIN));
79 wcex.hCursor = LoadCursor(nullptr, IDC_ARROW);
80 wcex.hbrBackground = (HBRUSH)(COLOR_WINDOW+1);
81 wcex.lpszMenuName = MAKEINTRESOURCEW(IDC_SIMPLEWIN);
82 wcex.lpszClassName = szWindowClass;
83 wcex.hIconSm = LoadIcon(wcex.hInstance, MAKEINTRESOURCE(IDI_SMALL));
84
85 return RegisterClassExW(&wcex);
86}
87
88static bool InitSocket(void)
89{

Callers 1

wWinMainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…