MCPcopy Create free account
hub / github.com/csersoft/HWFW_GUI / InitInstance

Function InitInstance

HWFW_GUI/HWFW_GUI.cpp:22–29  ·  view source on GitHub ↗

函数: InitInstance(HINSTANCE, int) 目的: 保存实例句柄并创建主窗口 注释: 在此函数中,我们在全局变量中保存实例句柄并 创建和显示主程序窗口。

Source from the content-addressed store, hash-verified

20// 创建和显示主程序窗口。
21//
22BOOL InitInstance(HINSTANCE hInstance, int nCmdShow)
23{
24 hInst = hInstance; // 将实例句柄存储在全局变量中
25
26 DialogBox(hInstance, MAKEINTRESOURCE(IDD_MAINDLG), NULL, &DlgProc_Main);
27
28 return TRUE;
29}
30
31int APIENTRY wWinMain(_In_ HINSTANCE hInstance,
32 _In_opt_ HINSTANCE hPrevInstance,

Callers 1

wWinMainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected