Click here to Skip to main content
15,887,596 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionRe: A letter to webmaster/author Pin
Hamid_RT1-Mar-07 6:32
Hamid_RT1-Mar-07 6:32 
AnswerRe: A letter to webmaster/author Pin
toxcct1-Mar-07 21:40
toxcct1-Mar-07 21:40 
GeneralRe: A letter to webmaster/author Pin
ThatsAlok1-Mar-07 21:40
ThatsAlok1-Mar-07 21:40 
GeneralRe: A letter to webmaster/author Pin
Programm3r1-Mar-07 20:10
Programm3r1-Mar-07 20:10 
GeneralRe: A letter to webmaster/author Pin
toxcct1-Mar-07 21:43
toxcct1-Mar-07 21:43 
QuestionCreating a SDI window from a dialog (MFC) Pin
sascha.billian1-Mar-07 3:48
sascha.billian1-Mar-07 3:48 
AnswerRe: Creating a SDI window from a dialog (MFC) Pin
Mark Salsbery1-Mar-07 7:28
Mark Salsbery1-Mar-07 7:28 
GeneralRe: Creating a SDI window from a dialog (MFC) Pin
sascha.billian1-Mar-07 8:32
sascha.billian1-Mar-07 8:32 
Yes, the window appears.
I haven't the code here, because i'm at home, but the window shows as it should.

but there's one thing i forgot to tell you.

The problem problem occured, when we tried to gray out a button in the toolbar by clicking on another toolbar button. It didn't gray out.

BUT:

in the menu bar, if i try the same with the menu items which are linked with the buttons (same id), one item is grayed out when clicking the other:

this is the code which is used to create the doc/view and show the window:

CSingleDocTemplate* pDocTemplate;<br />
	pDocTemplate = new CSingleDocTemplate(<br />
		IDR_MAINFRAME,<br />
		RUNTIME_CLASS(CSDI_LeerDoc),<br />
		RUNTIME_CLASS(CMainFrame),       <br />
		RUNTIME_CLASS(CSDI_LeerView));<br />
	AddDocTemplate(pDocTemplate);<br />
<br />
	CCommandLineInfo cmdInfo;<br />
	ParseCommandLine(cmdInfo);<br />
<br />
	if (!ProcessShellCommand(cmdInfo))<br />
		return FALSE;<br />
<br />
	m_pMainWnd->ShowWindow(SW_SHOW);<br />
	m_pMainWnd->UpdateWindow();<br />
...


thanks!
Sascha
QuestionRe: Creating a SDI window from a dialog (MFC) Pin
Mark Salsbery1-Mar-07 8:53
Mark Salsbery1-Mar-07 8:53 
AnswerRe: Creating a SDI window from a dialog (MFC) Pin
led mike1-Mar-07 11:38
led mike1-Mar-07 11:38 
GeneralRe: Creating a SDI window from a dialog (MFC) Pin
sascha.billian5-Mar-07 2:08
sascha.billian5-Mar-07 2:08 
GeneralRe: Creating a SDI window from a dialog (MFC) Pin
led mike5-Mar-07 6:42
led mike5-Mar-07 6:42 
GeneralRe: Creating a SDI window from a dialog (MFC) Pin
sascha.billian6-Mar-07 19:41
sascha.billian6-Mar-07 19:41 
QuestionRead from file into array Pin
JBAK_CP1-Mar-07 3:42
JBAK_CP1-Mar-07 3:42 
AnswerRe: Read from file into array Pin
David Crow1-Mar-07 3:46
David Crow1-Mar-07 3:46 
GeneralRe: Read from file into array Pin
JBAK_CP1-Mar-07 3:53
JBAK_CP1-Mar-07 3:53 
GeneralRe: Read from file into array Pin
David Crow1-Mar-07 3:58
David Crow1-Mar-07 3:58 
QuestionProblems with project from VS2003 in VS2005 Pin
Asdef Jaker1-Mar-07 3:21
Asdef Jaker1-Mar-07 3:21 
QuestionRe: Problems with project from VS2003 in VS2005 Pin
prasad_som1-Mar-07 3:40
prasad_som1-Mar-07 3:40 
QuestionRe: Problems with project from VS2003 in VS2005 Pin
Asdef Jaker1-Mar-07 4:27
Asdef Jaker1-Mar-07 4:27 
QuestionRe: Problems with project from VS2003 in VS2005 Pin
prasad_som1-Mar-07 5:34
prasad_som1-Mar-07 5:34 
AnswerRe: Problems with project from VS2003 in VS2005 Pin
Chris Losinger1-Mar-07 5:29
professionalChris Losinger1-Mar-07 5:29 
AnswerRe: Problems with project from VS2003 in VS2005 Pin
Michael Dunn1-Mar-07 5:54
sitebuilderMichael Dunn1-Mar-07 5:54 
GeneralRe: Problems with project from VS2003 in VS2005 Pin
James R. Twine1-Mar-07 6:30
James R. Twine1-Mar-07 6:30 
GeneralRe: Problems with project from VS2003 in VS2005 Pin
Michael Dunn1-Mar-07 10:06
sitebuilderMichael Dunn1-Mar-07 10:06 

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.