Click here to Skip to main content
15,916,600 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionTo hide a Dialog Pin
siddharthsan20-Mar-07 20:11
siddharthsan20-Mar-07 20:11 
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 
toxcct wrote:
actually, no. the GetDlgItem() function always returns a CWnd*,


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

toxcct wrote:
every CWnd inherited classes, you don't need to cast explicitely.


Unless you needed functions from CWnd class. To

To understand, what I wanted to say, see pointer returned by GetDlgItem in debugger window.


GeneralRe: To hide a Dialog Pin
toxcct20-Mar-07 23:03
toxcct20-Mar-07 23:03 
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 

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.