Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Command Bars
  New Posts New Posts RSS Feed - How can i check SB_ENDSCROLL in slider event?
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

How can i check SB_ENDSCROLL in slider event?

 Post Reply Post Reply
Author
Message
vijaymahajan View Drop Down
Groupie
Groupie
Avatar

Joined: 16 June 2008
Status: Offline
Points: 92
Post Options Post Options   Thanks (0) Thanks(0)   Quote vijaymahajan Quote  Post ReplyReply Direct Link To This Post Topic: How can i check SB_ENDSCROLL in slider event?
    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.
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
vijaymahajan View Drop Down
Groupie
Groupie
Avatar

Joined: 16 June 2008
Status: Offline
Points: 92
Post Options Post Options   Thanks (0) Thanks(0)   Quote vijaymahajan Quote  Post ReplyReply Direct Link To This Post 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 -
 
Please reply at the earliest.Its very urgent.
 
Thanks And Regards,
Vijay.
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 18 July 2008 at 2:33am
GetID() ?
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
Simon HB9DRV View Drop Down
Senior Member
Senior Member
Avatar

Joined: 07 July 2005
Location: Switzerland
Status: Offline
Points: 458
Post Options Post Options   Thanks (0) Thanks(0)   Quote Simon HB9DRV Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.063 seconds.