Switching between Doc Templates
brijesh@pune.gssl.ernet.in
Wednesday, February 07, 1996
Hello All,
Pals, I have two document templates attached to my application
for the same document. How can i switch from one template to other. Both
of these document templates are MDI templates and have different types
of frame windows.
Also I would like to know that how to delete a document template
during runtime. This is necessary (I feel) when your templates are
created on runtime.
ThanX for any suggestions.
--
-------------------------------------------------------------------------
One can't change the past but one can ruin a perfectly good
present by worrying about the future.
Brijesh Kumar Mishra
e-mail : brijeshm@gssl.ernet.in
-------------------------------------------------------------------------
Jim Lavin -- ooptech@Onramp.NET
Thursday, February 08, 1996
At 12:42 PM 2/7/96 +0500, you wrote:
>Hello All,
> Pals, I have two document templates attached to my application
>for the same document. How can i switch from one template to other. Both
>of these document templates are MDI templates and have different types
>of frame windows.
> Also I would like to know that how to delete a document template
>during runtime. This is necessary (I feel) when your templates are
>created on runtime.
> ThanX for any suggestions.
>
>
>
>
>--
>-------------------------------------------------------------------------
> One can't change the past but one can ruin a perfectly good
> present by worrying about the future.
>
>Brijesh Kumar Mishra
>e-mail : brijeshm@gssl.ernet.in
>-------------------------------------------------------------------------
>
>
You can override how the CWinApp creates and opens documents. Check of the
MFC FAQ. It has several great ways to do this. As for part two of your
question check out my earlier post Re: Application with Doc/View in DLL.
Good Luck!!!
Jim Lavin
OOP Technologies
http://emporium.turnpike.net/~jlavin
http://rampages.onramp.net/~ooptech
I've seen programmers who couldn't be passed by reference or by value!
| Вернуться в корень Архива
|