Waitrud Weber’s blog

things and reminders for memories

WM_PAINT doesn't work well.

If you comment out the below, the program doesn't work even doen't dispatch event:WM_PAINT.

wButtonController.cpp::line::187
..
137:void wButtonController::ProcessWmKeyup () {
...
185: this->event->main_mode = m_mode;
186:
187: InvalidateRect( this->event->hWnd, NULL, TRUE);
188:}

If you remove comment-out the below, the program doesn't work even doen't dispatch event:WM_PAINT and the screen whites out.

winmain_001.cpp::line405
403:    switch ( uMsg ){
404:    case WM_PAINT:
405:  //hDC = BeginPaint( hWnd, &ps);
406:  //wmpaint_display_threeD_proc ( hWnd, &hDC, &ps, uMsg, wParam, lParam );
407:  //btc.Process ();
408:  //EndPaint(hWnd, &ps);
409:  break;
410:    }
411:
412: btc.Process ();

 

I'm pleasure if you download the below.
https://github.com/WaitrudWeber/source_zip/blob/master/display-20190202.zip


Please reffer to the below for compilation.
https://waitrudweber.hatenablog.com/entry/2018/05/01/005938