Can we send message to a slider? |
Post Reply |
Author | |
vijaymahajan
Groupie Joined: 16 June 2008 Status: Offline Points: 92 |
Post Options
Thanks(0)
Posted: 24 July 2008 at 8:15am |
Hello,
i have created one slider control in status bar,and handled the messages in view class as follows -
ON_UPDATE_COMMAND_UI(ID_STATUSBAR_ZOOMSLIDER,OnUpdateZoomScroll)
ON_NOTIFY(XTP_SBN_SCROLL, ID_STATUSBAR_ZOOMSLIDER, OnZoomSliderScroll) now,whenever i click on slider it works properly,But i have one more requirement. I want to send the message from another function.
i was trying as follows -
pView->SendMessage(XTP_SBN_SCROLL,ID_STATUSBAR_ZOOMSLIDER);
But it didnt worked.
How can i do the sendmessage,please help me.
Thanks And Regards,
Vijay.
|
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Try this cdoe
CWnd* pParent = pView
NMXTPSCROLL nmScroll; LRESULT lResult = 0; pParent->OnCmdMsg(GetID(), MAKELONG(XTP_SBN_SCROLL, WM_NOTIFY), ¬ify, NULL); |
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
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 |