ignore WM_NCHITTEST and WM_ERASEBKGND
This commit is contained in:
		
							parent
							
								
									30aac19f27
								
							
						
					
					
						commit
						c3aa989a42
					
				@ -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;
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user