Click here to Skip to main content
15,895,084 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: How to create 2 tree view in one window Pin
_AnsHUMAN_ 22-Nov-11 1:40
_AnsHUMAN_ 22-Nov-11 1:40 
GeneralRe: How to create 2 tree view in one window Pin
akash chourasia22-Nov-11 17:54
akash chourasia22-Nov-11 17:54 
AnswerRe: How to create 2 tree view in one window Pin
Roger Allen22-Nov-11 2:10
Roger Allen22-Nov-11 2:10 
QuestionClose documents problem Pin
_Flaviu22-Nov-11 0:30
_Flaviu22-Nov-11 0:30 
AnswerRe: Close documents problem Pin
Roger Allen22-Nov-11 2:14
Roger Allen22-Nov-11 2:14 
GeneralRe: Close documents problem Pin
_Flaviu22-Nov-11 2:43
_Flaviu22-Nov-11 2:43 
AnswerRe: Close documents problem Pin
Stefan_Lang22-Nov-11 3:50
Stefan_Lang22-Nov-11 3:50 
GeneralRe: Close documents problem Pin
_Flaviu22-Nov-11 9:17
_Flaviu22-Nov-11 9:17 
Well, I turn problem into one simpler, but without solution for me : how is the right way to close an document from CMyApp ? I try in follow way, but I don't know if is correct :
C++
void CMyApp::CloseAllDocuments(CDocument* pDocExcept)
{
	POSITION posDoc,pos = GetFirstDocTemplatePosition();
	while(pos)
	{
		CDocTemplate* pDocTemplate = (CDocTemplate*)GetNextDocTemplate(pos);
		posDoc = pDocTemplate->GetFirstDocPosition();
		while(posDoc)
		{
			CDocument* pDoc = pDocTemplate->GetNextDoc(posDoc);
			if(pDoc != pDocExcept)
			{
				pDoc->OnCloseDocument();
			}
		}
	}
}


here I want to except for closing down an specific document ...
GeneralRe: Close documents problem Pin
_Flaviu22-Nov-11 9:24
_Flaviu22-Nov-11 9:24 
GeneralRe: Close documents problem Pin
Stefan_Lang22-Nov-11 21:59
Stefan_Lang22-Nov-11 21:59 
GeneralRe: Close documents problem Pin
_Flaviu23-Nov-11 2:46
_Flaviu23-Nov-11 2:46 
GeneralRe: Close documents problem Pin
_Flaviu23-Nov-11 20:25
_Flaviu23-Nov-11 20:25 
QuestionMainWindow of dll how to launch from client exe Pin
appollosputnik21-Nov-11 16:06
appollosputnik21-Nov-11 16:06 
AnswerRe: MainWindow of dll how to launch from client exe Pin
Richard MacCutchan21-Nov-11 21:29
mveRichard MacCutchan21-Nov-11 21:29 
GeneralRe: MainWindow of dll how to launch from client exe Pin
appollosputnik22-Nov-11 5:11
appollosputnik22-Nov-11 5:11 
GeneralRe: MainWindow of dll how to launch from client exe Pin
Richard MacCutchan22-Nov-11 6:18
mveRichard MacCutchan22-Nov-11 6:18 
QuestionBALANCED merge sort Pin
sadas232341s21-Nov-11 10:40
sadas232341s21-Nov-11 10:40 
QuestionCalculating Megabytes from ULONG Pin
jkirkerx21-Nov-11 8:18
professionaljkirkerx21-Nov-11 8:18 
AnswerRe: Calculating Megabytes from ULONG Pin
Richard Andrew x6421-Nov-11 9:11
professionalRichard Andrew x6421-Nov-11 9:11 
GeneralRe: Calculating Megabytes from ULONG Pin
jkirkerx21-Nov-11 10:07
professionaljkirkerx21-Nov-11 10:07 
GeneralRe: Calculating Megabytes from ULONG Pin
David Crow21-Nov-11 10:30
David Crow21-Nov-11 10:30 
GeneralRe: Calculating Megabytes from ULONG Pin
jkirkerx21-Nov-11 10:53
professionaljkirkerx21-Nov-11 10:53 
GeneralRe: Calculating Megabytes from ULONG Pin
jkirkerx21-Nov-11 11:09
professionaljkirkerx21-Nov-11 11:09 
AnswerRe: Calculating Megabytes from ULONG Pin
CPallini21-Nov-11 9:50
mveCPallini21-Nov-11 9:50 
GeneralRe: Calculating Megabytes from ULONG Pin
jkirkerx21-Nov-11 10:09
professionaljkirkerx21-Nov-11 10:09 

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.