Click here to Skip to main content
15,910,277 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: To hide a Dialog Pin
prasad_som20-Mar-07 20:15
prasad_som20-Mar-07 20:15 
GeneralRe: To hide a Dialog Pin
siddharthsan20-Mar-07 20:26
siddharthsan20-Mar-07 20:26 
GeneralRe: To hide a Dialog Pin
toxcct20-Mar-07 20:40
toxcct20-Mar-07 20:40 
GeneralRe: To hide a Dialog Pin
siddharthsan20-Mar-07 20:52
siddharthsan20-Mar-07 20:52 
AnswerRe: To hide a Dialog Pin
prasad_som20-Mar-07 21:21
prasad_som20-Mar-07 21:21 
GeneralRe: To hide a Dialog Pin
toxcct20-Mar-07 22:16
toxcct20-Mar-07 22:16 
AnswerRe: To hide a Dialog Pin
prasad_som20-Mar-07 22:40
prasad_som20-Mar-07 22:40 
GeneralRe: To hide a Dialog Pin
toxcct20-Mar-07 23:03
toxcct20-Mar-07 23:03 
prasad_som wrote:
You are not getting my point. In Case of buttons, pointer returned will of of CButton type. Remember thats why down casting it to(dynamic_cast) CButton* is succesful. Otherwise it would have made it NULL


is it ? Confused | :confused:
does the CButton class overload the GetDlgItem() function ? i don't think so.
I still think all that is done here happens because of polymorphism (or i still don't get your point... Poke tongue | ;-P )

BTW, i don't have an IDE with me, so not able to test anything.
but what i think you see in the debugger is because you assign it to a CButton* pointer. what if you assign a CWnd* variable ?


AnswerRe: To hide a Dialog Pin
prasad_som20-Mar-07 23:22
prasad_som20-Mar-07 23:22 
GeneralRe: To hide a Dialog Pin
David Crow21-Mar-07 4:06
David Crow21-Mar-07 4:06 
QuestionRe: To hide a Dialog Pin
prasad_som21-Mar-07 4:19
prasad_som21-Mar-07 4:19 
AnswerRe: To hide a Dialog Pin
David Crow21-Mar-07 4:23
David Crow21-Mar-07 4:23 
GeneralRe: To hide a Dialog Pin
prasad_som21-Mar-07 7:38
prasad_som21-Mar-07 7:38 
QuestionRe: To hide a Dialog Pin
David Crow21-Mar-07 7:43
David Crow21-Mar-07 7:43 
AnswerRe: To hide a Dialog Pin
prasad_som21-Mar-07 8:00
prasad_som21-Mar-07 8:00 
GeneralRe: To hide a Dialog Pin
David Crow21-Mar-07 3:54
David Crow21-Mar-07 3:54 
AnswerRe: To hide a Dialog Pin
prasad_som20-Mar-07 20:40
prasad_som20-Mar-07 20:40 
QuestionCapture a menu of a Window [modified] Pin
surajcd20-Mar-07 20:04
surajcd20-Mar-07 20:04 
AnswerRe: Capture a menu of a Window Pin
Michael Dunn20-Mar-07 20:26
sitebuilderMichael Dunn20-Mar-07 20:26 
QuestionAdd folder to Start Menu Pin
kiranin20-Mar-07 19:42
kiranin20-Mar-07 19:42 
AnswerRe: Add folder to Start Menu Pin
KaЯl21-Mar-07 1:12
KaЯl21-Mar-07 1:12 
AnswerRe: Add folder to Start Menu Pin
ThatsAlok21-Mar-07 19:37
ThatsAlok21-Mar-07 19:37 
QuestionRadio buttons and combo boxes Pin
gingerballs20-Mar-07 19:35
gingerballs20-Mar-07 19:35 
AnswerRe: Radio buttons and combo boxes Pin
_AnsHUMAN_ 20-Mar-07 19:48
_AnsHUMAN_ 20-Mar-07 19:48 
AnswerRe: Radio buttons and combo boxes Pin
ThatsAlok20-Mar-07 22:25
ThatsAlok20-Mar-07 22:25 

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.