Print Page | Close Window

How can i check SB_ENDSCROLL in slider event?

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Command Bars
Forum Description: Topics Related to Codejock Command Bars
URL: http://forum.codejock.com/forum_posts.asp?TID=11469
Printed Date: 01 March 2025 at 1:02am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: How can i check SB_ENDSCROLL in slider event?
Posted By: vijaymahajan
Subject: How can i check SB_ENDSCROLL in slider event?
Date Posted: 17 July 2008 at 2:33am
Hello,
 
How can i check the slider controls ID in OnScroll method? means i have more than one slider,for all these sliders the same function OnScroll will be called,then how can i find the ID of the particular slider in this function?
 
Please answer at the earliest,it is very urgent
 
Thanks And Regards,
Vijay.



Replies:
Posted By: Oleg
Date Posted: 17 July 2008 at 12:35pm
Hi,
 
Can you show some code - what is OnScroll  method - virtual method or even hander ?


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: vijaymahajan
Date Posted: 17 July 2008 at 11:38pm

Hello,

Your CXTPControlScrollBar class has virtual method OnScroll(UINT nSBCode,UINT pos).I just overide that method in my class.
And whenever i create slider control using this class,this OnScroll method works as a event handler. now my question is if i create more than one sliders using this custom class,for all sliders this OnScroll will become a event handler.
Then it will be necessary for me to check the ID of the control in this method to do separate functionality on each sliders Click event.
But i dont find any parameter which can give the ID of the control over there in ONScroll Function.
In MFC,We have 3 parameters in OnHscroll() method,in which by using 3rd parameter we can check the id.Please guide me accordingly.
 
see here i am giving the code in the text file -
https://forum.codejock.com/uploads/20080717_233703_New_Text_Docume.zip - uploads/20080717_233703_New_Text_Docume.zip
 
Please reply at the earliest.Its very urgent.
 
Thanks And Regards,
Vijay.


Posted By: Oleg
Date Posted: 18 July 2008 at 2:33am
GetID() ?

-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: Simon HB9DRV
Date Posted: 18 July 2008 at 3:32am
Originally posted by oleg oleg wrote:

GetID() ?
 
Myself I compare window handles (m_hWnd).
 
The 12.0 scroll bar is *very* nice, well done Codejock developers.


-------------
Simon HB9DRV



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net