| |

VerySource

 Forgot password?
 Register
Search
View: 762|Reply: 3

Know how to get the handle of a control or form through the API? Waiting online ~~~

[Copy link]

1

Threads

1

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 China

Post time: 2020-1-16 10:20:01
| Show all posts |Read mode
Know how to get the handle of a control or form?
Reply

Use magic Report

0

Threads

22

Posts

14.00

Credits

Newbie

Rank: 1

Credits
14.00

 China

Post time: 2020-1-21 13:36:01
| Show all posts
The landlord is using VC. What is the ID?
Reply

Use magic Report

0

Threads

12

Posts

10.00

Credits

Newbie

Rank: 1

Credits
10.00

 China

Post time: 2020-1-23 13:45:02
| Show all posts
int GetDlgCtrlID (
    HWND hwndCtl // handle of control
   );
Reply

Use magic Report

0

Threads

1

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 China

Post time: 2020-9-1 17:45:01
| Show all posts
CWnd *pWhd=WindowFromPoint(point);
pWhd->GetDlgCtrlID();
this is okay.
Reply

Use magic Report

You have to log in before you can reply Login | Register

Points Rules

Contact us|Archive|Mobile|CopyRight © 2008-2023|verysource.com ( 京ICP备17048824号-1 )

Quick Reply To Top Return to the list