Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

28 lines
711 B

  1. //----------------------------------------------------------------------
  2. // SetModeBias.cpp
  3. //
  4. // Utility function to set to input bias mode
  5. //
  6. #include "stock.h"
  7. #pragma hdrstop
  8. #include <imm.h>
  9. //----------------------------------------------------------------------
  10. void SetModeBias(DWORD dwMode)
  11. {
  12. if (IsOS(OS_TABLETPC))
  13. {
  14. static UINT s_msgMSIMEModeBias = 0;
  15. HWND hwndIME = ImmGetDefaultIMEWnd(NULL);
  16. if (s_msgMSIMEModeBias == 0)
  17. {
  18. s_msgMSIMEModeBias = RegisterWindowMessage(RWM_MODEBIAS);
  19. }
  20. if (hwndIME && s_msgMSIMEModeBias)
  21. {
  22. PostMessage(hwndIME, s_msgMSIMEModeBias, MODEBIAS_SETVALUE, dwMode);
  23. }
  24. }
  25. }