Home > Software engineering >  Excuse me how great god reads the mouse is pressed in ontouch information
Excuse me how great god reads the mouse is pressed in ontouch information

Time:10-10

Ontouch drew the figure then I want to read the information and design and color of mouse is pressed,
The left mouse button pressed can be realized in OnLButtonDown alone,,,, but I wouldn't be together, and don't understand the grammar, hope to have a great god can solve! Really thank you very much!!!!!

CodePudding user response:

Click on the area or in OnLButtonDown, judgment,

CodePudding user response:

I think in the left mouse button response information function to define a variable, to record the number of mouse the left key is pressed, then the numeric value corresponding to different design of variable, and then refresh the view area, I think it should be ok,,

CodePudding user response:

You can write inside the OnPaint function handler then you press under the mouse movement in the first process by pressing the messages and refresh function called sendmessage the WM_PAINT to

CodePudding user response:

OnLButtonDown on setting a Flag mark, and then call InvalidateRect forced to refresh, ontouch function according to the different behavior of the value of the Flag to decide,
  • Related