Home > Software engineering >  How to listen to a picture of the MFC controls of the mouse operation.
How to listen to a picture of the MFC controls of the mouse operation.

Time:11-02


Interface is such,
I use OPENCV, black and white screen specific operation are realized, but don't know how to put the MFC,
My idea is that, click on the selected areas, to start listening to the mouse, the mouse click is to obtain the position of the coordinate point in the left picture control, release the mouse, the location of the access to loosen, to get interested in coordinates for this area, can show the range of rectangular box (that is, in the mouse hold down the shift when drawing the selected rectangle),
Then click start, stop listening, to the left of the picture the picture taken in the control of the interested region, the results to the controls on the right,

Want to learn about how to conduct such mouse operation monitoring, and rectangular box to select the display, and access to the left side controls the corresponding coordinates of image,

CodePudding user response:

WM_LBUTTONDOWN
WM_LBUTTONUP
WM_MOUSEMOVE
In this a few events is processing
  • Related