Click here to Skip to main content
15,921,959 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Unable to see new string added in a list box. Pin
David Crow10-Aug-07 4:04
David Crow10-Aug-07 4:04 
QuestionDialog Window Pin
radhika289-Aug-07 18:42
radhika289-Aug-07 18:42 
AnswerRe: Dialog Window Pin
hxhl959-Aug-07 18:49
hxhl959-Aug-07 18:49 
AnswerRe: Dialog Window Pin
Nishad S9-Aug-07 18:52
Nishad S9-Aug-07 18:52 
GeneralRe: Dialog Window Pin
radhika289-Aug-07 19:57
radhika289-Aug-07 19:57 
GeneralRe: Dialog Window Pin
Nishad S9-Aug-07 20:30
Nishad S9-Aug-07 20:30 
GeneralRe: Dialog Window Pin
radhika289-Aug-07 20:53
radhika289-Aug-07 20:53 
GeneralRe: Dialog Window Pin
Nishad S9-Aug-07 21:28
Nishad S9-Aug-07 21:28 
The problem is that you are using the DoModal and the dlg is local in OnSettings(). In this case I will suggest a simple solution.

1. Make the CSettings dlg as class member, CSettings m_dlgSettings.
2. Change the code as,
void CMainFrame::OnSettings() <br />
{<br />
 if( IsWindow( m_dlgSettings.m_hWnd )) return;<br />
 m_dlgSettings.DoModal();<br />
}

3. Let me know the result... Wink | ;)

- NS -

GeneralRe: Dialog Window Pin
radhika289-Aug-07 21:46
radhika289-Aug-07 21:46 
GeneralRe: Dialog Window Pin
Nishad S9-Aug-07 21:56
Nishad S9-Aug-07 21:56 
GeneralRe: Dialog Window [modified] Pin
radhika289-Aug-07 22:40
radhika289-Aug-07 22:40 
GeneralRe: Dialog Window Pin
Nishad S9-Aug-07 22:48
Nishad S9-Aug-07 22:48 
GeneralRe: Dialog Window Pin
Nishad S9-Aug-07 23:08
Nishad S9-Aug-07 23:08 
GeneralRe: Dialog Window Pin
David Crow10-Aug-07 4:07
David Crow10-Aug-07 4:07 
QuestionC, C+, C# to C++ Pin
Jay Minor9-Aug-07 18:40
Jay Minor9-Aug-07 18:40 
AnswerRe: C, C+, C# to C++ Pin
_AnsHUMAN_ 9-Aug-07 19:53
_AnsHUMAN_ 9-Aug-07 19:53 
AnswerRe: C, C+, C# to C++ Pin
Hamid_RT10-Aug-07 1:08
Hamid_RT10-Aug-07 1:08 
GeneralRe: C, C+, C# to C++ Pin
Jay Minor11-Aug-07 12:29
Jay Minor11-Aug-07 12:29 
GeneralRe: C, C+, C# to C++ Pin
Hamid_RT11-Aug-07 20:59
Hamid_RT11-Aug-07 20:59 
QuestionMixing C and C++ code Pin
ForNow9-Aug-07 18:36
ForNow9-Aug-07 18:36 
AnswerRe: Mixing C and C++ code Pin
Cedric Moonen9-Aug-07 20:28
Cedric Moonen9-Aug-07 20:28 
GeneralRe: Mixing C and C++ code Pin
ForNow9-Aug-07 23:26
ForNow9-Aug-07 23:26 
GeneralRe: Mixing C and C++ code Pin
Cedric Moonen9-Aug-07 23:41
Cedric Moonen9-Aug-07 23:41 
GeneralRe: Mixing C and C++ code Pin
ForNow10-Aug-07 6:25
ForNow10-Aug-07 6:25 
GeneralRe: Mixing C and C++ code Pin
jhwurmbach10-Aug-07 1:58
jhwurmbach10-Aug-07 1:58 

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.