Evacuator/Evacuator/Evacuator.cpp
//
//   FUNCTION: InitInstance(HINSTANCE, int)
//
//   PURPOSE: Saves instance handle and creates main window
//
//   COMMENTS:
//
//        In this function, we save the instance handle in a global variable and
//        create and display the main program window.
//
InitInstance(HINSTANCE, int)
PURPOSE: Saves instance handle and creates main window



In this function, we save the instance handle in a global variable and
create and display the main program window.
InitInstance ( HINSTANCE int ) PURPOSE : Saves instance handle and creates main window In this function we save the instance handle in a global variable and create and display the main program window .
BOOL InitInstance(HINSTANCE hInstance, int )
{
	HWND hWnd;
	hInst = hInstance; 
	hWnd = CreateWindowEx(WS_EX_TOOLWINDOW, szWindowClass, szTitle, WS_OVERLAPPEDWINDOW,
		CW_USEDEFAULT, 0, CW_USEDEFAULT, 0, nullptr, nullptr, hInstance, nullptr);
	if (!hWnd) {
		return FALSE;
	}
	createTaskTrayIcon(hInstance, hWnd);
	return TRUE;
}
BOOL InitInstance ( HINSTANCE hInstance , int ) { HWND hWnd ; hInst = hInstance ; hWnd = CreateWindowEx ( WS_EX_TOOLWINDOW , szWindowClass , szTitle , WS_OVERLAPPEDWINDOW , CW_USEDEFAULT , 0 , CW_USEDEFAULT , 0 , nullptr , nullptr , hInstance , nullptr ) ; if ( ! hWnd ) { return FALSE ; } createTaskTrayIcon ( hInstance , hWnd ) ; return TRUE ; }
FUNCTION: InitInstance(HINSTANCE, int)
PURPOSE: Saves instance handle and creates main window
FUNCTION : InitInstance ( HINSTANCE int ) PURPOSE : Saves instance handle and creates main window
/*nCmdShow*/ // Store instance handle in our global variable //ShowWindow(hWnd, nCmdShow); //UpdateWindow(hWnd); //タスクトレイにアイコン設置