Click here to Skip to main content
15,912,756 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi Guys,

I've an application in which MainWndDlg.cpp contains tabctrl.
Each tab is child of main window (tabbed dialog box) and I have a class for each tab (tabonedlg.cpp,tabtwodlg.cpp).

In the tabs, I've created some controls like edit, check box, etc.

In the main window spinctrl btn is present.

Now the problem is when I clicked or change the spinctrl button in main wnd, I need to change ctrl's data present in tabctrl to be changed.

Is it possible? If yes, how?
(pls give me suggestions)

I don't have idea about CWnd funcs, please could you suggest any articles to get info about it.


Hey Thanks guys for u help... I found the solution to the problem by using SetDlgItemText
Posted
Updated 21-Nov-10 18:48pm
v3
Comments
Dalek Dave 16-Nov-10 4:57am    
Edited for Grammar, Spelling, Syntax and Readability.

Check this article[^], it could help you.
 
Share this answer
 
Comments
Dalek Dave 16-Nov-10 4:57am    
Good Link
Sandeep Mewara 16-Nov-10 11:57am    
Comment from OP:
hey Thanks for the help, but above program is for dialog which popup, but in my application child dialog doesn't popsup, its present in the same dialog thro' tabctrl..

Pls anybody help me, how to access child dialog controls??

Is SendMessage func will solve the problem. .
Hi,If you have created the tabbed dialog using the MFC property sheet class, then the main diloag class(The CPropertySheet derived class) will have the objects of each tab class(CPropertyPage derived class).These objects will have data members for the controls that are on the tabs(child dialogs). So using these objects inside the parent daialog class the data of the tab's controls can be accessed .

Regards,
Devadutta.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900