Home > Software engineering >  Whether give MFC, access to the computer's mouse cursor type in the edit box.
Whether give MFC, access to the computer's mouse cursor type in the edit box.

Time:10-19

In c + + implementation code, determine whether the current mouse cursor location to enter the edit box, namely the cursor in the window with the input method to input characters,

CodePudding user response:

Refer to the MSDN:
 
BOOL GetGUIThreadInfo (DWORD idThread,
LPGUITHREADINFO lpgui
);

CodePudding user response:

GetClassName ()

CodePudding user response:

 HWND HWND=: : WindowFromPoint (point); 
Char name [260].
: : GetClassName (hWnd, name, 260);
If (STRCMP (name, "EDIT")==0)
{//yes

CodePudding user response:

1, whether for focus control types for the edit
2, whether the edit with readonly attributes

CodePudding user response:

If the associated with the input method, to determine whether to password

CodePudding user response:

The mouse cursor is inside can enter the edit box,
Solution: graphic edit box class, if the cursor is within the scope of the edit box mobile will response move function, then add in the move you want to write logic,
Determine whether the current mouse cursor location to enter the edit box,
Solution: whether the edit box controls for the current activity,
  • Related