Example - GpiQueryBidiAttr

This example Queries the Bidirectional Attributes of the presentation space, modifed the BDA_TEXTTYPE parameter and sets the new value to be the new bidirectional attributes word of the presentation space.

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


VOID SetBidiAttr(VOID)
 {
 HPS hps;
 ULONG ulBidiAttr;
 ULONG fSuccess;

 hps = WinGetPS(hwnd);

 if (hps)
    ulBidiAttr = GpiQueryBidiAttr (hps);

 ulBidiAttr &= ~BDAM_TEXTTYPE;
 ulBidiAttr |= BDA_TEXTTYPE_VISUAL;

 fSuccess = GpiSetBidiAttr (hps, ulBidiAttr);

 WinReleasePS(hps);

 }


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