ignore WM_NCHITTEST and WM_ERASEBKGND
This commit is contained in:
@@ -67,6 +67,9 @@ static LRESULT CALLBACK Win32_WindowProc(HWND hwnd, UINT uMsg, WPARAM wParam, LP
|
|||||||
{
|
{
|
||||||
switch(uMsg)
|
switch(uMsg)
|
||||||
{
|
{
|
||||||
|
case WM_NCHITTEST:
|
||||||
|
// send to test in which part of the windows the coordinates are
|
||||||
|
break;
|
||||||
case WM_CREATE:
|
case WM_CREATE:
|
||||||
break;
|
break;
|
||||||
case WM_SIZE:
|
case WM_SIZE:
|
||||||
@@ -76,6 +79,9 @@ static LRESULT CALLBACK Win32_WindowProc(HWND hwnd, UINT uMsg, WPARAM wParam, LP
|
|||||||
case WM_CLOSE:
|
case WM_CLOSE:
|
||||||
Quit_is_required = 1;
|
Quit_is_required = 1;
|
||||||
break;
|
break;
|
||||||
|
case WM_ERASEBKGND:
|
||||||
|
// the background should be erased
|
||||||
|
break;
|
||||||
case WM_PAINT:
|
case WM_PAINT:
|
||||||
Win32_Repaint(hwnd);
|
Win32_Repaint(hwnd);
|
||||||
return 0;
|
return 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user