Click here to Skip to main content
15,896,154 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: inserting records with ado Pin
John M. Drescher27-May-03 5:10
John M. Drescher27-May-03 5:10 
GeneralRe: inserting records with ado Pin
si_6927-May-03 5:19
si_6927-May-03 5:19 
GeneralRe: inserting records with ado Pin
John M. Drescher27-May-03 5:28
John M. Drescher27-May-03 5:28 
GeneralExplorer Bar Question Pin
YuHao27-May-03 2:39
YuHao27-May-03 2:39 
GeneralRe: Explorer Bar Question Pin
Rage27-May-03 5:49
professionalRage27-May-03 5:49 
GeneralRe: Explorer Bar Question Pin
YuHao27-May-03 19:22
YuHao27-May-03 19:22 
GeneralVC6 add in: print to Build output window Pin
peterchen27-May-03 1:45
peterchen27-May-03 1:45 
GeneralMDI with multiple views and one document Pin
Andy@27-May-03 1:43
Andy@27-May-03 1:43 
MDI with multiple views and one document
I have an MDI application with one document and one view.

I would like to create multiple instances from the same document class whereas any documents have the one view and any documents have the other view.

So i have made several View-classes and have created several document templates with the following code:


<br />
CMultiDocTemplate* pDocTemplate;<br />
pDocTemplate = new CMultiDocTemplate(<br />
	IDR_MDITYPE,<br />
	RUNTIME_CLASS(CMDIDoc),<br />
	RUNTIME_CLASS(CChildFrame), <br />
	RUNTIME_CLASS(MDIView ));<br />
AddDocTemplate(pDocTemplate);<br />
<br />
pDocTemplate = new CMultiDocTemplate(<br />
	IDR_MDITYPE,<br />
	RUNTIME_CLASS(CMDIDoc),<br />
	RUNTIME_CLASS(CChildFrame)	<br />
                RUNTIME_CLASS(CMDIView2));<br />
AddDocTemplate(pDocTemplate);<br />


The difference between the doc templates are only the View-classes.

When i choose the open-file command from the file menu, the icon for the file-type is not the icon defined by IDR_MDITYPE but the icon with the next greater ID. (also at Explorer)

I have solved this problem by creating a icon which looks like the IDR_MDITYPE icon and which has the next greater ID. But this solution seems me to tricky. Does anybody know another one?

Thanks

Andy
GeneralCreateDialogIndirect doesn't return Pin
CHAIGNEAU27-May-03 1:40
CHAIGNEAU27-May-03 1:40 
GeneralRe: CreateDialogIndirect doesn't return Pin
Rage27-May-03 5:33
professionalRage27-May-03 5:33 
GeneralRe: CreateDialogIndirect doesn't return Pin
Rage27-May-03 5:36
professionalRage27-May-03 5:36 
GeneralRe: CreateDialogIndirect doesn't return Pin
CHAIGNEAU27-May-03 9:30
CHAIGNEAU27-May-03 9:30 
GeneralProblems with message routing in Dundas' COXSizeControlBar Pin
Miguel Segarra27-May-03 1:21
Miguel Segarra27-May-03 1:21 
GeneralRe: Problems with message routing in Dundas' COXSizeControlBar Pin
Ivor S. Sargoytchev27-May-03 5:36
Ivor S. Sargoytchev27-May-03 5:36 
GeneralRe: Problems with message routing in Dundas' COXSizeControlBar Pin
Ivor S. Sargoytchev28-May-03 10:12
Ivor S. Sargoytchev28-May-03 10:12 
GeneralRe: Problems with message routing in Dundas' COXSizeControlBar Pin
Miguel Segarra28-May-03 23:09
Miguel Segarra28-May-03 23:09 
GeneralRe: Problems with message routing in Dundas' COXSizeControlBar Pin
Ivor S. Sargoytchev29-May-03 7:53
Ivor S. Sargoytchev29-May-03 7:53 
GeneralRe: Problems with message routing in Dundas' COXSizeControlBar Pin
Miguel Segarra30-May-03 1:26
Miguel Segarra30-May-03 1:26 
GeneralRe: Problems with message routing in COXSizeControlBar Pin
Ivor S. Sargoytchev2-Jun-03 11:25
Ivor S. Sargoytchev2-Jun-03 11:25 
GeneralRe: Problems with message routing in COXSizeControlBar Pin
Miguel Segarra4-Jun-03 1:07
Miguel Segarra4-Jun-03 1:07 
Questionhow to add windows type properties to our own files..? Pin
harinath27-May-03 1:12
professionalharinath27-May-03 1:12 
AnswerRe: how to add windows type properties to our own files..? Pin
Rage27-May-03 1:21
professionalRage27-May-03 1:21 
AnswerRe: how to add windows type properties to our own files..? Pin
Rage27-May-03 1:23
professionalRage27-May-03 1:23 
GeneralRe: how to add windows type properties to our own files..? Pin
harinath27-May-03 1:29
professionalharinath27-May-03 1:29 
GeneralRe: how to add windows type properties to our own files..? Pin
harinath27-May-03 1:37
professionalharinath27-May-03 1:37 

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.