| 1022 | } |
| 1023 | |
| 1024 | void HideFWindow(int h) |
| 1025 | { |
| 1026 | LONG desa; |
| 1027 | |
| 1028 | if (h) /* Full-screen. */ |
| 1029 | { |
| 1030 | RECT bo; |
| 1031 | GetWindowRect(hAppWnd, &bo); |
| 1032 | WindowXC = bo.left; |
| 1033 | WindowYC = bo.top; |
| 1034 | |
| 1035 | SetMenu(hAppWnd, 0); |
| 1036 | desa=WS_POPUP | WS_CLIPSIBLINGS; |
| 1037 | } else |
| 1038 | { |
| 1039 | desa = WS_OVERLAPPEDWINDOW | WS_CLIPSIBLINGS; |
| 1040 | HideMenu(tog); |
| 1041 | |
| 1042 | /* Stupid DirectDraw bug(I think?) requires this. Need to investigate it. */ |
| 1043 | SetWindowPos(hAppWnd, HWND_NOTOPMOST, 0, 0, 0, 0, SWP_FRAMECHANGED | SWP_NOACTIVATE | SWP_NOCOPYBITS | SWP_NOMOVE | SWP_NOREPOSITION | SWP_NOSIZE); |
| 1044 | } |
| 1045 | |
| 1046 | SetWindowLongPtr(hAppWnd, GWL_STYLE, desa | ( GetWindowLong(hAppWnd, GWL_STYLE) & WS_VISIBLE )); |
| 1047 | SetWindowPos(hAppWnd, 0, 0, 0, 0, 0, SWP_FRAMECHANGED | SWP_NOACTIVATE | SWP_NOCOPYBITS | SWP_NOMOVE | SWP_NOREPOSITION | SWP_NOSIZE | SWP_NOZORDER); |
| 1048 | } |
| 1049 | |
| 1050 | //Toggles the display status of the main menu. |
| 1051 | void ToggleHideMenu(void) |
no test coverage detected