mirror of
https://github.com/reactos/reactos.git
synced 2025-08-03 04:36:26 +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
|
@ -543,6 +543,7 @@ public:
|
|||
|
||||
return (status == Ok ? S_OK : E_FAIL);
|
||||
}
|
||||
|
||||
HRESULT Save(LPCTSTR pszFileName,
|
||||
REFGUID guidFileType = GUID_NULL) const throw()
|
||||
{
|
||||
|
@ -828,15 +829,17 @@ protected:
|
|||
}
|
||||
};
|
||||
|
||||
// abbreviations of GDI+ basic types
|
||||
typedef Gdiplus::GpStatus St;
|
||||
typedef Gdiplus::GpBitmap Bm;
|
||||
typedef Gdiplus::GpImage Im;
|
||||
|
||||
// The common data of atlimage
|
||||
struct COMMON
|
||||
{
|
||||
// abbreviations of GDI+ basic types
|
||||
typedef Gdiplus::GpStatus St;
|
||||
typedef Gdiplus::ImageCodecInfo ICI;
|
||||
typedef Gdiplus::GpBitmap Bm;
|
||||
typedef Gdiplus::EncoderParameters EncParams;
|
||||
typedef Gdiplus::GpImage Im;
|
||||
typedef Gdiplus::ARGB ARGB;
|
||||
typedef HBITMAP HBM;
|
||||
typedef Gdiplus::GdiplusStartupInput GSI;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue