Click here to Skip to main content
15,919,613 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionAdjust paper size Pin
Erich Ruth17-Aug-15 10:02
Erich Ruth17-Aug-15 10:02 
AnswerRe: Adjust paper size Pin
Kenneth Walters17-Aug-15 11:09
Kenneth Walters17-Aug-15 11:09 
QuestionWindows 10 & WM_QUERY_ENDSESSION/WM_ENDSESSION Pin
Peter Weyzen17-Aug-15 4:51
Peter Weyzen17-Aug-15 4:51 
Questionc++ Qt or C# or JAVA !! Pin
Dreamer_X15-Aug-15 3:51
Dreamer_X15-Aug-15 3:51 
AnswerRe: c++ Qt or C# or JAVA !! Pin
OriginalGriff15-Aug-15 3:54
mveOriginalGriff15-Aug-15 3:54 
AnswerRe: c++ Qt or C# or JAVA !! Pin
ThatsAlok20-Aug-15 0:24
ThatsAlok20-Aug-15 0:24 
QuestionFirst button of toolbar control get activated after another button get executed Pin
Amrit Agr14-Aug-15 1:35
Amrit Agr14-Aug-15 1:35 
QuestionCheckbox: SetFocus() doesn't draw broken rectangle around it Pin
Donguy197613-Aug-15 13:39
Donguy197613-Aug-15 13:39 
I am working on a legacy Windows app written in Win32.

There's a checkbox in the screen and i call the SetFocus() function to have the focus on it. I know that it works as far as setting the focus, because now i can use space button in keyboard to check and uncheck the checkbox.

But the problem is, when a control get's the focus, it's supposed show a broken rectangle around it. In my case this broken rectangle is not drawn/shown all the time. Sometimes it shows the broken rectangle and some times it doesn't.

I need to show some visual indication to user that this checkbox has the focus. I tried using WM_CTLCOLORSTATIC, but that creates some painting issues in the window.

So am looking for a simpler solution, by which i could show some visual indicator to user that this checkbox is having focus.

Like changing the text color or background color or even force draw a broken rectangle.

But i have no idea how to do this without using the WM_CTLCOLORSTATIC.

Is there a easier way to show some sort of visual indication on a checkbox in Win32?

Thanks in advance!
AnswerRe: Checkbox: SetFocus() doesn't draw broken rectangle around it Pin
Arthur V. Ratz13-Aug-15 19:13
professionalArthur V. Ratz13-Aug-15 19:13 
QuestionLearning C++ Pin
Kevin Marois13-Aug-15 11:12
professionalKevin Marois13-Aug-15 11:12 
AnswerRe: Learning C++ Pin
jeron113-Aug-15 12:09
jeron113-Aug-15 12:09 
GeneralRe: Learning C++ Pin
Kevin Marois13-Aug-15 12:13
professionalKevin Marois13-Aug-15 12:13 
AnswerRe: Learning C++ Pin
Nitin K. Kawale17-Aug-15 1:55
professionalNitin K. Kawale17-Aug-15 1:55 
QuestionURLDownloadToFile stopped working on Windows 10 Pin
DavidBaird12-Aug-15 13:18
DavidBaird12-Aug-15 13:18 
SuggestionRe: URLDownloadToFile stopped working on Windows 10 Pin
Ujesh Mohanan13-Aug-15 3:30
Ujesh Mohanan13-Aug-15 3:30 
GeneralRe: URLDownloadToFile stopped working on Windows 10 Pin
DavidBaird13-Aug-15 10:43
DavidBaird13-Aug-15 10:43 
QuestionHow to read an XML file in C++.? Pin
mbatra3112-Aug-15 0:02
mbatra3112-Aug-15 0:02 
JokeRe: How to read an XML file in C++.? Pin
enhzflep12-Aug-15 0:12
enhzflep12-Aug-15 0:12 
AnswerRe: How to read an XML file in C++.? Pin
David Crow12-Aug-15 1:58
David Crow12-Aug-15 1:58 
AnswerRe: How to read an XML file in C++.? Pin
Richard MacCutchan12-Aug-15 1:58
mveRichard MacCutchan12-Aug-15 1:58 
AnswerRe: How to read an XML file in C++.? Pin
Ujesh Mohanan12-Aug-15 2:05
Ujesh Mohanan12-Aug-15 2:05 
AnswerRe: How to read an XML file in C++.? Pin
DavidBaird12-Aug-15 13:29
DavidBaird12-Aug-15 13:29 
AnswerRe: How to read an XML file in C++.? Pin
Maximilien17-Aug-15 3:36
Maximilien17-Aug-15 3:36 
AnswerRe: How to read an XML file in C++.? Pin
Peter Weyzen17-Aug-15 4:54
Peter Weyzen17-Aug-15 4:54 
QuestionManabJB Pin
Member 1189993510-Aug-15 16:05
Member 1189993510-Aug-15 16:05 

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.