Click here to Skip to main content
16,010,114 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: How to open project files in my app, like in Visual Studio Pin
Roman Fadeyev15-Aug-02 7:08
Roman Fadeyev15-Aug-02 7:08 
GeneralRe: How to open project files in my app, like in Visual Studio Pin
Jake Palmer15-Aug-02 8:35
Jake Palmer15-Aug-02 8:35 
GeneralRe: How to open project files in my app, like in Visual Studio Pin
Roman Fadeyev15-Aug-02 19:10
Roman Fadeyev15-Aug-02 19:10 
AnswerRe: How to open project files in my app, like in Visual Studio Pin
Jake Palmer16-Aug-02 9:46
Jake Palmer16-Aug-02 9:46 
GeneralCTreeCtrl Problem Pin
Jonah15-Aug-02 6:49
Jonah15-Aug-02 6:49 
GeneralRe: CTreeCtrl Problem Pin
Shog915-Aug-02 8:23
sitebuilderShog915-Aug-02 8:23 
GeneralRe: View problem again Pin
Roman Fadeyev15-Aug-02 6:36
Roman Fadeyev15-Aug-02 6:36 
GeneralRe: View problem again Pin
Zayax15-Aug-02 14:16
Zayax15-Aug-02 14:16 
Roman Fadeyev wrote:
Not at all. Just add new class, derived from CDocTemplate and create it's instance in CYourApp::InitInstance like that

Is this means doing something like this? (I've add a COutputView class derived from CView)

BOOL CPSMZayaxApp::InitInstance()<br />
{<br />
...<br />
	CSingleDocTemplate* pDocTemplate;<br />
	pDocTemplate = new CSingleDocTemplate(<br />
		IDR_MAINFRAME,<br />
		RUNTIME_CLASS(CPSMZayaxDoc),<br />
		RUNTIME_CLASS(CMainFrame),       // main SDI frame window<br />
		RUNTIME_CLASS(CPSMZayaxView));   //ORIGINAL VIEW	AddDocTemplate(pDocTemplate);<br />
<br />
	CSingleDocTemplate* pDocTemplate2;<br />
	pDocTemplate2 = new CSingleDocTemplate(<br />
		IDR_MAINFRAME,<br />
		RUNTIME_CLASS(CPSMZayaxDoc),<br />
		RUNTIME_CLASS(CMainFrame),       // main SDI frame window<br />
		RUNTIME_CLASS(COutputView));	 //ADDITIONAL VIEW<br />
	AddDocTemplate(pDocTemplate2);<br />
...<br />
}


When I execute the program, VC++ ask me to choose between the two view. How am I going to know which view is being displayed? How can I change from one view to another when the program was running? maybe this sound stupid but there was no minimize button to minimize one view and see the other like in the MDIConfused | :confused: I wish to init this view when I click a button on a DialogBox. What should I do? Dead | X|



Newbies
GeneralRe: View problem again Pin
Roger Allen15-Aug-02 6:34
Roger Allen15-Aug-02 6:34 
GeneralRe: View problem again Pin
Roman Fadeyev15-Aug-02 6:42
Roman Fadeyev15-Aug-02 6:42 
GeneralRe: View problem again Pin
Tomasz Sowinski15-Aug-02 7:22
Tomasz Sowinski15-Aug-02 7:22 
GeneralRe: View problem again Pin
Roman Fadeyev15-Aug-02 8:02
Roman Fadeyev15-Aug-02 8:02 
GeneralRe: View problem again Pin
Tomasz Sowinski15-Aug-02 8:07
Tomasz Sowinski15-Aug-02 8:07 
GeneralRe: View problem again Pin
Zayax15-Aug-02 14:22
Zayax15-Aug-02 14:22 
GeneralRe: View problem again Pin
Zayax15-Aug-02 14:44
Zayax15-Aug-02 14:44 
GeneralTrouble Selecting Externaly with List Control. Pin
Jawache15-Aug-02 5:44
Jawache15-Aug-02 5:44 
GeneralRe: Trouble Selecting Externaly with List Control. Pin
Tomasz Sowinski15-Aug-02 5:54
Tomasz Sowinski15-Aug-02 5:54 
GeneralRe: Trouble Selecting Externaly with List Control. Pin
Jawache15-Aug-02 7:21
Jawache15-Aug-02 7:21 
GeneralRe: Trouble Selecting Externaly with List Control. Pin
Roger Allen15-Aug-02 6:36
Roger Allen15-Aug-02 6:36 
GeneralSetting Environmental Varialbles Pin
Michael_Petrov15-Aug-02 5:19
sussMichael_Petrov15-Aug-02 5:19 
GeneralRe: Setting Environmental Varialbles Pin
Chris Losinger15-Aug-02 6:07
professionalChris Losinger15-Aug-02 6:07 
GeneralRe: Setting Environmental Varialbles Pin
Roman Fadeyev15-Aug-02 6:57
Roman Fadeyev15-Aug-02 6:57 
GeneralRe: Setting Environmental Varialbles Pin
Chris Losinger15-Aug-02 6:57
professionalChris Losinger15-Aug-02 6:57 
GeneralRe: Setting Environmental Varialbles Pin
Roman Fadeyev15-Aug-02 6:55
Roman Fadeyev15-Aug-02 6:55 
GeneralRe: Setting Environmental Varialbles Pin
Tomasz Sowinski15-Aug-02 7:20
Tomasz Sowinski15-Aug-02 7:20 

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.