Adding WM_VSCROLL to message handler for slider control in VS 2005 with C++ and MFC
-
In trying to add WM_VSCROLL to message handler for slider control in VS 2005 with C++ and MFC, I ran into problem that the slider only supports 4 NMXXXXXXXXX messages or events. What wizards and tabs/menu selections do I choose to get to a place where I can add the WM_VSCROLL message handler to handle messages for the slider so I can get access to it's current value. This is probably an easy thing to do, but it seems like it has gotten more difficult since access to all the messages has been limited, leaving only a very small subset.
GrizMan
-
In trying to add WM_VSCROLL to message handler for slider control in VS 2005 with C++ and MFC, I ran into problem that the slider only supports 4 NMXXXXXXXXX messages or events. What wizards and tabs/menu selections do I choose to get to a place where I can add the WM_VSCROLL message handler to handle messages for the slider so I can get access to it's current value. This is probably an easy thing to do, but it seems like it has gotten more difficult since access to all the messages has been limited, leaving only a very small subset.
GrizMan
The messages are sent to the trackbar control's parent by default. You could right click the parent window class in the class view window, choose properties, select the messages tab in the properties window, and add the WM_VSCROLL handler there. Mark
Mark Salsbery Microsoft MVP - Visual C++ :java: