mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 10:04:49 +00:00
[MSPAINT] CMiniatureWindow: Avoid too small
CORE-18867
This commit is contained in:
parent
61012eb544
commit
5675604d28
2 changed files with 11 additions and 0 deletions
|
@ -106,3 +106,12 @@ LRESULT CMiniatureWindow::OnPaint(UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL&
|
|||
EndPaint(&ps);
|
||||
return 0;
|
||||
}
|
||||
|
||||
LRESULT CMiniatureWindow::OnGetMinMaxInfo(UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled)
|
||||
{
|
||||
// Avoid too small
|
||||
LPMINMAXINFO pInfo = (LPMINMAXINFO)lParam;
|
||||
pInfo->ptMinTrackSize.x = 100;
|
||||
pInfo->ptMinTrackSize.y = 75;
|
||||
return 0;
|
||||
}
|
||||
|
|
|
@ -21,6 +21,7 @@ public:
|
|||
MESSAGE_HANDLER(WM_CLOSE, OnClose)
|
||||
MESSAGE_HANDLER(WM_ERASEBKGND, OnEraseBkgnd)
|
||||
MESSAGE_HANDLER(WM_PAINT, OnPaint)
|
||||
MESSAGE_HANDLER(WM_GETMINMAXINFO, OnGetMinMaxInfo)
|
||||
END_MSG_MAP()
|
||||
|
||||
HWND DoCreate(HWND hwndParent);
|
||||
|
@ -32,4 +33,5 @@ private:
|
|||
LRESULT OnEraseBkgnd(UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled);
|
||||
LRESULT OnPaint(UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled);
|
||||
LRESULT OnSetCursor(UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled);
|
||||
LRESULT OnGetMinMaxInfo(UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled);
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue