int WINAPI WinMain (HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow) { MSG msg; MyWnd mainWnd("Statistic counter",hInstance, nCmdShow, WndProc, MAKEINTRESOURCE(IDR_MENU1), CW_USEDEFAULT, 0, CW_USEDEFAULT, 0, CS_HREDRAW | CS_VREDRAW, WS_OVERLAPPEDWINDOW | WS_VSCROLL | WS_HSCROLL); HWND hWnd=mainWnd.GetWnd(); while (GetMessage (&msg, NULL, 0, 0)) { TranslateMessage (&msg); DispatchMessage (&msg); } return msg.wParam; }
/** * Constructs a sub-menu showing all open editor windows. * Called before the "Window" menu is shown. */ void Actions::showWindowMenu() { wndMenu_->clear(); mainWnd()->editCont_->populateWindowMenu(wndMenu_); }