![]() |
How can i check SB_ENDSCROLL in slider event? |
Post Reply ![]() |
Author | |
vijaymahajan ![]() Groupie ![]() ![]() Joined: 16 June 2008 Status: Offline Points: 92 |
![]() ![]() ![]() ![]() ![]() 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.
|
|
![]() |
|
Oleg ![]() Admin Group ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
Hi,
Can you show some code - what is OnScroll method - virtual method or even hander ?
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
vijaymahajan ![]() Groupie ![]() ![]() Joined: 16 June 2008 Status: Offline Points: 92 |
![]() ![]() ![]() ![]() ![]() |
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 -
Please reply at the earliest.Its very urgent.
Thanks And Regards,
Vijay.
|
|
![]() |
|
Oleg ![]() Admin Group ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
GetID() ?
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
Simon HB9DRV ![]() Senior Member ![]() ![]() Joined: 07 July 2005 Location: Switzerland Status: Offline Points: 458 |
![]() ![]() ![]() ![]() ![]() |
Myself I compare window handles (m_hWnd).
The 12.0 scroll bar is *very* nice, well done Codejock developers.
|
|
Simon HB9DRV
|
|
![]() |
Post Reply ![]() |
|
Tweet
|
Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |