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

C / C++ / MFC

 
GeneralRe: modeless dialog and GetParent() Pin
23_44414-Sep-05 4:17
23_44414-Sep-05 4:17 
GeneralRe: modeless dialog and GetParent() Pin
Chris Losinger14-Sep-05 4:23
professionalChris Losinger14-Sep-05 4:23 
GeneralRe: modeless dialog and GetParent() Pin
23_44414-Sep-05 4:26
23_44414-Sep-05 4:26 
GeneralRe: modeless dialog and GetParent() Pin
David Crow14-Sep-05 4:39
David Crow14-Sep-05 4:39 
AnswerRe: modeless dialog and GetParent() Pin
David Crow14-Sep-05 4:34
David Crow14-Sep-05 4:34 
GeneralRe: modeless dialog and GetParent() Pin
23_44414-Sep-05 4:42
23_44414-Sep-05 4:42 
GeneralRe: modeless dialog and GetParent() Pin
David Crow14-Sep-05 8:30
David Crow14-Sep-05 8:30 
GeneralRe: modeless dialog and GetParent() Pin
23_44415-Sep-05 3:26
23_44415-Sep-05 3:26 
Okay I created a dialog based app and the GetParent function works as advertised. So now we know that the problem is more likely a conceptual one. The mainApp dialog is a popup and the CDialog derived modeless dialog is also a popup. Code is exactly the same as the problem project.

In the problem project example I couldn't get to work I had an MDI application that had a CFormView derived class. It was a child. That child had a button when pressed would create the CDialog derived class modeless dialog. The CDialog derived class was set as PopUp. So can't a child spawn a modeless dialog (works) and can't that dialog in turn know it's spawning entity as Parent (GetParent).

I won't mention anything about child as it was demonstrated to me by David that a modeless dialog shouldn't have a child style. I agree.

I think this is important because these are pretty basic concepts.
Thanks for your help.
Questionbitmaps Pin
_tasleem14-Sep-05 3:19
_tasleem14-Sep-05 3:19 
AnswerRe: bitmaps Pin
M.Mehrdad.M14-Sep-05 3:28
M.Mehrdad.M14-Sep-05 3:28 
AnswerRe: bitmaps Pin
M.Mehrdad.M14-Sep-05 3:29
M.Mehrdad.M14-Sep-05 3:29 
AnswerRe: bitmaps Pin
David Crow14-Sep-05 3:39
David Crow14-Sep-05 3:39 
QuestionError in ShowWindow() function ? Pin
Amarelia14-Sep-05 3:12
Amarelia14-Sep-05 3:12 
AnswerRe: Error in ShowWindow() function ? Pin
krmed14-Sep-05 3:24
krmed14-Sep-05 3:24 
GeneralRe: Error in ShowWindow() function ? Pin
Amarelia14-Sep-05 3:44
Amarelia14-Sep-05 3:44 
AnswerRe: Error in ShowWindow() function ? Pin
kakan14-Sep-05 4:12
professionalkakan14-Sep-05 4:12 
QuestionHow to disable a menu item Pin
snprani14-Sep-05 2:50
snprani14-Sep-05 2:50 
AnswerRe: How to disable a menu item Pin
-Dy14-Sep-05 9:45
-Dy14-Sep-05 9:45 
QuestionHow to disable a menu item Pin
snprani14-Sep-05 2:46
snprani14-Sep-05 2:46 
AnswerRe: How to disable a menu item Pin
kakan14-Sep-05 2:56
professionalkakan14-Sep-05 2:56 
QuestionWMI,Help,help,help,Help,help,help,Help,help,help Pin
Tcpip200514-Sep-05 2:31
Tcpip200514-Sep-05 2:31 
AnswerRe: WMI,Help,help,help,Help,help,help,Help,help,help Pin
Tcpip200514-Sep-05 2:37
Tcpip200514-Sep-05 2:37 
GeneralRe: WMI,gni gni gni gni gni Pin
toxcct14-Sep-05 3:00
toxcct14-Sep-05 3:00 
GeneralRe: WMI,gni gni gni gni gni Pin
David Crow14-Sep-05 3:12
David Crow14-Sep-05 3:12 
GeneralRe: WMI,gni gni gni gni gni Pin
toxcct14-Sep-05 3:17
toxcct14-Sep-05 3:17 

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.