nanogui: is DrawText() with DT_CENTER working?
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