Click here to Skip to main content
15,884,473 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: CMFCToolBarComboBoxButton::GetByCmd returns NULL Pin
Jochen Arndt17-Aug-15 20:59
professionalJochen Arndt17-Aug-15 20:59 
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 
Hi Friends,

I am trying to set focus on the first button in a toolbar control if a key combination like ALT + SHIFT + A is pressed. I am using preTranslate Message, like this

if ( pMsg->message == WM_SYSCHAR && (GetKeyState(VK_SHIFT) & 0x8000) && (pMsg->wParam == 'a' || pMsg->wParam == 'A') )
{
m_wndToolBar.SetFocus();
}

Now. I am getting focus on first button of toolbar. I clicked SPACEBAR and this button get pressed. It open a dialog , after my operation I closed it.

After that, Unfortunately second button get activated. I pressed spacebar again.It will pressed that button and called related function , which will open another dialog. After my operation, I closed it .

Now the focus went to First button. According to project requirement the focus must retain to the last clicked button. I checked in project code, nowhere first button getting activated explicitly.

Please help me out.

Regasrd,
Amrit Agrawal

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 
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 

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.