Click here to Skip to main content
15,889,992 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionDraw Using Graphics object from Window Handle Pin
002comp17-Mar-11 18:41
002comp17-Mar-11 18:41 
AnswerRe: Draw Using Graphics object from Window Handle Pin
«_Superman_»17-Mar-11 19:49
professional«_Superman_»17-Mar-11 19:49 
AnswerRe: Draw Using Graphics object from Window Handle Pin
Parthi_Appu17-Mar-11 23:10
Parthi_Appu17-Mar-11 23:10 
QuestionMFC wizard does not see properties on my dispinterface, fails to create code Pin
EricFowler17-Mar-11 15:20
EricFowler17-Mar-11 15:20 
Questionlibcmt.lib problem ... Pin
_Flaviu17-Mar-11 6:04
_Flaviu17-Mar-11 6:04 
AnswerRe: libcmt.lib problem ... Pin
Hans Dietrich17-Mar-11 7:40
mentorHans Dietrich17-Mar-11 7:40 
GeneralRe: libcmt.lib problem ... Pin
_Flaviu17-Mar-11 8:29
_Flaviu17-Mar-11 8:29 
QuestionUsing SetFocus() in a push button. Pin
dipuks17-Mar-11 5:44
dipuks17-Mar-11 5:44 
Hey

I have a C++ WIN32 app having a dialog with 5 buttons.

Now i want to call the SetFocus() function to set the focus on each buttons. The focus does get set in a way, i.e., if i press the space key in key board, it will infact click the button to which the SetFocus() function was set. But visually it doesn't work.

i.e., it doesn't draw a blue border on the button giving it a visual feel that the button has focus on it.

Why is this happening? Is there a way to have SetFocus() draw the blue border along the button?

If i open a windows folder on top of it, it will draw the blue border along the button that was called with SetFocus() function.

Thanks in advance.
AnswerRe: Using SetFocus() in a push button. Pin
Klaus-Werner Konrad17-Mar-11 6:59
Klaus-Werner Konrad17-Mar-11 6:59 
GeneralRe: Using SetFocus() in a push button. Pin
dipuks17-Mar-11 7:01
dipuks17-Mar-11 7:01 
GeneralRe: Using SetFocus() in a push button. Pin
Klaus-Werner Konrad17-Mar-11 9:17
Klaus-Werner Konrad17-Mar-11 9:17 
GeneralRe: Using SetFocus() in a push button. Pin
Albert Holguin17-Mar-11 8:24
professionalAlbert Holguin17-Mar-11 8:24 
GeneralRe: Using SetFocus() in a push button. [modified] Pin
Klaus-Werner Konrad17-Mar-11 9:14
Klaus-Werner Konrad17-Mar-11 9:14 
GeneralRe: Using SetFocus() in a push button. Pin
Albert Holguin17-Mar-11 9:26
professionalAlbert Holguin17-Mar-11 9:26 
QuestionRe: Using SetFocus() in a push button. Pin
David Crow17-Mar-11 10:43
David Crow17-Mar-11 10:43 
AnswerRe: Using SetFocus() in a push button. Pin
dipuks17-Mar-11 11:07
dipuks17-Mar-11 11:07 
GeneralRe: Using SetFocus() in a push button. Pin
Klaus-Werner Konrad17-Mar-11 12:46
Klaus-Werner Konrad17-Mar-11 12:46 
QuestionVisual C++ properties (Teaching an old dog old tricks)... Pin
bob1697217-Mar-11 5:13
bob1697217-Mar-11 5:13 
QuestionObject movement in OpenGl Pin
GAJERA16-Mar-11 22:03
GAJERA16-Mar-11 22:03 
AnswerRe: Object movement in OpenGl Pin
Cedric Moonen16-Mar-11 22:08
Cedric Moonen16-Mar-11 22:08 
GeneralRe: Object movement in OpenGl Pin
GAJERA17-Mar-11 20:31
GAJERA17-Mar-11 20:31 
QuestionRemove button border Pin
goldenrose916-Mar-11 17:04
goldenrose916-Mar-11 17:04 
AnswerRe: Remove button border Pin
Cool_Dev16-Mar-11 19:10
Cool_Dev16-Mar-11 19:10 
GeneralRe: Remove button border Pin
goldenrose916-Mar-11 21:30
goldenrose916-Mar-11 21:30 
AnswerRe: Remove button border Pin
ThatsAlok16-Mar-11 23:43
ThatsAlok16-Mar-11 23:43 

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.