Block alt + shift event or disable language change in programming mode

I need to block the alt+ shiftkeys event using C ++ or somehow block the language change.

Thanks in advance.

+3
source share
5 answers

I would go about this a little differently. I would run the current langauge settings at startup, than change it to the desired one.

At an even alt + offset, I would just return it back to the correct type again.

With a grid should be easy to do.

Here is a short article on how to manipulate languages: How to change the input language programmatically

And the main class in msdna: InputLanguage Documentation

alt + Windows, .

Windows.

+6

. WM_KEYDOWN ActivateKeyboardLayout .

+3

++ , , (/ ) (s ) .

+1

MSDN , WM_INPUTLANGCHANGEREQUEST, , Windows . , . http://msdn.microsoft.com/en-us/library/ms632630(VS.85).aspx

, ITfInputProcessorProfileActivationSink::OnActivated, , , ITfInputProcessorProfiles::ActivateLanguageProfile. ITfInputProcessorProfiles::GetActiveLanguageProfile.

, ITfLanguageProfileNotifySink::OnLanguageChange, *pfAccept FALSE S_OK. http://msdn.microsoft.com/en-us/library/windows/desktop/ms628770(v=vs.85).aspx

. , , , Alt + Shift, .

, RegisterHotKey Alt + Shift , .

+1

All Articles