Example - WinQueryLangInfo

This example queries the Staus bits of a window. If these indicated the characters to be FINAL, a message is printed saying so else it says that they are not final characters

#define INCL_PMBIDI
#include <OS2.H>
#include <PMBIDI.H>



VOID QueryLangInfo(HWND hwnd)
 {
 ULONG  BidiStat;

    BidiStat = WinQueryLangInfo(hwnd,        /* Window handle of the window whose      */
                                             /* status is queried                      */
                         LI_BD_WND_STAT,     /* The window status is queried           */
                         LIF_NO_SENDMSG,
                         0L);                /* Reserved to be 0L                      */

    if ( QUERY_BD_VALUE (BidiStat,BDSM_HKFLAGS) == BDS_HKFLAG_PUSH)
        WinMessageBox (HWND_DESKTOP,
                       hwnd,
                       "Push Hotkey is disabled",
                       "Result",
                        0,
                        MB_OK);
    else
        WinMessageBox (HWND_DESKTOP,
                       hwnd,
                       "Push Hotkey is enabled".
                       "Result",
                        0,
                        MB_OK);

 }


[Back: Notes - WinQueryLangInfo]
[Next: Related Functions - WinQueryLangInfo]