nanogui@linuxhacker.org
nanogui@linuxhacker.org
: In the and catch the button event when it receive WM_COMMAND message:
: case WM_COMMAND:
: switch(LOWORD(wParam)) {
: case EVENTBTN :
: if( HIWORD(wParam) == BN_CLICKED)
: SetWindowText( hwnd_txt, (LPSTR)" Hello World!");
: break;
: ....
: }
Hmmm.. It seems that perhaps there's a race
condition in having SetWindowText end up demanding
a non-client area paint before having returned from
the original window procedure...
Does this code always draw incorrectly, that is,
whenever executing a SetWindowText in a buttondown
handler?
Regards,
Greg
nanogui@linuxhacker.org