Hey I have a n00bie question about capturing when a user presses down the left mouse button on a simple pushbutton. But not the biult-in events like on_clicked. I created the buttons just be dragging them off the toolbar in visualstudio.net.
I set up my Eventsink_Map for the buttoned PitchUp in the dialoug .cpp file.
ON_EVENT(CParallelPortTestDlg, PitchUp, DISPID_MOUSEDOWN, MouseDownRotateUp, VTS_I2 VTS_I2 VTS_I4 VTS_I4)
and the function that it will call
void CParallelPortTestDlg::MouseDownRotateUp(short Button, short shift, long x, long y)
// TODO: Add your message handler code here
I put the EndDialog(IDOK) function so that if everything works right the program will close.
and Here is the declaration in the dialoug header file
void MouseDownRotateUp(short Button, short shift, long x, long y);
I was able to use this setup to capture the mouse button going down on an animated gif object but it won't work on a push button. Do I have the wrong dispatch ID maybe ??
The reason I wish to capture when the mouse button goes down is because I have to use the buttons like this: When the mouse button goes down, I'll call a function, and when it comes back up I want to call a function. I can just do that with the biult in onbnclicked() event.
There has to be a way to do this because the buttons change when you press the mouse button down by default and stay that way untill you move the mouse off the button or let the mouse button back up.
Hope I haven't confused everyone now!!!
Any help you could provide would be great.