Remove all old Win UI stuff no longer used, rename constants for consistency, renumber most of them (see resource.h comments) and move Screenshot to the Action menu.

This commit is contained in:
waltje
2017-06-04 22:18:41 -04:00
parent 0347b6d46b
commit 175019550c
6 changed files with 475 additions and 451 deletions

View File

@@ -1806,15 +1806,19 @@ LRESULT CALLBACK WindowProcedure (HWND hwnd, UINT message, WPARAM wParam, LPARAM
hmenu=GetMenu(hwnd);
switch (LOWORD(wParam))
{
case IDM_FILE_HRESET:
case IDM_ACTION_SCREENSHOT:
take_screenshot();
break;
case IDM_ACTION_HRESET:
win_pc_reset(1);
break;
case IDM_FILE_RESET_CAD:
case IDM_ACTION_RESET_CAD:
win_pc_reset(0);
break;
case IDM_FILE_EXIT:
case IDM_ACTION_EXIT:
PostQuitMessage (0); /* send a WM_QUIT to the message queue */
break;
@@ -1939,10 +1943,6 @@ LRESULT CALLBACK WindowProcedure (HWND hwnd, UINT message, WPARAM wParam, LPARAM
video_toggle_option(hmenu, &enable_overscan, IDM_VID_OVERSCAN);
break;
case IDM_VID_SCREENSHOT:
take_screenshot();
break;
case IDM_VID_CGACON:
vid_cga_contrast = !vid_cga_contrast;
CheckMenuItem(menu, IDM_VID_CGACON, vid_cga_contrast ? MF_CHECKED : MF_UNCHECKED);