Click here to Skip to main content
15,906,645 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Open dialog? Pin
benjymous21-Oct-04 23:07
benjymous21-Oct-04 23:07 
GeneralRe: Open dialog? Pin
Larsson21-Oct-04 23:35
Larsson21-Oct-04 23:35 
GeneralRe: Open dialog? Pin
Larsson23-Oct-04 6:53
Larsson23-Oct-04 6:53 
GeneralRe: Open dialog? Pin
benjymous23-Oct-04 20:17
benjymous23-Oct-04 20:17 
AnswerRe: Open dialog? Pin
BlackDice22-Oct-04 3:19
BlackDice22-Oct-04 3:19 
GeneralRe: Open dialog? Pin
Larsson23-Oct-04 6:54
Larsson23-Oct-04 6:54 
AnswerRe: Open dialog? Pin
David Crow22-Oct-04 4:40
David Crow22-Oct-04 4:40 
GeneralRe: Open dialog? Pin
Larsson23-Oct-04 6:54
Larsson23-Oct-04 6:54 
Well I get the error: ASSERT(::IsWindow(m_hWnd));

On my main dialog I show the modless dialog and on the modless dialog I try to close it.

MAIN dialog
CModless m_modless;
m_modless.ShowWindows(SW_SHOW); // Works Greate

Modless dialog (on close )
CModless m_modless;
m_modless.ShowWindow(SW_HIDE); // Get the error.

On initdialog on the main dialog I use,
m_modless.Create(IDD_MODLESS); // To create the modless dialog.

It works to show the dialog but not to close it.
What Im I doing wrong?
GeneralRe: Open dialog? Pin
David Crow25-Oct-04 2:50
David Crow25-Oct-04 2:50 
Questionclose dialog? Pin
Larsson21-Oct-04 20:39
Larsson21-Oct-04 20:39 
AnswerRe: close dialog? Pin
V.21-Oct-04 21:01
professionalV.21-Oct-04 21:01 
GeneralRe: close dialog? Pin
Larsson21-Oct-04 21:05
Larsson21-Oct-04 21:05 
GeneralRe: close dialog? Pin
Larsson21-Oct-04 21:07
Larsson21-Oct-04 21:07 
GeneralRe: close dialog? Pin
V.21-Oct-04 21:27
professionalV.21-Oct-04 21:27 
GeneralRe: close dialog? Pin
Larsson21-Oct-04 21:31
Larsson21-Oct-04 21:31 
GeneralC++ question. Pin
WREY21-Oct-04 20:16
WREY21-Oct-04 20:16 
GeneralRe: C++ question. Pin
Yulianto.21-Oct-04 22:04
Yulianto.21-Oct-04 22:04 
GeneralRe: C++ question. Pin
V.21-Oct-04 23:27
professionalV.21-Oct-04 23:27 
GeneralRe: C++ question. Pin
digwizfox22-Oct-04 11:05
digwizfox22-Oct-04 11:05 
GeneralRe: C++ question. Pin
WREY22-Oct-04 13:46
WREY22-Oct-04 13:46 
GeneralRe: C++ question. Pin
digwizfox25-Oct-04 6:32
digwizfox25-Oct-04 6:32 
GeneralRe: C++ question. Pin
WREY25-Oct-04 7:31
WREY25-Oct-04 7:31 
GeneralReading Field Pin
picasso221-Oct-04 19:58
picasso221-Oct-04 19:58 
GeneralRe: Reading Field Pin
Yulianto.21-Oct-04 22:39
Yulianto.21-Oct-04 22:39 
GeneralRe: Reading Field Pin
David Crow22-Oct-04 4:44
David Crow22-Oct-04 4:44 

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.