Home > Software engineering >  How to simulate click form (TActionToolBar) button?
How to simulate click form (TActionToolBar) button?

Time:10-17

1: spy++ couldn't get button handle, KanTie said like also does not have the handle, please give ideas, thank you!

CodePudding user response:

Window handle can get to you? If you can use FindWindowEx ()/EnumChildWindows (); To enumerate and see what the form controls

CodePudding user response:

No handle controls may be custom painting, send the mouse to click the message to its parent window look, pay attention to click, the coordinates of points in the position of control

CodePudding user response:

Direct call button the function

CodePudding user response:

Directly send WM_COMMAND message try
PostMessage WM_COMMAND IDC_XXXXX
  • Related