Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to reference checkbox on non-current tab of a tab control

Status
Not open for further replies.

Technokrat

Programmer
Jul 20, 2001
92
US
How do you reference a checkbox on the non-current tab of a tab control?

I have 2 checkboxes on different tabs that are mutually exclusive. If the user checks checkbox 1 on Tab A, then a message is displayed, and checkbox 2 on Tab B should be automatically un-checked.
 
If I remember tab controls properly, you load a dialog and associate it with its tab.

Store the hWnd from each LoadDialog in a file local or static variable, then use GetDlgItem to check or uncheck your checkbox.

Or I could be completely off base.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top