nanogui: Button problem.


Previous by date: 31 Aug 2000 02:36:43 -0000 Re: Button problem., debit
Next by date: 31 Aug 2000 02:36:43 -0000 fixed caret behavior of medit, 曾昭明
Previous in thread: 31 Aug 2000 02:36:43 -0000 Re: Button problem., debit
Next in thread: 31 Aug 2000 02:36:43 -0000 Re: Button problem., debit

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



Previous by date: 31 Aug 2000 02:36:43 -0000 Re: Button problem., debit
Next by date: 31 Aug 2000 02:36:43 -0000 fixed caret behavior of medit, 曾昭明
Previous in thread: 31 Aug 2000 02:36:43 -0000 Re: Button problem., debit
Next in thread: 31 Aug 2000 02:36:43 -0000 Re: Button problem., debit


Powered by ezmlm-browse 0.20.