Click here to Skip to main content
15,898,222 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionHow to capture an app's stdout? Pin
Alvaro Mendez28-Jun-01 5:22
Alvaro Mendez28-Jun-01 5:22 
AnswerRe: How to capture an app's stdout? Pin
Tomasz Sowinski28-Jun-01 5:35
Tomasz Sowinski28-Jun-01 5:35 
GeneralMessage Box Pin
28-Jun-01 4:57
suss28-Jun-01 4:57 
GeneralRe: Message Box Pin
Michael P Butler29-Jun-01 3:22
Michael P Butler29-Jun-01 3:22 
GeneralRe: Message Box Pin
29-Jun-01 4:34
suss29-Jun-01 4:34 
GeneralRe: Message Box Pin
2-Jul-01 20:06
suss2-Jul-01 20:06 
GeneralWM_INPUTLANGCHANGEREQUEST Pin
28-Jun-01 4:03
suss28-Jun-01 4:03 
GeneralRe: WM_INPUTLANGCHANGEREQUEST Pin
28-Jun-01 4:50
suss28-Jun-01 4:50 
Yes, it *is* bad form to reply to one's own post, sorry! This was not a setup for self-glorification. Poke tongue | ;-P

The message IS coming thru in all cases, just that for the keyboard shortcut, the message gets sent to the MDICLIENT, not the frame. This code in the frame does the trick, it apparently just needs to be handled in the MDICLIENT as well:

(header)
afx_msg LRESULT OnInputLangChangeRequest( WPARAM wParam, LPARAM lParam );

(message map)
ON_MESSAGE( WM_INPUTLANGCHANGEREQUEST, OnInputLangChangeRequest )

(implementation)
LRESULT MainFrame::OnInputLangChangeRequest(
WPARAM wParam,
LPARAM lParam
) {
TRACE( _T("Input language change request, Lang = %X, Sublang = %X\n"), HIWORD( lParam ), LOWORD( lParam ) );

// You must call this for the request to get passed on.
// "When the DefWindowProc function receives the WM_INPUTLANGCHANGEREQUEST
// message, it activates the new input locale and notifies the application
// of the change by sending the WM_INPUTLANGCHANGE message."
LRESULT lResult = DefWindowProc( WM_INPUTLANGCHANGEREQUEST, wParam, lParam );

// Extract the language from the message and select the locale.
LCID lcidNew = MAKELCID( lParam, SORT_DEFAULT );
::SetThreadLocale( lcidNew );


// **Reload display**


return lResult;
}

GeneralRe: WM_INPUTLANGCHANGEREQUEST Pin
28-Jun-01 5:15
suss28-Jun-01 5:15 
GeneralRe: WM_INPUTLANGCHANGEREQUEST Pin
28-Jun-01 9:49
suss28-Jun-01 9:49 
Generalcatch value with vc++ Pin
Gérald Mercet28-Jun-01 4:03
Gérald Mercet28-Jun-01 4:03 
Generalcatch value with vc++ Pin
28-Jun-01 3:59
suss28-Jun-01 3:59 
GeneralVirtual directory Pin
28-Jun-01 2:59
suss28-Jun-01 2:59 
GeneralRe: Virtual directory Pin
Erik Funkenbusch28-Jun-01 11:17
Erik Funkenbusch28-Jun-01 11:17 
QuestionHow to use RegQueryMultipleValues fnc Pin
28-Jun-01 2:44
suss28-Jun-01 2:44 
Generalmouse click problem in ownerdraw menu Pin
Paul Goodyear28-Jun-01 1:47
Paul Goodyear28-Jun-01 1:47 
GeneralRe: mouse click problem in ownerdraw menu Pin
Paul Goodyear28-Jun-01 5:33
Paul Goodyear28-Jun-01 5:33 
GeneralPreprocessor defines and MFC Pin
Serge A. Zhirko28-Jun-01 1:15
Serge A. Zhirko28-Jun-01 1:15 
Generalcursor position Pin
28-Jun-01 1:11
suss28-Jun-01 1:11 
GeneralRe: cursor position Pin
Anders Molin28-Jun-01 3:01
professionalAnders Molin28-Jun-01 3:01 
GeneralOLE Drag Drop in an ActiveX control Pin
28-Jun-01 0:52
suss28-Jun-01 0:52 
GeneralMulti page TIF Pin
28-Jun-01 0:30
suss28-Jun-01 0:30 
GeneralRe: Multi page TIF Pin
PhoenixHawke23-Aug-07 8:57
PhoenixHawke23-Aug-07 8:57 
QuestionHow do i implement a context menu and a Right Mouse button Double click at the same time? Pin
28-Jun-01 0:27
suss28-Jun-01 0:27 
AnswerRe: How do i implement a context menu and a Right Mouse button Double click at the same time? Pin
Tomasz Sowinski28-Jun-01 0:39
Tomasz Sowinski28-Jun-01 0:39 

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.