Home > Software engineering >  How to handle to the location of the mouse access controls
How to handle to the location of the mouse access controls

Time:09-22

Want to by dragging the mouse, to get another program edit Box controls ID and the title of the parent, using WindowFromPoint (), but found that it cannot obtain the Group Box in the edit Box, do not know you have what better way to get the control handle to another program,

CodePudding user response:

ChildWindowFromPoint ?

CodePudding user response:

Windows Api for less than, can also use the IAccessible IUIAutomation two ways,

CodePudding user response:

1 spy++ find control ID
2
PWndDlg=FindWindow (" # 32770 ", "data entry dialog box");
If (pWndDlg==0)
{
AfxMessageBox (" data entry dialog box ");
return;
}
PWndEdit1000=pWndDlg - & gt; GetDlgItem (0 x03e8);//control ID 0 x003e8

CodePudding user response:

Is this your spy++

CodePudding user response:

First you have to make sure it is a window, rather than a DUI control
  • Related