Click here to Skip to main content
15,915,336 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: modeless dialog in the client area of MDI-application Pin
Franken20-Mar-07 3:53
Franken20-Mar-07 3:53 
GeneralRe: modeless dialog in the client area of MDI-application Pin
Arman S.20-Mar-07 4:16
Arman S.20-Mar-07 4:16 
GeneralRe: modeless dialog in the client area of MDI-application Pin
Maximilien20-Mar-07 4:51
Maximilien20-Mar-07 4:51 
QuestionRe: modeless dialog in the client area of MDI-application Pin
David Crow20-Mar-07 5:15
David Crow20-Mar-07 5:15 
AnswerRe: modeless dialog in the client area of MDI-application Pin
Maximilien20-Mar-07 9:10
Maximilien20-Mar-07 9:10 
GeneralRe: modeless dialog in the client area of MDI-application Pin
Franken20-Mar-07 5:27
Franken20-Mar-07 5:27 
AnswerRe: modeless dialog in the client area of MDI-application Pin
Mark Salsbery20-Mar-07 9:20
Mark Salsbery20-Mar-07 9:20 
GeneralRe: modeless dialog in the client area of MDI-application Pin
Franken20-Mar-07 15:13
Franken20-Mar-07 15:13 
I set the style to child in the dialog editor properties and did the following during the creation of the dialog:

CMainFrame* pFrame = (CMainFrame*)GetMainWnd();
CChildFrame* pChild = (CChildFrame*)pFrame->GetActiveFrame();

CmyDlg* pDlg = new CmyDlg;
pDlg->Create(IDD_DIALOG_myDlg, pChild->GetParent());
pDlg->ShowWindow(SW_SHOW);


This is almost what I wanted but it shows some weird behaviour. When a region of the dialog is covered by another child window this region shows still the part of the child window even if I drag the dialog to another place. It only restores the correct dialog, when I resize the dialog. Is there somewhere a flag like redraw or something?

Many thanks Smile | :) ,
Frank.
GeneralRe: modeless dialog in the client area of MDI-application Pin
Mark Salsbery20-Mar-07 16:15
Mark Salsbery20-Mar-07 16:15 
GeneralRe: modeless dialog in the client area of MDI-application Pin
Mark Salsbery20-Mar-07 16:20
Mark Salsbery20-Mar-07 16:20 
AnswerRe: modeless dialog in the client area of MDI-application Pin
David Crow20-Mar-07 10:03
David Crow20-Mar-07 10:03 
QuestionDisplay Problem [modified] Pin
baerten20-Mar-07 1:48
baerten20-Mar-07 1:48 
QuestionRe: Display Problem Pin
baerten20-Mar-07 3:04
baerten20-Mar-07 3:04 
QuestionMultiple CDC::SelectObject() Pin
PatrykDabrowski20-Mar-07 1:34
PatrykDabrowski20-Mar-07 1:34 
AnswerRe: Multiple CDC::SelectObject() Pin
CPallini20-Mar-07 1:39
mveCPallini20-Mar-07 1:39 
GeneralRe: Multiple CDC::SelectObject() Pin
PatrykDabrowski20-Mar-07 1:46
PatrykDabrowski20-Mar-07 1:46 
AnswerRe: Multiple CDC::SelectObject() Pin
pri_skit20-Mar-07 1:54
pri_skit20-Mar-07 1:54 
QuestionRe: Multiple CDC::SelectObject() Pin
PatrykDabrowski20-Mar-07 2:06
PatrykDabrowski20-Mar-07 2:06 
GeneralRe: Multiple CDC::SelectObject() Pin
Parthi_Appu20-Mar-07 2:24
Parthi_Appu20-Mar-07 2:24 
QuestionRe: Multiple CDC::SelectObject() Pin
PatrykDabrowski20-Mar-07 2:39
PatrykDabrowski20-Mar-07 2:39 
JokeRe: Multiple CDC::SelectObject() Pin
CPallini20-Mar-07 2:45
mveCPallini20-Mar-07 2:45 
GeneralRe: Multiple CDC::SelectObject() Pin
toxcct20-Mar-07 3:14
toxcct20-Mar-07 3:14 
GeneralRe: Multiple CDC::SelectObject() Pin
PatrykDabrowski20-Mar-07 3:19
PatrykDabrowski20-Mar-07 3:19 
GeneralRe: Multiple CDC::SelectObject() Pin
toxcct20-Mar-07 3:25
toxcct20-Mar-07 3:25 
GeneralRe: Multiple CDC::SelectObject() Pin
PatrykDabrowski20-Mar-07 3:47
PatrykDabrowski20-Mar-07 3:47 

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.