mirror of
https://github.com/quantum5/Zalgo.git
synced 2025-04-24 21:52:03 -04:00
Fixed non-painting on resize from top or left.
This commit is contained in:
parent
013e5fe476
commit
e9e0ba6262
|
@ -18,6 +18,7 @@ protected:
|
||||||
LRESULT OnCreate();
|
LRESULT OnCreate();
|
||||||
LRESULT OnDestroy();
|
LRESULT OnDestroy();
|
||||||
void OnPaint();
|
void OnPaint();
|
||||||
|
BOOL WinRegisterClass(WNDCLASS *pwc);
|
||||||
|
|
||||||
virtual HICON GetIcon();
|
virtual HICON GetIcon();
|
||||||
|
|
||||||
|
|
|
@ -75,6 +75,12 @@ LRESULT APIENTRY EditSubclassProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lP
|
||||||
wParam, lParam);
|
wParam, lParam);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
BOOL MainWindow::WinRegisterClass(WNDCLASS *pwc)
|
||||||
|
{
|
||||||
|
pwc->style = CS_HREDRAW | CS_VREDRAW;
|
||||||
|
return __super::WinRegisterClass(pwc);
|
||||||
|
}
|
||||||
|
|
||||||
LRESULT MainWindow::OnCreate()
|
LRESULT MainWindow::OnCreate()
|
||||||
{
|
{
|
||||||
NONCLIENTMETRICS ncmMetrics = { sizeof(NONCLIENTMETRICS) };
|
NONCLIENTMETRICS ncmMetrics = { sizeof(NONCLIENTMETRICS) };
|
||||||
|
|
Loading…
Reference in a new issue