Prayami
2007-01-07 21:26:00 UTC
Hi...I am new to VC++.
My MDI contains following
(1) (Left Side) CDialog contains Tree, converted to CDialogBar
(2) (Right side) Another CDialog as a MDI child
Little bit similar to IDE of VC++ workspace.
When ever I click any leaf element from Tree on CDialogBar, I want to open the
similar document file listed in (2) but as a different Dialog and want to
pass some parameters with that. So that every new dialog will have it on
message on it.
I know it will be possible with following:
pDocTemplate->OpenDocumentFile(NULL);
But I have two problem here:
(1) pDocTemplate is declared in main application's header file. How can I
get the
same instance in my first Dialog which contains Tree Event.
(2) How can I pass some parameter with that Tree Click event to new Dialog.
So every time Dialog Template will be same but every new dialog will have its
own message string according to Tree leaf clicked.
It will be really helpful if there will be some sample coding or some step
by step
explaination or any link provided.
Thanks in advance...
My MDI contains following
(1) (Left Side) CDialog contains Tree, converted to CDialogBar
(2) (Right side) Another CDialog as a MDI child
Little bit similar to IDE of VC++ workspace.
When ever I click any leaf element from Tree on CDialogBar, I want to open the
similar document file listed in (2) but as a different Dialog and want to
pass some parameters with that. So that every new dialog will have it on
message on it.
I know it will be possible with following:
pDocTemplate->OpenDocumentFile(NULL);
But I have two problem here:
(1) pDocTemplate is declared in main application's header file. How can I
get the
same instance in my first Dialog which contains Tree Event.
(2) How can I pass some parameter with that Tree Click event to new Dialog.
So every time Dialog Template will be same but every new dialog will have its
own message string according to Tree leaf clicked.
It will be really helpful if there will be some sample coding or some step
by step
explaination or any link provided.
Thanks in advance...