Click here to Skip to main content
15,891,136 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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 
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 
I don't know exactly, but it seems to me that you should never call SetFocus() method. Instead, we have to post WM_SETFOCUS message to the checkbox control as follows:

C++
HWND hCheckBoxWnd = NULL;
if ((hCheckBoxWnd = ::GetDlgItem(hDlg,IDC_YOUR_CHECK_BOX_ID)))
    ::PostMessage(hCheckBoxWnd, WM_SETFOCUS, 0, 0);

Actually, you should not send the message using SendMessage(...) Win32API function, all you have to do is to post the message using PostMessage(...) instead.
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 
QuestionRe: ManabJB Pin
CPallini10-Aug-15 21:42
mveCPallini10-Aug-15 21:42 

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.