Trackbar NotificationsI am trying to get some notification messages when a trackbar slider is moved and when the slider is released by releasing a mouse press. <br/> <br/> I am already getting the NM_RELEASEDCAPTURE notification when the mouse button is released. I cannot figure out what notification is sent when the trackbar thumb is moved.<br/> <br/> Thanks in advance.© 2009 Microsoft Corporation. All rights reserved.Mon, 06 Jul 2009 16:38:06 Z9b3dc985-c1d8-4277-8e16-0be298e958bahttp://social.msdn.microsoft.com/Forums/en-US/vcgeneral/thread/9b3dc985-c1d8-4277-8e16-0be298e958ba#9b3dc985-c1d8-4277-8e16-0be298e958bahttp://social.msdn.microsoft.com/Forums/en-US/vcgeneral/thread/9b3dc985-c1d8-4277-8e16-0be298e958ba#9b3dc985-c1d8-4277-8e16-0be298e958balesnaubrTSChttp://social.msdn.microsoft.com/Profile/en-US/?user=lesnaubrTSCTrackbar NotificationsI am trying to get some notification messages when a trackbar slider is moved and when the slider is released by releasing a mouse press. <br/> <br/> I am already getting the NM_RELEASEDCAPTURE notification when the mouse button is released. I cannot figure out what notification is sent when the trackbar thumb is moved.<br/> <br/> Thanks in advance.Thu, 02 Jul 2009 21:34:11 Z2009-07-02T21:34:11Zhttp://social.msdn.microsoft.com/Forums/en-US/vcgeneral/thread/9b3dc985-c1d8-4277-8e16-0be298e958ba#341fffcb-ade7-4a34-be0f-3adb01380e79http://social.msdn.microsoft.com/Forums/en-US/vcgeneral/thread/9b3dc985-c1d8-4277-8e16-0be298e958ba#341fffcb-ade7-4a34-be0f-3adb01380e79Scott McPhillipshttp://social.msdn.microsoft.com/Profile/en-US/?user=Scott%20McPhillipsTrackbar NotificationsWhen the slider is moved with a mouse drag it sends WM_HSCROLL (or WM_VSCROLL) with <span style="font-size:x-small">nSBCode == TB_THUMBTRACK.<br/><br/>When the user releases the slider it sends the same scroll message with <span style="font-size:x-small">nSBCode == TB_THUMBPOSITION.</span></span>Fri, 03 Jul 2009 03:10:49 Z2009-07-03T03:10:49Zhttp://social.msdn.microsoft.com/Forums/en-US/vcgeneral/thread/9b3dc985-c1d8-4277-8e16-0be298e958ba#d1b536fe-11f9-4fcd-875a-5b9d76113551http://social.msdn.microsoft.com/Forums/en-US/vcgeneral/thread/9b3dc985-c1d8-4277-8e16-0be298e958ba#d1b536fe-11f9-4fcd-875a-5b9d76113551lesnaubrTSChttp://social.msdn.microsoft.com/Profile/en-US/?user=lesnaubrTSCTrackbar NotificationsI'm not sure why but I can never see those notifications occurring. I can see notifications such as NM_RELEASEDCAPTURE. Maybe I'm checking notifications on the wrong CWnd?<br/> <br/> In case it is important, This slider is part of a dialog window which is a child window of a save dialog.Mon, 06 Jul 2009 13:20:01 Z2009-07-06T13:20:01Zhttp://social.msdn.microsoft.com/Forums/en-US/vcgeneral/thread/9b3dc985-c1d8-4277-8e16-0be298e958ba#5c55dd64-ecb2-40c1-8aae-cfd8094aa914http://social.msdn.microsoft.com/Forums/en-US/vcgeneral/thread/9b3dc985-c1d8-4277-8e16-0be298e958ba#5c55dd64-ecb2-40c1-8aae-cfd8094aa914Scott McPhillipshttp://social.msdn.microsoft.com/Profile/en-US/?user=Scott%20McPhillipsTrackbar NotificationsYou are seeing WM_NOTIFY messages, but the control also sends WM_HSCROLL (or WM_VSCROLL) messages.  Does your message handling intercept those messages?Mon, 06 Jul 2009 13:57:32 Z2009-07-06T13:57:32Zhttp://social.msdn.microsoft.com/Forums/en-US/vcgeneral/thread/9b3dc985-c1d8-4277-8e16-0be298e958ba#f0888e31-ad9f-4aaf-8665-f3793f3cc372http://social.msdn.microsoft.com/Forums/en-US/vcgeneral/thread/9b3dc985-c1d8-4277-8e16-0be298e958ba#f0888e31-ad9f-4aaf-8665-f3793f3cc372lesnaubrTSChttp://social.msdn.microsoft.com/Profile/en-US/?user=lesnaubrTSCTrackbar NotificationsI have an OnNotify method that seems to intercept all of the WM_NOTIFY messages. I tried using an OnHScroll method but I still cannot get a TB_THUMBTRACK or TB_THUMBPOSITION message.Mon, 06 Jul 2009 14:30:59 Z2009-07-06T14:38:30Zhttp://social.msdn.microsoft.com/Forums/en-US/vcgeneral/thread/9b3dc985-c1d8-4277-8e16-0be298e958ba#d26bb540-dd4a-405c-a7a4-f874ea5e32a4http://social.msdn.microsoft.com/Forums/en-US/vcgeneral/thread/9b3dc985-c1d8-4277-8e16-0be298e958ba#d26bb540-dd4a-405c-a7a4-f874ea5e32a4Scott McPhillipshttp://social.msdn.microsoft.com/Profile/en-US/?user=Scott%20McPhillipsTrackbar Notifications<p>Show your code for OnHScroll.  Is it called?</p> <p> </p>Mon, 06 Jul 2009 15:13:48 Z2009-07-06T15:13:48Zhttp://social.msdn.microsoft.com/Forums/en-US/vcgeneral/thread/9b3dc985-c1d8-4277-8e16-0be298e958ba#438f3e96-14c5-440f-a4fc-9cf6892aa02ehttp://social.msdn.microsoft.com/Forums/en-US/vcgeneral/thread/9b3dc985-c1d8-4277-8e16-0be298e958ba#438f3e96-14c5-440f-a4fc-9cf6892aa02elesnaubrTSChttp://social.msdn.microsoft.com/Profile/en-US/?user=lesnaubrTSCTrackbar NotificationsNothing is inside my OnHScroll function yet. I just have a variable assignment so that I can set a breakpoint to check if the function is called. It has not been called in my program but the OnNotify function continues to be called.<br/> <br/> <pre>void CAlphaImgFileSave::OnHScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar) { int i = 0; }</pre> <br/>Mon, 06 Jul 2009 15:44:18 Z2009-07-06T15:44:18Zhttp://social.msdn.microsoft.com/Forums/en-US/vcgeneral/thread/9b3dc985-c1d8-4277-8e16-0be298e958ba#468298d8-8514-46aa-8254-08149da4ef17http://social.msdn.microsoft.com/Forums/en-US/vcgeneral/thread/9b3dc985-c1d8-4277-8e16-0be298e958ba#468298d8-8514-46aa-8254-08149da4ef17lesnaubrTSChttp://social.msdn.microsoft.com/Profile/en-US/?user=lesnaubrTSCTrackbar NotificationsI think I just figured out my problem. It was a very small and stupid mistake on my part. I forgot to add:<br/> <br/> <pre>BEGIN_MESSAGE_MAP(CAlphaImgFileSave, CFileDialog) ON_WM_HSCROLL() END_MESSAGE_MAP()</pre>Mon, 06 Jul 2009 16:21:51 Z2009-07-06T16:21:51Zhttp://social.msdn.microsoft.com/Forums/en-US/vcgeneral/thread/9b3dc985-c1d8-4277-8e16-0be298e958ba#7e95088f-3e4f-4c31-9656-6409302c9501http://social.msdn.microsoft.com/Forums/en-US/vcgeneral/thread/9b3dc985-c1d8-4277-8e16-0be298e958ba#7e95088f-3e4f-4c31-9656-6409302c9501Scott McPhillipshttp://social.msdn.microsoft.com/Profile/en-US/?user=Scott%20McPhillipsTrackbar NotificationsThe OnHScroll must be in the control's parent window.  Is your OnHScroll in the same class that receives the OnNotify?  Does that class have <span style="font-size:x-small">ON_WM_HSCROLL() in its message map?<br/><br/></span>Mon, 06 Jul 2009 16:28:59 Z2009-07-06T16:28:59Zhttp://social.msdn.microsoft.com/Forums/en-US/vcgeneral/thread/9b3dc985-c1d8-4277-8e16-0be298e958ba#37377f81-0f3d-48bc-bd02-378cdb254a91http://social.msdn.microsoft.com/Forums/en-US/vcgeneral/thread/9b3dc985-c1d8-4277-8e16-0be298e958ba#37377f81-0f3d-48bc-bd02-378cdb254a91lesnaubrTSChttp://social.msdn.microsoft.com/Profile/en-US/?user=lesnaubrTSCTrackbar NotificationsYes, it is in the same class as OnNotify. At first, it was not in the message map. I noticed that mistake and pointed it out above. It was a dumb mistake on my part but I think my problem is solved now.<br/> <br/> Thanks!Mon, 06 Jul 2009 16:38:06 Z2009-07-06T16:38:06Z