Click here to Skip to main content
15,909,539 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionHow to making a hidden file Pin
VCProgrammer17-Aug-08 19:04
VCProgrammer17-Aug-08 19:04 
AnswerRe: How to making a hidden file Pin
Jijo.Raj17-Aug-08 19:09
Jijo.Raj17-Aug-08 19:09 
AnswerRe: How to making a hidden file Pin
Hamid_RT18-Aug-08 5:03
Hamid_RT18-Aug-08 5:03 
QuestionHow could I get the parent of an embedded control generically ? Pin
SherTeks17-Aug-08 18:48
SherTeks17-Aug-08 18:48 
AnswerRe: How could I get the parent of an embedded control generically ? Pin
Nibu babu thomas17-Aug-08 19:08
Nibu babu thomas17-Aug-08 19:08 
GeneralRe: How could I get the parent of an embedded control generically ? Pin
Naveen17-Aug-08 19:13
Naveen17-Aug-08 19:13 
GeneralRe: How could I get the parent of an embedded control generically ? Pin
Nibu babu thomas17-Aug-08 19:16
Nibu babu thomas17-Aug-08 19:16 
GeneralRe: How could I get the parent of an embedded control generically ? Pin
SherTeks17-Aug-08 19:28
SherTeks17-Aug-08 19:28 
Thanks for your reply.

May be I need to make my question a bit more clearer.

Just assume that my dialog application has 2 controls : 1) a Combo Box and 2) another container control similar to
combo box (but not exactly combo box).

The common trait between the two controls is that they both embed the list box object derived from CListBoxEx.

Now, I could right-click on any one list box at a particular point of time during run-time.

The right-click would bring the control to the OnContextMenu of CListBoxEx::OnContextMenu. In this place, I should be
able to identify the parent ie. either control 1) or 2) using GetParent(). But the only condition is that I shouldn't
cast the pointer returned by GetParent() to any of the parent control pointers ie. GetParent()->TestFn() must call
the TestFn() member function of the appropriate control of which the list box was right-clicked.

Thanks
GeneralRe: How could I get the parent of an embedded control generically ? Pin
Nibu babu thomas17-Aug-08 19:59
Nibu babu thomas17-Aug-08 19:59 
GeneralRe: How could I get the parent of an embedded control generically ? Pin
SherTeks17-Aug-08 21:59
SherTeks17-Aug-08 21:59 
AnswerRe: How could I get the parent of an embedded control generically ? Pin
Naveen17-Aug-08 19:11
Naveen17-Aug-08 19:11 
QuestionWeird stack corruption problem Pin
jozsurf17-Aug-08 18:11
jozsurf17-Aug-08 18:11 
AnswerRe: Weird stack corruption problem Pin
Naveen17-Aug-08 18:22
Naveen17-Aug-08 18:22 
AnswerRe: Weird stack corruption problem Pin
Stephen Hewitt17-Aug-08 18:24
Stephen Hewitt17-Aug-08 18:24 
GeneralRe: Weird stack corruption problem Pin
jozsurf17-Aug-08 18:33
jozsurf17-Aug-08 18:33 
GeneralRe: Weird stack corruption problem Pin
Stephen Hewitt17-Aug-08 18:36
Stephen Hewitt17-Aug-08 18:36 
GeneralRe: Weird stack corruption problem Pin
jozsurf17-Aug-08 19:45
jozsurf17-Aug-08 19:45 
GeneralRe: Weird stack corruption problem Pin
Stephen Hewitt17-Aug-08 19:57
Stephen Hewitt17-Aug-08 19:57 
GeneralRe: Weird stack corruption problem Pin
jozsurf17-Aug-08 20:23
jozsurf17-Aug-08 20:23 
GeneralRe: Weird stack corruption problem Pin
Nibu babu thomas17-Aug-08 18:52
Nibu babu thomas17-Aug-08 18:52 
GeneralRe: Weird stack corruption problem Pin
Stephen Hewitt17-Aug-08 19:49
Stephen Hewitt17-Aug-08 19:49 
GeneralRe: Weird stack corruption problem Pin
jozsurf17-Aug-08 19:55
jozsurf17-Aug-08 19:55 
QuestionDo I need call CString::Empty? Pin
fantasy121517-Aug-08 17:27
fantasy121517-Aug-08 17:27 
AnswerRe: Do I need call CString::Empty? Pin
Naveen17-Aug-08 17:46
Naveen17-Aug-08 17:46 
GeneralRe: Do I need call CString::Empty? Pin
fantasy121517-Aug-08 17:54
fantasy121517-Aug-08 17:54 

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.