2 * PROJECT: PAINT for ReactOS
4 * FILE: base/applications/mspaint/winproc.cpp
5 * PURPOSE: Window procedure of the main window and all children apart from
6 * hPalWin, hToolSettings and hSelection
7 * PROGRAMMERS: Benedikt Freisen
10 /* INCLUDES *********************************************************/
16 /* FUNCTIONS ********************************************************/
19 zoomTo(int newZoom
, int mouseX
, int mouseY
)
21 RECT clientRectScrollbox
;
22 RECT clientRectImageArea
;
24 scrollboxWindow
.GetClientRect(&clientRectScrollbox
);
25 imageArea
.GetClientRect(&clientRectImageArea
);
26 w
= clientRectImageArea
.right
* clientRectScrollbox
.right
/ (clientRectImageArea
.right
* newZoom
/ toolsModel
.GetZoom());
27 h
= clientRectImageArea
.bottom
* clientRectScrollbox
.bottom
/ (clientRectImageArea
.bottom
* newZoom
/ toolsModel
.GetZoom());
28 x
= max(0, min(clientRectImageArea
.right
- w
, mouseX
- w
/ 2)) * newZoom
/ toolsModel
.GetZoom();
29 y
= max(0, min(clientRectImageArea
.bottom
- h
, mouseY
- h
/ 2)) * newZoom
/ toolsModel
.GetZoom();
31 toolsModel
.SetZoom(newZoom
);
33 selectionWindow
.ShowWindow(SW_HIDE
);
34 imageArea
.MoveWindow(3, 3, imageModel
.GetWidth() * toolsModel
.GetZoom() / 1000, imageModel
.GetHeight() * toolsModel
.GetZoom() / 1000, FALSE
);
35 scrollboxWindow
.Invalidate(TRUE
);
36 imageArea
.Invalidate(FALSE
);
38 scrollboxWindow
.SendMessage(WM_HSCROLL
, MAKEWPARAM(SB_THUMBPOSITION
, x
), 0);
39 scrollboxWindow
.SendMessage(WM_VSCROLL
, MAKEWPARAM(SB_THUMBPOSITION
, y
), 0);
42 void CMainWindow::alignChildrenToMainWindow()
46 GetClientRect(&clientRect
);
48 if (toolBoxContainer
.IsWindowVisible())
51 w
= clientRect
.right
- 56;
58 if (paletteWindow
.IsWindowVisible())
61 h
= clientRect
.bottom
- 49;
66 h
= clientRect
.bottom
- 3;
69 scrollboxWindow
.MoveWindow(x
, y
, w
, ::IsWindowVisible(hStatusBar
) ? h
- 23 : h
, TRUE
);
70 paletteWindow
.MoveWindow(x
, 9, 255, 32, TRUE
);
73 void CMainWindow::saveImage(BOOL overwrite
)
75 if (isAFile
&& overwrite
)
77 imageModel
.SaveImage(filepathname
);
79 else if (GetSaveFileName(&sfn
) != 0)
83 imageModel
.SaveImage(sfn
.lpstrFile
);
84 CopyMemory(filename
, sfn
.lpstrFileTitle
, sizeof(filename
));
85 CopyMemory(filepathname
, sfn
.lpstrFile
, sizeof(filepathname
));
86 LoadString(hProgInstance
, IDS_WINDOWTITLE
, resstr
, SIZEOF(resstr
));
87 _stprintf(tempstr
, resstr
, filename
);
88 SetWindowText(tempstr
);
93 void CMainWindow::UpdateApplicationProperties(HBITMAP bitmap
, LPTSTR newfilename
, LPTSTR newfilepathname
)
97 imageModel
.Insert(bitmap
);
98 CopyMemory(filename
, newfilename
, sizeof(filename
));
99 CopyMemory(filepathname
, newfilepathname
, sizeof(filepathname
));
100 LoadString(hProgInstance
, IDS_WINDOWTITLE
, resstr
, SIZEOF(resstr
));
101 _stprintf(tempstr
, resstr
, filename
);
102 SetWindowText(tempstr
);
103 imageModel
.ClearHistory();
107 void CMainWindow::InsertSelectionFromHBITMAP(HBITMAP bitmap
, HWND window
)
109 int width
= GetDIBWidth(bitmap
);
110 int height
= GetDIBHeight(bitmap
);
111 int curWidth
= imageModel
.GetWidth();
112 int curHeight
= imageModel
.GetHeight();
114 if (width
> curWidth
|| height
> curHeight
)
116 BOOL shouldEnlarge
= TRUE
;
118 if (askBeforeEnlarging
)
120 TCHAR programname
[20];
121 TCHAR shouldEnlargePromptText
[100];
123 LoadString(hProgInstance
, IDS_PROGRAMNAME
, programname
, SIZEOF(programname
));
124 LoadString(hProgInstance
, IDS_ENLARGEPROMPTTEXT
, shouldEnlargePromptText
, SIZEOF(shouldEnlargePromptText
));
126 switch (MessageBox(shouldEnlargePromptText
, programname
, MB_YESNOCANCEL
| MB_ICONQUESTION
))
131 shouldEnlarge
= FALSE
;
140 if (width
> curWidth
)
143 if (height
> curHeight
)
146 imageModel
.Crop(curWidth
, curHeight
, 0, 0);
150 HWND hToolbar
= FindWindowEx(toolBoxContainer
.m_hWnd
, NULL
, TOOLBARCLASSNAME
, NULL
);
151 SendMessage(hToolbar
, TB_CHECKBUTTON
, ID_RECTSEL
, MAKELPARAM(TRUE
, 0));
152 toolBoxContainer
.SendMessage(WM_COMMAND
, ID_RECTSEL
);
154 imageModel
.CopyPrevious();
155 selectionModel
.InsertFromHBITMAP(bitmap
);
158 selectionWindow
.ShowWindow(SW_SHOW
);
159 ForceRefreshSelectionContents();
162 LRESULT
CMainWindow::OnDropFiles(UINT nMsg
, WPARAM wParam
, LPARAM lParam
, BOOL
& bHandled
)
165 TCHAR droppedfile
[MAX_PATH
];
166 HBITMAP bmNew
= NULL
;
167 drophandle
= (HDROP
)wParam
;
168 DragQueryFile(drophandle
, 0, droppedfile
, SIZEOF(droppedfile
));
169 DragFinish(drophandle
);
170 LoadDIBFromFile(&bmNew
, droppedfile
, &fileTime
, &fileSize
, &fileHPPM
, &fileVPPM
);
174 pathend
= _tcsrchr(droppedfile
, '\\');
176 UpdateApplicationProperties(bmNew
, pathend
, pathend
);
181 LRESULT
CMainWindow::OnCreate(UINT nMsg
, WPARAM wParam
, LPARAM lParam
, BOOL
& bHandled
)
183 SendMessage(WM_SETICON
, ICON_BIG
, (LPARAM
) LoadIcon(hProgInstance
, MAKEINTRESOURCE(IDI_APPICON
)));
184 SendMessage(WM_SETICON
, ICON_SMALL
, (LPARAM
) LoadIcon(hProgInstance
, MAKEINTRESOURCE(IDI_APPICON
)));
188 LRESULT
CMainWindow::OnDestroy(UINT nMsg
, WPARAM wParam
, LPARAM lParam
, BOOL
& bHandled
)
190 GetWindowPlacement(&(registrySettings
.WindowPlacement
));
191 PostQuitMessage(0); /* send a WM_QUIT to the message queue */
195 LRESULT
CMainWindow::OnClose(UINT nMsg
, WPARAM wParam
, LPARAM lParam
, BOOL
& bHandled
)
197 if (!imageModel
.IsImageSaved())
199 TCHAR programname
[20];
200 TCHAR saveprompttext
[100];
202 LoadString(hProgInstance
, IDS_PROGRAMNAME
, programname
, SIZEOF(programname
));
203 LoadString(hProgInstance
, IDS_SAVEPROMPTTEXT
, saveprompttext
, SIZEOF(saveprompttext
));
204 _stprintf(temptext
, saveprompttext
, filename
);
205 switch (MessageBox(temptext
, programname
, MB_YESNOCANCEL
| MB_ICONQUESTION
))
212 if (imageModel
.IsImageSaved())
224 LRESULT
CMainWindow::OnInitMenuPopup(UINT nMsg
, WPARAM wParam
, LPARAM lParam
, BOOL
& bHandled
)
226 HMENU menu
= GetMenu();
227 BOOL trueSelection
= (selectionWindow
.IsWindowVisible() && ((toolsModel
.GetActiveTool() == TOOL_FREESEL
) || (toolsModel
.GetActiveTool() == TOOL_RECTSEL
)));
230 case 0: /* File menu */
231 EnableMenuItem(menu
, IDM_FILEASWALLPAPERPLANE
, ENABLED_IF(isAFile
));
232 EnableMenuItem(menu
, IDM_FILEASWALLPAPERCENTERED
, ENABLED_IF(isAFile
));
233 EnableMenuItem(menu
, IDM_FILEASWALLPAPERSTRETCHED
, ENABLED_IF(isAFile
));
235 case 1: /* Edit menu */
236 EnableMenuItem(menu
, IDM_EDITUNDO
, ENABLED_IF(imageModel
.HasUndoSteps()));
237 EnableMenuItem(menu
, IDM_EDITREDO
, ENABLED_IF(imageModel
.HasRedoSteps()));
238 EnableMenuItem(menu
, IDM_EDITCUT
, ENABLED_IF(trueSelection
));
239 EnableMenuItem(menu
, IDM_EDITCOPY
, ENABLED_IF(trueSelection
));
240 EnableMenuItem(menu
, IDM_EDITDELETESELECTION
, ENABLED_IF(trueSelection
));
241 EnableMenuItem(menu
, IDM_EDITINVERTSELECTION
, ENABLED_IF(trueSelection
));
242 EnableMenuItem(menu
, IDM_EDITCOPYTO
, ENABLED_IF(trueSelection
));
244 EnableMenuItem(menu
, IDM_EDITPASTE
, ENABLED_IF(GetClipboardData(CF_BITMAP
) != NULL
));
247 case 2: /* View menu */
248 CheckMenuItem(menu
, IDM_VIEWTOOLBOX
, CHECKED_IF(toolBoxContainer
.IsWindowVisible()));
249 CheckMenuItem(menu
, IDM_VIEWCOLORPALETTE
, CHECKED_IF(paletteWindow
.IsWindowVisible()));
250 CheckMenuItem(menu
, IDM_VIEWSTATUSBAR
, CHECKED_IF(::IsWindowVisible(hStatusBar
)));
251 CheckMenuItem(menu
, IDM_FORMATICONBAR
, CHECKED_IF(textEditWindow
.IsWindowVisible()));
252 EnableMenuItem(menu
, IDM_FORMATICONBAR
, ENABLED_IF(toolsModel
.GetActiveTool() == TOOL_TEXT
));
254 CheckMenuItem(menu
, IDM_VIEWSHOWGRID
, CHECKED_IF(showGrid
));
255 CheckMenuItem(menu
, IDM_VIEWSHOWMINIATURE
, CHECKED_IF(showMiniature
));
257 case 3: /* Image menu */
258 EnableMenuItem(menu
, IDM_IMAGECROP
, ENABLED_IF(selectionWindow
.IsWindowVisible()));
259 CheckMenuItem(menu
, IDM_IMAGEDRAWOPAQUE
, CHECKED_IF(!toolsModel
.IsBackgroundTransparent()));
263 CheckMenuItem(menu
, IDM_VIEWZOOM125
, CHECKED_IF(toolsModel
.GetZoom() == 125));
264 CheckMenuItem(menu
, IDM_VIEWZOOM25
, CHECKED_IF(toolsModel
.GetZoom() == 250));
265 CheckMenuItem(menu
, IDM_VIEWZOOM50
, CHECKED_IF(toolsModel
.GetZoom() == 500));
266 CheckMenuItem(menu
, IDM_VIEWZOOM100
, CHECKED_IF(toolsModel
.GetZoom() == 1000));
267 CheckMenuItem(menu
, IDM_VIEWZOOM200
, CHECKED_IF(toolsModel
.GetZoom() == 2000));
268 CheckMenuItem(menu
, IDM_VIEWZOOM400
, CHECKED_IF(toolsModel
.GetZoom() == 4000));
269 CheckMenuItem(menu
, IDM_VIEWZOOM800
, CHECKED_IF(toolsModel
.GetZoom() == 8000));
271 CheckMenuItem(menu
, IDM_COLORSMODERNPALETTE
, CHECKED_IF(paletteModel
.SelectedPalette() == 1));
272 CheckMenuItem(menu
, IDM_COLORSOLDPALETTE
, CHECKED_IF(paletteModel
.SelectedPalette() == 2));
276 LRESULT
CMainWindow::OnSize(UINT nMsg
, WPARAM wParam
, LPARAM lParam
, BOOL
& bHandled
)
278 int test
[] = { LOWORD(lParam
) - 260, LOWORD(lParam
) - 140, LOWORD(lParam
) - 20 };
279 SendMessage(hStatusBar
, WM_SIZE
, wParam
, lParam
);
280 SendMessage(hStatusBar
, SB_SETPARTS
, 3, (LPARAM
)&test
);
281 alignChildrenToMainWindow();
286 LRESULT
CMainWindow::OnGetMinMaxInfo(UINT nMsg
, WPARAM wParam
, LPARAM lParam
, BOOL
& bHandled
)
288 MINMAXINFO
*mm
= (LPMINMAXINFO
) lParam
;
289 mm
->ptMinTrackSize
.x
= 330;
290 mm
->ptMinTrackSize
.y
= 430;
294 LRESULT
CMainWindow::OnSetCursor(UINT nMsg
, WPARAM wParam
, LPARAM lParam
, BOOL
& bHandled
)
296 SetCursor(LoadCursor(NULL
, IDC_ARROW
));
301 LRESULT
CMainWindow::OnKeyDown(UINT nMsg
, WPARAM wParam
, LPARAM lParam
, BOOL
& bHandled
)
303 if (wParam
== VK_ESCAPE
)
305 if (!imageArea
.drawing
)
308 if ((toolsModel
.GetActiveTool() == TOOL_RECTSEL
) || (toolsModel
.GetActiveTool() == TOOL_FREESEL
))
310 startPaintingL(imageModel
.GetDC(), 0, 0, paletteModel
.GetFgColor(), paletteModel
.GetBgColor());
311 whilePaintingL(imageModel
.GetDC(), 0, 0, paletteModel
.GetFgColor(), paletteModel
.GetBgColor());
312 endPaintingL(imageModel
.GetDC(), 0, 0, paletteModel
.GetFgColor(), paletteModel
.GetBgColor());
313 selectionWindow
.ShowWindow(SW_HIDE
);
316 /* FIXME: also cancel current drawing underway */
321 LRESULT
CMainWindow::OnSysColorChange(UINT nMsg
, WPARAM wParam
, LPARAM lParam
, BOOL
& bHandled
)
323 /* Redirect message to common controls */
324 HWND hToolbar
= FindWindowEx(toolBoxContainer
.m_hWnd
, NULL
, TOOLBARCLASSNAME
, NULL
);
325 SendMessage(hToolbar
, WM_SYSCOLORCHANGE
, 0, 0);
329 LRESULT
CMainWindow::OnCommand(UINT nMsg
, WPARAM wParam
, LPARAM lParam
, BOOL
& bHandled
)
331 switch (LOWORD(wParam
))
335 HICON paintIcon
= LoadIcon(hProgInstance
, MAKEINTRESOURCE(IDI_APPICON
));
336 TCHAR infotitle
[100];
338 LoadString(hProgInstance
, IDS_INFOTITLE
, infotitle
, SIZEOF(infotitle
));
339 LoadString(hProgInstance
, IDS_INFOTEXT
, infotext
, SIZEOF(infotext
));
340 ShellAbout(m_hWnd
, infotitle
, infotext
, paintIcon
);
341 DeleteObject(paintIcon
);
344 case IDM_HELPHELPTOPICS
:
345 HtmlHelp(m_hWnd
, _T("help\\Paint.chm"), 0, 0);
348 SendMessage(WM_CLOSE
, wParam
, lParam
);
353 if (!imageModel
.IsImageSaved())
355 TCHAR programname
[20];
356 TCHAR saveprompttext
[100];
358 LoadString(hProgInstance
, IDS_PROGRAMNAME
, programname
, SIZEOF(programname
));
359 LoadString(hProgInstance
, IDS_SAVEPROMPTTEXT
, saveprompttext
, SIZEOF(saveprompttext
));
360 _stprintf(temptext
, saveprompttext
, filename
);
361 switch (MessageBox(temptext
, programname
, MB_YESNOCANCEL
| MB_ICONQUESTION
))
364 imageModel
.imageSaved
= TRUE
; //TODO: move to ImageModel
374 if (reset
&& imageModel
.IsImageSaved()) //TODO: move to ImageModel
377 imageModel
.ClearHistory();
382 if (GetOpenFileName(&ofn
) != 0)
384 HBITMAP bmNew
= NULL
;
385 LoadDIBFromFile(&bmNew
, ofn
.lpstrFile
, &fileTime
, &fileSize
, &fileHPPM
, &fileVPPM
);
388 UpdateApplicationProperties(bmNew
, ofn
.lpstrFileTitle
, ofn
.lpstrFileTitle
);
398 case IDM_FILEPAGESETUP
:
399 // DUMMY: Shows the dialog only, no functionality
401 ZeroMemory(&psd
, sizeof(psd
));
402 psd
.lStructSize
= sizeof(psd
);
403 psd
.hwndOwner
= m_hWnd
;
407 // TODO: Test whether it actually works
409 ZeroMemory(&pd
, sizeof(pd
));
410 pd
.lStructSize
= sizeof(pd
);
411 pd
.hwndOwner
= m_hWnd
;
412 pd
.hDevMode
= NULL
; // freed by user
413 pd
.hDevNames
= NULL
; // freed by user
414 pd
.Flags
= PD_USEDEVMODECOPIESANDCOLLATE
| PD_RETURNDC
;
416 pd
.nFromPage
= 0xffff;
419 pd
.nMaxPage
= 0xffff;
420 if (PrintDlg(&pd
) == TRUE
)
422 BitBlt(pd
.hDC
, 0, 0, imageModel
.GetWidth(), imageModel
.GetHeight(), imageModel
.GetDC(), 0, 0, SRCCOPY
);
426 GlobalFree(pd
.hDevMode
);
428 GlobalFree(pd
.hDevNames
);
430 case IDM_FILEASWALLPAPERPLANE
:
431 RegistrySettings::SetWallpaper(filepathname
, 1, 1);
433 case IDM_FILEASWALLPAPERCENTERED
:
434 RegistrySettings::SetWallpaper(filepathname
, 1, 0);
436 case IDM_FILEASWALLPAPERSTRETCHED
:
437 RegistrySettings::SetWallpaper(filepathname
, 2, 0);
441 imageArea
.Invalidate(FALSE
);
445 imageArea
.Invalidate(FALSE
);
450 SetClipboardData(CF_BITMAP
, CopyImage(selectionModel
.GetBitmap(), IMAGE_BITMAP
, 0, 0, LR_COPYRETURNORG
));
455 SendMessage(WM_COMMAND
, IDM_EDITCOPY
, 0);
456 /* Delete selection */
457 SendMessage(WM_COMMAND
, IDM_EDITDELETESELECTION
, 0);
461 if (GetClipboardData(CF_BITMAP
) != NULL
)
463 InsertSelectionFromHBITMAP((HBITMAP
) GetClipboardData(CF_BITMAP
), m_hWnd
);
467 case IDM_EDITDELETESELECTION
:
469 /* remove selection window and already painted content using undo */
473 case IDM_EDITSELECTALL
:
475 HWND hToolbar
= FindWindowEx(toolBoxContainer
.m_hWnd
, NULL
, TOOLBARCLASSNAME
, NULL
);
476 SendMessage(hToolbar
, TB_CHECKBUTTON
, ID_RECTSEL
, MAKELPARAM(TRUE
, 0));
477 toolBoxContainer
.SendMessage(WM_COMMAND
, ID_RECTSEL
);
478 //TODO: do this properly
479 startPaintingL(imageModel
.GetDC(), 0, 0, paletteModel
.GetFgColor(), paletteModel
.GetBgColor());
480 whilePaintingL(imageModel
.GetDC(), imageModel
.GetWidth(), imageModel
.GetHeight(), paletteModel
.GetFgColor(), paletteModel
.GetBgColor());
481 endPaintingL(imageModel
.GetDC(), imageModel
.GetWidth(), imageModel
.GetHeight(), paletteModel
.GetFgColor(), paletteModel
.GetBgColor());
485 if (GetSaveFileName(&ofn
) != 0)
486 SaveDIBToFile(selectionModel
.GetBitmap(), ofn
.lpstrFile
, imageModel
.GetDC(), NULL
, NULL
, fileHPPM
, fileVPPM
);
488 case IDM_EDITPASTEFROM
:
489 if (GetOpenFileName(&ofn
) != 0)
491 HBITMAP bmNew
= NULL
;
492 LoadDIBFromFile(&bmNew
, ofn
.lpstrFile
, &fileTime
, &fileSize
, &fileHPPM
, &fileVPPM
);
495 InsertSelectionFromHBITMAP(bmNew
, m_hWnd
);
500 case IDM_COLORSEDITPALETTE
:
501 if (ChooseColor(&choosecolor
))
502 paletteModel
.SetFgColor(choosecolor
.rgbResult
);
504 case IDM_COLORSMODERNPALETTE
:
505 paletteModel
.SelectPalette(1);
507 case IDM_COLORSOLDPALETTE
:
508 paletteModel
.SelectPalette(2);
510 case IDM_IMAGEINVERTCOLORS
:
512 imageModel
.InvertColors();
515 case IDM_IMAGEDELETEIMAGE
:
516 imageModel
.CopyPrevious();
517 Rect(imageModel
.GetDC(), 0, 0, imageModel
.GetWidth(), imageModel
.GetHeight(), paletteModel
.GetBgColor(), paletteModel
.GetBgColor(), 0, TRUE
);
518 imageArea
.Invalidate(FALSE
);
520 case IDM_IMAGEROTATEMIRROR
:
521 switch (mirrorRotateDlg())
523 case 1: /* flip horizontally */
524 if (selectionWindow
.IsWindowVisible())
525 selectionModel
.FlipHorizontally();
527 imageModel
.FlipHorizontally();
529 case 2: /* flip vertically */
530 if (selectionWindow
.IsWindowVisible())
531 selectionModel
.FlipVertically();
533 imageModel
.FlipVertically();
535 case 3: /* rotate 90 degrees */
537 case 4: /* rotate 180 degrees */
538 if (selectionWindow
.IsWindowVisible())
539 selectionModel
.RotateNTimes90Degrees(2);
541 imageModel
.RotateNTimes90Degrees(2);
543 case 5: /* rotate 270 degrees */
547 case IDM_IMAGEATTRIBUTES
:
551 imageModel
.Crop(widthSetInDlg
, heightSetInDlg
, 0, 0);
555 case IDM_IMAGESTRETCHSKEW
:
559 imageModel
.StretchSkew(stretchSkew
.percentage
.x
, stretchSkew
.percentage
.y
,
560 stretchSkew
.angle
.x
, stretchSkew
.angle
.y
);
564 case IDM_IMAGEDRAWOPAQUE
:
565 toolsModel
.SetBackgroundTransparent(!toolsModel
.IsBackgroundTransparent());
568 imageModel
.Insert((HBITMAP
) CopyImage(selectionModel
.GetBitmap(), IMAGE_BITMAP
, 0, 0, LR_COPYRETURNORG
));
571 case IDM_VIEWTOOLBOX
:
572 toolBoxContainer
.ShowWindow(toolBoxContainer
.IsWindowVisible() ? SW_HIDE
: SW_SHOW
);
573 alignChildrenToMainWindow();
575 case IDM_VIEWCOLORPALETTE
:
576 paletteWindow
.ShowWindow(paletteWindow
.IsWindowVisible() ? SW_HIDE
: SW_SHOW
);
577 alignChildrenToMainWindow();
579 case IDM_VIEWSTATUSBAR
:
580 ::ShowWindow(hStatusBar
, ::IsWindowVisible(hStatusBar
) ? SW_HIDE
: SW_SHOW
);
581 alignChildrenToMainWindow();
583 case IDM_FORMATICONBAR
:
584 textEditWindow
.ShowWindow(textEditWindow
.IsWindowVisible() ? SW_HIDE
: SW_SHOW
);
586 case IDM_VIEWSHOWGRID
:
587 showGrid
= !showGrid
;
588 imageArea
.Invalidate(FALSE
);
590 case IDM_VIEWSHOWMINIATURE
:
591 showMiniature
= !showMiniature
;
592 miniature
.ShowWindow(showMiniature
? SW_SHOW
: SW_HIDE
);
595 case IDM_VIEWZOOM125
:
604 case IDM_VIEWZOOM100
:
607 case IDM_VIEWZOOM200
:
610 case IDM_VIEWZOOM400
:
613 case IDM_VIEWZOOM800
:
617 case IDM_VIEWFULLSCREEN
:
618 fullscreenWindow
.ShowWindow(SW_SHOW
);