Home > Software engineering >  How to obtain the current ID button
How to obtain the current ID button

Time:12-26

For example, I want to add a feature to a button, click the button, the output of the button ID,
 
Int btnID;
BtnID=??????????????????//here how btnID ID assignment?

Checked the baidu, like GetWindowLong (handle, - 12) can be used to obtain control ID;

But don't use, what is the button on the handle?

CodePudding user response:

BtnID=ChildWindowFromPoint (point) - & gt; GetDlgCtrlID ();

CodePudding user response:

Problem solved, scattered points and reply

CodePudding user response:

I will pick up points to drop by
  • Related