Professional UI Solutions
Site Map   /  Register


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 General Discussion » CExtSliderWnd facing problem while setting slider bar position Collapse All
Subject Author Date
shan vaz Dec 4, 2009 - 9:16 AM



I am using profui  CEXTSliderWnd in my application.

I have added the control of type "CExtSliderWnd" in my form. I have created a sliderbar class inherited from CExtSliderWnd.

i.e CSliderControl::CExtSliderWnd

And I have used the following virtual method to set the slider bar position.


Due to some resason the above method setting the slider bar position to backward value than the new set value.I couldn’t able to find the problem/root cause for this.

Please  let me know what could be the problem here. Is their is any other way that I can set slider bar position instaed of using this function.



bool OnSliderDrawThumb(CDC &dc,const CRect &rcThumb,UINT uItemState

Technical Support Dec 5, 2009 - 1:31 PM

The OnSliderDrawThumb() virtual method is invoked for painting the thumb button. It’s not a good idea to change the slider’s position when handling its painting events.
Please describe us details about your task and we will help you.