Click here to Skip to main content
15,888,610 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: try catch exceptions Pin
«_Superman_»30-Apr-10 6:30
professional«_Superman_»30-Apr-10 6:30 
AnswerRe: try catch exceptions Pin
Stephen Hewitt29-Apr-10 14:30
Stephen Hewitt29-Apr-10 14:30 
QuestionGood book for C++ & MFC for exprienced professionals Pin
ptr_Electron29-Apr-10 1:38
ptr_Electron29-Apr-10 1:38 
AnswerRe: Good book for C++ & MFC for exprienced professionals Pin
Maximilien29-Apr-10 4:52
Maximilien29-Apr-10 4:52 
AnswerRe: Good book for C++ & MFC for exprienced professionals Pin
Rajesh R Subramanian29-Apr-10 5:18
professionalRajesh R Subramanian29-Apr-10 5:18 
AnswerRe: Good book for C++ & MFC for exprienced professionals Pin
Joe Woodbury29-Apr-10 6:42
professionalJoe Woodbury29-Apr-10 6:42 
AnswerRe: Good book for C++ & MFC for exprienced professionals Pin
Rolf Kristensen30-Apr-10 1:40
Rolf Kristensen30-Apr-10 1:40 
QuestionChange tool bar according to document Pin
Max++28-Apr-10 20:53
Max++28-Apr-10 20:53 
My project is about MDI with Multi-Document.
In each document has it own menu and toolbar, it mean that the menu and toolbar must change according to activate child windows.

For the menu,I use code below within InitInstance function to add document template then the menu (IDR_MSESoftTYPE and IDR_RECEIPT) can change according to activate child windows, so the menu already work fine.

CMultiDocTemplate* pDocTemplate;
	pDocTemplate = new CMultiDocTemplate(IDR_MSESoftTYPE,
		RUNTIME_CLASS(CMSESoftDoc),
		RUNTIME_CLASS(CChildFrame), // custom MDI child frame
		RUNTIME_CLASS(CMSESoftView));
	if (!pDocTemplate)
		return FALSE;
	AddDocTemplate(pDocTemplate);

	pDocTemplate = new CMultiDocTemplate(IDR_RECEIPT,
		RUNTIME_CLASS(CReceiptDoc),
		RUNTIME_CLASS(CReceiptFrame), // custom MDI child frame
		RUNTIME_CLASS(CReceiptView));
	if (!pDocTemplate)
		return FALSE;
	AddDocTemplate(pDocTemplate);
                                                        *
                                                        *
                                                        *


What about the toolbar how can I make it like menu.
Thanks
AnswerRe: Change tool bar according to document Pin
Iain Clarke, Warrior Programmer29-Apr-10 2:47
Iain Clarke, Warrior Programmer29-Apr-10 2:47 
Questionneed help for a simple basic program in mfc vc++ Pin
rajapp28-Apr-10 19:56
rajapp28-Apr-10 19:56 
AnswerRe: need help for a simple basic program in mfc vc++ Pin
Richard MacCutchan28-Apr-10 23:16
mveRichard MacCutchan28-Apr-10 23:16 
GeneralRe: need help for a simple basic program in mfc vc++ Pin
rajapp29-Apr-10 2:12
rajapp29-Apr-10 2:12 
GeneralRe: need help for a simple basic program in mfc vc++ Pin
Richard MacCutchan29-Apr-10 2:42
mveRichard MacCutchan29-Apr-10 2:42 
GeneralRe: need help for a simple basic program in mfc vc++ [modified] Pin
«_Superman_»29-Apr-10 5:35
professional«_Superman_»29-Apr-10 5:35 
AnswerRe: need help for a simple basic program in mfc vc++ Pin
rajapp1-May-10 20:58
rajapp1-May-10 20:58 
GeneralRe: need help for a simple basic program in mfc vc++ Pin
Richard MacCutchan1-May-10 21:21
mveRichard MacCutchan1-May-10 21:21 
QuestionRe: need help for a simple basic program in mfc vc++ Pin
David Crow29-Apr-10 2:45
David Crow29-Apr-10 2:45 
AnswerRe: need help for a simple basic program in mfc vc++ Pin
rajapp29-Apr-10 2:58
rajapp29-Apr-10 2:58 
GeneralRe: need help for a simple basic program in mfc vc++ Pin
David Crow29-Apr-10 3:22
David Crow29-Apr-10 3:22 
GeneralRe: need help for a simple basic program in mfc vc++ Pin
rajapp1-May-10 21:04
rajapp1-May-10 21:04 
QuestionWinSock2 / Threads Pin
Fareed Rizkalla28-Apr-10 17:07
Fareed Rizkalla28-Apr-10 17:07 
AnswerRe: WinSock2 / Threads Pin
Moak28-Apr-10 21:05
Moak28-Apr-10 21:05 
GeneralRe: WinSock2 / Threads Pin
Fareed Rizkalla29-Apr-10 7:39
Fareed Rizkalla29-Apr-10 7:39 
GeneralRe: WinSock2 / Threads Pin
Moak29-Apr-10 8:27
Moak29-Apr-10 8:27 
GeneralRe: WinSock2 / Threads Pin
Fareed Rizkalla29-Apr-10 8:33
Fareed Rizkalla29-Apr-10 8:33 

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.