Professional UI Solutions
Site Map   /  Register
 
 

Forum

Please Log In to post a new message or reply to an existing one. If you are not registered, please register.

NOTE: Some forums may be read-only if you are not currently subscribed to our technical support services.

Forums » Prof-UIS Tech Support » CExtSlider::SetBkColor() triggers ON_BN_CLICKED Collapse All
Subject Author Date
Ian McIntosh Mar 20, 2008 - 10:20 AM

Hi,


I have just tracked down a somewhat puzzling problem.


I found some code in a handler of an ON_BN_CLICKED being called from within itself.


I traced this down to a call to CExtSlider::SetBkColor().


The call stack shows


  ProfUIS283md.dll!CExtSliderWnd::SetBkColor(unsigned long clrBk=2162687)  Line 89 C++


calls:

 ProfUIS283md.dll!CExtSliderWnd::UpdateSliderWnd()  Line 472 + 0xc bytes C++


the line is:



::SetFocus( hWndOwn );



and this seems to trigger an ON_BN_CLICKED.


Do you have any ideas why this is?

Technical Support Mar 22, 2008 - 12:20 PM

It is not clear what the ON_BN_CLICKED handler is called. You can find an example of using CExtSliderWnd in the FunnyBars sample. Would you reproduce the problem using this sample and sent the modified project to us?