mirror of
https://github.com/reactos/reactos.git
synced 2025-07-31 11:31:40 +00:00
[MSPAINT][ATL] Encapsulation: mainWindow (#5178)
- Add DoCreate methods to CFullscreenWindow, CMiniatureWindow, and CMainWindow classes. - Do encapsulation around mainWindow and _tWinMain. - Add GetOpenFileName, GetSaveFileName, and ChooseColor helper methods to CMainWindow class. - Move some code in WinMain into CMainWindow::OnCreate. - Delay creation of CFullscreenWindow and CMiniatureWindow. - Extend ATL CImage class as CImageDx in newly-created atlimagedx.h of mspaint. CORE-18867
This commit is contained in:
parent
0569bbd4a7
commit
29e147beca
29 changed files with 549 additions and 360 deletions
|
@ -6,12 +6,21 @@
|
|||
* PROGRAMMERS: Benedikt Freisen
|
||||
*/
|
||||
|
||||
/* INCLUDES *********************************************************/
|
||||
|
||||
#include "precomp.h"
|
||||
|
||||
CFullscreenWindow fullscreenWindow;
|
||||
|
||||
/* FUNCTIONS ********************************************************/
|
||||
|
||||
HWND CFullscreenWindow::DoCreate()
|
||||
{
|
||||
if (m_hWnd)
|
||||
return m_hWnd;
|
||||
|
||||
RECT rc = {0, 0, 0, 0}; // Rely on SW_SHOWMAXIMIZED
|
||||
return Create(HWND_DESKTOP, rc, NULL, WS_POPUPWINDOW, WS_EX_TOPMOST);
|
||||
}
|
||||
|
||||
LRESULT CFullscreenWindow::OnCreate(UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled)
|
||||
{
|
||||
SendMessage(WM_SETICON, ICON_BIG, (LPARAM) LoadIcon(hProgInstance, MAKEINTRESOURCE(IDI_APPICON)));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue