nanogui: is DrawText() with DT_CENTER working?


Previous by date: 31 May 2000 01:28:20 -0000 Re: Microwindows API, Greg Haerr
Next by date: 31 May 2000 01:28:20 -0000 Re: porting microwin 0.88 pre4 to rtems 4.0.0, Rosimildo daSilva
Previous in thread: 31 May 2000 01:28:20 -0000 is DrawText() with DT_CENTER working?, Jun Sun
Next in thread:

Subject: Re: is DrawText() with DT_CENTER working?
From: "Greg Haerr" ####@####.####
Date: 31 May 2000 01:28:20 -0000
Message-Id: <034801bfca9f$ca7f1480$15320cd0@gregh>

: void DrawDone(HDC hdc, RECT r)
: {
:         const char donemsg[] = "Calibration is done!";
:         DrawText(hdc, donemsg, -1, &r, DT_CENTER);
: }

Jun,
    The reason it doesn't work is because DT_CENTER
isn't yet implemented.  Goto microwin/src/mwin/wingdi.c
and look at the ExtTextOut function.  You'll need to case
on (DT_LEFT|DT_CENTER|DT_RIGHT) and add
something to the passed x value in order to work.

Regards,

Greg



Previous by date: 31 May 2000 01:28:20 -0000 Re: Microwindows API, Greg Haerr
Next by date: 31 May 2000 01:28:20 -0000 Re: porting microwin 0.88 pre4 to rtems 4.0.0, Rosimildo daSilva
Previous in thread: 31 May 2000 01:28:20 -0000 is DrawText() with DT_CENTER working?, Jun Sun
Next in thread:


Powered by ezmlm-browse 0.20.