nanogui: Button problem.
Subject:
Re: Re: Button problem.
From:
"Greg Haerr" ####@####.####
Date:
31 Aug 2000 02:36:43 -0000
Message-Id: <03e301c012f4$5e8b94e0$15320cd0@gregh>
: 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