Click here to Skip to main content
16,005,491 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: GetParent Pin
CPallini17-Jul-08 22:30
mveCPallini17-Jul-08 22:30 
GeneralRe: GetParent Pin
ThatsAlok18-Jul-08 1:42
ThatsAlok18-Jul-08 1:42 
GeneralRe: GetParent Pin
CPallini18-Jul-08 1:46
mveCPallini18-Jul-08 1:46 
GeneralRe: GetParent Pin
Rajesh R Subramanian18-Jul-08 1:58
professionalRajesh R Subramanian18-Jul-08 1:58 
JokeRe: GetParent [modified] Pin
CPallini18-Jul-08 2:10
mveCPallini18-Jul-08 2:10 
GeneralRe: GetParent Pin
Rajesh R Subramanian18-Jul-08 3:29
professionalRajesh R Subramanian18-Jul-08 3:29 
AnswerRe: GetParent Pin
ThatsAlok17-Jul-08 19:17
ThatsAlok17-Jul-08 19:17 
AnswerRe: GetParent Pin
CPallini17-Jul-08 21:20
mveCPallini17-Jul-08 21:20 
1. Please post the actual code (not a crappy-simulating one).
2. Whenever you create a child dialog window, you should pass a pointer to the parent as second parameter (from MSDN [^]):

virtual BOOL Create(
UINT nIDTemplate,
CWnd* pParentWnd = NULL
);

if you rely on the default parameter then dialog's GetParent will return NULL.
Smile | :)

If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.

This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke


[My articles]

QuestionRe: GetParent Pin
David Crow18-Jul-08 10:17
David Crow18-Jul-08 10:17 
QuestionNetwork Programing Question. Pin
CresShadow17-Jul-08 14:54
CresShadow17-Jul-08 14:54 
AnswerRe: Network Programing Question. Pin
David Crow17-Jul-08 16:00
David Crow17-Jul-08 16:00 
AnswerRe: Network Programing Question. Pin
led mike17-Jul-08 18:46
led mike17-Jul-08 18:46 
JokeRe: Network Programing Question. Pin
CPallini17-Jul-08 21:40
mveCPallini17-Jul-08 21:40 
GeneralRe: Network Programing Question. Pin
CresShadow19-Jul-08 6:30
CresShadow19-Jul-08 6:30 
GeneralRe: Network Programing Question. Pin
led mike21-Jul-08 5:43
led mike21-Jul-08 5:43 
QuestionMaze Search in C++ Pin
Roppa17-Jul-08 13:24
Roppa17-Jul-08 13:24 
AnswerRe: Maze Search in C++ Pin
enhzflep17-Jul-08 18:08
enhzflep17-Jul-08 18:08 
QuestionRe: Maze Search in C++ Pin
Roppa17-Jul-08 23:36
Roppa17-Jul-08 23:36 
AnswerRe: Maze Search in C++ Pin
enhzflep18-Jul-08 16:42
enhzflep18-Jul-08 16:42 
GeneralRe: Maze Search in C++ Pin
Roppa21-Jul-08 8:32
Roppa21-Jul-08 8:32 
QuestionIs anyone using RFID reader here? Pin
includeh1017-Jul-08 9:52
includeh1017-Jul-08 9:52 
AnswerRe: Is anyone using RFID reader here? Pin
ThatsAlok17-Jul-08 21:57
ThatsAlok17-Jul-08 21:57 
QuestionHow to create a HashTable in C++? Pin
includeh1017-Jul-08 9:36
includeh1017-Jul-08 9:36 
AnswerRe: How to create a HashTable in C++? Pin
JudyL_MD17-Jul-08 10:08
JudyL_MD17-Jul-08 10:08 
AnswerRe: How to create a HashTable in C++? Pin
Budric B.17-Jul-08 10:08
Budric B.17-Jul-08 10:08 

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.