ignore WM_NCHITTEST and WM_ERASEBKGND

This commit is contained in:
Thomas Bernard 2018-06-22 02:31:12 +02:00
parent 30aac19f27
commit c3aa989a42

View File

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