locked
i want handle event vitual keyboard appear on the screen.. RRS feed

  • Question

  • i want handle event vitual keyboard appear on the screen.. how can i do that? i'm using VS2005 and coding by w32

    thanks any help!
    Saturday, May 17, 2008 4:15 PM

Answers

  • event vitual keyboard appear on the screen == SIP visible ?

    If TRUE then you can do it by catching the
    WM_SETTINGCHANGE message.
    Just check if the SIP is visible by calling SHSipInfo with  SPI_GETSIPINFO flag in that  message.


    You can also check http://msdn.microsoft.com/en-us/library/ms911963.aspx
    Sunday, May 18, 2008 8:02 PM

All replies

  • event vitual keyboard appear on the screen == SIP visible ?

    If TRUE then you can do it by catching the
    WM_SETTINGCHANGE message.
    Just check if the SIP is visible by calling SHSipInfo with  SPI_GETSIPINFO flag in that  message.


    You can also check http://msdn.microsoft.com/en-us/library/ms911963.aspx
    Sunday, May 18, 2008 8:02 PM
  • i'm using this code:
    case WM_SETTINGCHANGE:
                {
                    SIPINFO psi;
                SHSipInfo (SPI_GETSIPINFO, 0, &psi, 0);
                wsprintf(szBufW, L"%d", psi.fdwFlags);
                MessageBox(hWnd, szBufW, L"Thông báo", MB_OK);
                }
               
                break;

    but when i open or disable SIP , the message i received always is "2"
    i dont know why ? plz help me..thanks
    Monday, May 19, 2008 10:25 AM
  • Hi hpldt10,

    I advice you to handle WM_KEYDOWN message

    Tuesday, May 20, 2008 4:45 AM