nanogui: is DrawText() with DT_CENTER working?


Previous by date: 25 May 2000 22:56:09 -0000 Re: demos/mwin/mine trouble under Minix, Jakov af Wallby
Next by date: 25 May 2000 22:56:09 -0000 listbox & progressBar control ported from minigui to microwin, 曾昭明
Previous in thread:
Next in thread: 25 May 2000 22:56:09 -0000 Re: is DrawText() with DT_CENTER working?, Greg Haerr

Subject: is DrawText() with DT_CENTER working?
From: Jun Sun ####@####.####
Date: 25 May 2000 22:56:09 -0000
Message-Id: <392DAF80.5DE1E056@mvista.com>

I have the following code which does not seem to put the text in the
enter as I want it.  The text is put on the left side. Does anybody know
why?  I am using v0.88pre6.

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

Jun

Previous by date: 25 May 2000 22:56:09 -0000 Re: demos/mwin/mine trouble under Minix, Jakov af Wallby
Next by date: 25 May 2000 22:56:09 -0000 listbox & progressBar control ported from minigui to microwin, 曾昭明
Previous in thread:
Next in thread: 25 May 2000 22:56:09 -0000 Re: is DrawText() with DT_CENTER working?, Greg Haerr


Powered by ezmlm-browse 0.20.