nanogui@linuxhacker.org

nanogui@linuxhacker.org


Subject: Re: Re: Button problem.
From: Greg Haerr
Date: Wed, 30 Aug 2000 20:37:12 -0600

: 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