Lines Matching refs:main_wnd

141 	if ((full_screen != this->fullscreen) && this->main_wnd) {  in MakeWindow()
142 DestroyWindow(this->main_wnd); in MakeWindow()
143 this->main_wnd = 0; in MakeWindow()
208 if (this->main_wnd != nullptr) { in MakeWindow()
209 …if (!_window_maximize && resize) SetWindowPos(this->main_wnd, 0, 0, 0, w, h, SWP_NOACTIVATE | SWP_… in MakeWindow()
217 …this->main_wnd = CreateWindow(L"OTTD", OTTD2FS(window_title).c_str(), style, x, y, w, h, 0, 0, Get… in MakeWindow()
218 if (this->main_wnd == nullptr) usererror("CreateWindow failed"); in MakeWindow()
219 ShowWindow(this->main_wnd, showstyle); in MakeWindow()
801 DestroyWindow(this->main_wnd); in Stop()
888 if (_window_maximize) ShowWindow(this->main_wnd, SW_SHOWNORMAL); in ChangeResolution()
906 CancelIMEComposition(this->main_wnd); in EditBoxLostFocus()
907 SetCompositionPos(this->main_wnd); in EditBoxLostFocus()
908 SetCandidatePos(this->main_wnd); in EditBoxLostFocus()
962 if (cur_dpi == 0 && _GetDpiForWindow != nullptr && this->main_wnd != nullptr) { in GetDPIScale()
964 cur_dpi = _GetDpiForWindow(this->main_wnd); in GetDPIScale()
966 if (cur_dpi == 0 && _GetDpiForMonitor != nullptr && this->main_wnd != nullptr) { in GetDPIScale()
969 …if (SUCCEEDED(_GetDpiForMonitor(MonitorFromWindow(this->main_wnd, MONITOR_DEFAULTTOPRIMARY), 0 /* … in GetDPIScale()
1124 HDC dc = GetDC(this->main_wnd); in Paint()
1157 ReleaseDC(this->main_wnd, dc); in Paint()
1346 ReleaseDC(this->main_wnd, this->dc); in DestroyContext()
1362 this->dc = GetDC(this->main_wnd); in AllocateContext()