Click to See Complete Forum and Search --> : Document Templates


R Berry
August 24th, 1999, 09:19 AM
Doc_View(Beginner)
I'm trying to dynamically create a window like this from my main program -


singleTemplate = new CSingleDocTemplate(
IDR_A, RUNTIME_CLASS(CADoc), RUNTIME_CLASS(CAFrameW), RUNTIME_CLASS(CAView));




CFrameWnd is base of CAFrameW;
I'd like to be able to set all the properties that you can in a call to CAFrameW.Create(...)
some of these properties (eg. size position of window) are set within the main program. What's the best way to pass these properties over to the CAFrameW.OnCreate? Or is there an easier way a call from the main prog.? I think making them global will break stuff.... Hope this makes some sort of sense.
Thanks Rachel