Click here to Skip to main content
15,912,897 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Dialog question Pin
rpadrela29-Aug-03 10:40
rpadrela29-Aug-03 10:40 
GeneralRe: Dialog question Pin
rpadrela29-Aug-03 11:16
rpadrela29-Aug-03 11:16 
GeneralRe: Dialog question Pin
John M. Drescher29-Aug-03 11:51
John M. Drescher29-Aug-03 11:51 
GeneralRe: Dialog question Pin
l a u r e n29-Aug-03 10:58
l a u r e n29-Aug-03 10:58 
GeneralRe: Dialog question Pin
Ravi Bhavnani29-Aug-03 13:40
professionalRavi Bhavnani29-Aug-03 13:40 
GeneralMDI/SDI Program structure Pin
Mikey_E29-Aug-03 7:07
professionalMikey_E29-Aug-03 7:07 
GeneralRe: MDI/SDI Program structure Pin
Sidare29-Aug-03 7:38
Sidare29-Aug-03 7:38 
GeneralRe: MDI/SDI Program structure Pin
Mikey_E29-Aug-03 9:25
professionalMikey_E29-Aug-03 9:25 
Your assumption was correct. Thanks this does help a lot!

In my CWinApp::InitInstance() I have the following code to attach the document class to the CListView derived class (view on right side of splitter):

CWinApp::InitInstance() {
	// some code ...

	CSingleDocTemplate* pDocTemplate;
	pDocTemplate = new CSingleDocTemplate(
		IDR_MAINFRAME,
		RUNTIME_CLASS(CClientDoc),
		RUNTIME_CLASS(CMainFrame),       // main SDI frame window
		RUNTIME_CLASS(CClientView));
	AddDocTemplate(pDocTemplate);

	// more code ...
}

How do I attach my CTreeView derived class(left side of splitter) to my document class? I'd like it to be able to redraw itself when the document is updated.

Mike Ellertson
GeneralName mangling Pin
Anonymous29-Aug-03 7:02
Anonymous29-Aug-03 7:02 
GeneralRe: Name mangling Pin
Larry J. Siddens29-Aug-03 10:17
Larry J. Siddens29-Aug-03 10:17 
GeneralRe: Name mangling Pin
Anonymous29-Aug-03 11:28
Anonymous29-Aug-03 11:28 
GeneralRe: Name mangling Pin
John M. Drescher29-Aug-03 11:48
John M. Drescher29-Aug-03 11:48 
QuestionMFC for Handheld devices? Pin
Terry O'Nolley29-Aug-03 6:52
Terry O'Nolley29-Aug-03 6:52 
AnswerRe: MFC for Handheld devices? Pin
vcplusplus29-Aug-03 7:39
vcplusplus29-Aug-03 7:39 
GeneralRe: MFC for Handheld devices? Pin
Terry O'Nolley29-Aug-03 8:36
Terry O'Nolley29-Aug-03 8:36 
QuestionHow to cover MDI view screen?? Pin
mr200329-Aug-03 6:14
mr200329-Aug-03 6:14 
AnswerRe: How to cover MDI view screen?? Pin
TSchind29-Aug-03 6:46
TSchind29-Aug-03 6:46 
GeneralRe: How to cover MDI view screen?? Pin
mr200329-Aug-03 7:17
mr200329-Aug-03 7:17 
GeneralRe: How to cover MDI view screen?? Pin
mr200329-Aug-03 7:30
mr200329-Aug-03 7:30 
QuestionHow do I? Pin
Sidare29-Aug-03 5:55
Sidare29-Aug-03 5:55 
AnswerRe: How do I? Pin
jhwurmbach29-Aug-03 6:04
jhwurmbach29-Aug-03 6:04 
GeneralRe: How do I? Pin
Sidare29-Aug-03 7:05
Sidare29-Aug-03 7:05 
GeneralFullscreen CView Pin
User 2237029-Aug-03 5:52
User 2237029-Aug-03 5:52 
GeneralRe: Fullscreen CView Pin
Ravi Bhavnani29-Aug-03 6:01
professionalRavi Bhavnani29-Aug-03 6:01 
GeneralQuick CListCtrl Question... Pin
Nitron29-Aug-03 4:31
Nitron29-Aug-03 4:31 

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.