Click here to Skip to main content
15,927,744 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: How to use Tree Control Inside List View Control? Pin
«_Superman_»6-Feb-09 1:56
professional«_Superman_»6-Feb-09 1:56 
QuestionHow to create different Dialogs as Tabs in single window. Pin
hemlat6-Feb-09 1:19
hemlat6-Feb-09 1:19 
AnswerRe: How to create different Dialogs as Tabs in single window. Pin
«_Superman_»6-Feb-09 1:28
professional«_Superman_»6-Feb-09 1:28 
QuestionRe: How to create different Dialogs as Tabs in single window. [modified] Pin
B_U_A6-Feb-09 22:30
B_U_A6-Feb-09 22:30 
GeneralRe: How to create different Dialogs as Tabs in single window. Pin
Rajesh R Subramanian7-Feb-09 5:37
professionalRajesh R Subramanian7-Feb-09 5:37 
QuestionRe: How to create different Dialogs as Tabs in single window. Pin
B_U_A7-Feb-09 19:22
B_U_A7-Feb-09 19:22 
AnswerRe: How to create different Dialogs as Tabs in single window. Pin
«_Superman_»8-Feb-09 15:36
professional«_Superman_»8-Feb-09 15:36 
GeneralRe: How to create different Dialogs as Tabs in single window. Pin
B_U_A8-Feb-09 18:09
B_U_A8-Feb-09 18:09 
Thanks for your message,
As one of my many attempts, I had actually tried what you suggest, already. That is how it looks.

	BOOL CTestDlg::OnInitDialog()
{
	CDialog::OnInitDialog();

        CPropertySheet myPropertySheet;
	CTestPage1 myPage1;
	CTestPage2 myPage2;

	myPropertySheet.AddPage(&myPage1);
	myPropertySheet.AddPage(&myPage2);

	myPropertySheet.DoModal();


If I do this, the application does actually call the tab control (consisting of these two test pages). And it even comes fully equiped with OK CANCEL APPLY and HELP button in that dialog.
However it is not a 'child' (hope this term is right) of my actual main window, but sits on top of the main window instead. Once I hit OK or CANCEL this tab control dialog (which contains the correct tab contents, by the way) disappears and I can see my actual main window. But no way to get the tab control dialoga within my main window.
I think I am still missing an important step.
Maybe I shouldn't call the
myPropertySheet.AddPage(&myPage1);
myPropertySheet.AddPage(&myPage2);


in the OnInitDialog() function? What where else?
Heeeeeeeeelllllllp Frown | :-(
GeneralRe: How to create different Dialogs as Tabs in single window. Pin
«_Superman_»8-Feb-09 19:04
professional«_Superman_»8-Feb-09 19:04 
GeneralRe: How to create different Dialogs as Tabs in single window. Pin
B_U_A8-Feb-09 19:26
B_U_A8-Feb-09 19:26 
GeneralRe: How to create different Dialogs as Tabs in single window. Pin
«_Superman_»8-Feb-09 19:31
professional«_Superman_»8-Feb-09 19:31 
GeneralRe: How to create different Dialogs as Tabs in single window. Pin
hemlat8-Feb-09 20:50
hemlat8-Feb-09 20:50 
QuestionRe: How to create different Dialogs as Tabs in single window. [modified] Pin
B_U_A8-Feb-09 23:54
B_U_A8-Feb-09 23:54 
AnswerRe: How to create different Dialogs as Tabs in single window. Pin
«_Superman_»9-Feb-09 4:28
professional«_Superman_»9-Feb-09 4:28 
QuestionRe: How to create different Dialogs as Tabs in single window. [modified] Pin
B_U_A9-Feb-09 21:34
B_U_A9-Feb-09 21:34 
AnswerRe: How to create different Dialogs as Tabs in single window. Pin
«_Superman_»10-Feb-09 1:55
professional«_Superman_»10-Feb-09 1:55 
QuestionRe: How to create different Dialogs as Tabs in single window. Pin
B_U_A10-Feb-09 21:56
B_U_A10-Feb-09 21:56 
AnswerRe: How to create different Dialogs as Tabs in single window. Pin
«_Superman_»10-Feb-09 22:07
professional«_Superman_»10-Feb-09 22:07 
QuestionRe: How to create different Dialogs as Tabs in single window. Pin
B_U_A10-Feb-09 22:26
B_U_A10-Feb-09 22:26 
QuestionRe: How to create different Dialogs as Tabs in single window. Pin
B_U_A16-Feb-09 0:53
B_U_A16-Feb-09 0:53 
AnswerRe: How to create different Dialogs as Tabs in single window. Pin
Code-o-mat6-Feb-09 1:28
Code-o-mat6-Feb-09 1:28 
AnswerRe: How to create different Dialogs as Tabs in single window. Pin
Rajesh R Subramanian7-Feb-09 5:36
professionalRajesh R Subramanian7-Feb-09 5:36 
QuestionFolder Size Pin
john56325-Feb-09 23:49
john56325-Feb-09 23:49 
AnswerRe: Folder Size Pin
prasad_som6-Feb-09 0:51
prasad_som6-Feb-09 0:51 
GeneralRe: Folder Size Pin
john56326-Feb-09 1:22
john56326-Feb-09 1:22 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.