简体   繁体   中英

How to get handle of a checkbox on TAB control. Win32 VC++

I have created a TAB control with 3 tabs in it. In the third tab, there is a checkbox and I want to get handle of this checkbox at run time from other application. From outside application I am getting the handle of TAB control. But how to get handle of checkbox on the third tab of this TAB control.

EnumChildWindows?

There could be some complications if the application is written in a non-Win32 framework such as WPF because they don't always use Win32 child controls. In that case Windows Automation is the only cross-framework API I know of (YMMV).

If you're using Visual Studio (not Express) and you're not familiar with Spy++ then fire that up and give it a go -- it's interesting if nothing else, it let's you explore the rather surprising number of windows that exist.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM