ChangeDisplaySettings(dm, 0); SetWindowLong(h,GWL_STYLE,WS_OVERLAPPED or WS_SYSMENU or WS_CAPTION or WS_MINIMIZEBOX or WS_VISIBLE); MoveWindow(h, 0, 0, 800 + 5, 600 + 10, true); SetWindowPos(h, HWND_NOTOPMOST, 0, 0, 800 + 5, 600 + 10, SWP_NOSIZE or SWP_NOMOVE); ShowWindow(h,SW_SHOWNORMAL);