Example - GpiSetBidiAttr

This example sets the Bidirectional Attributes of the presentation space to the set of attributes in ulBidiAttr. flags bit to zero.

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

HWND   hwnd;


VOID SetBidiAttr(VOID)
 {
 HPS hps;
 ULONG ulBidiAttr = BDA_TEXT_ORIENT_LTR | BDA_TEXTTYPE_VISUAL ;
 ULONG fSuccess;

 hps = WinGetPS(hwnd);

 if (hps)
    fSuccess = GpiSetBidiAttr (hps, ulBidiAttr);

 WinReleasePS(hps);

 }


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