Главная страница
Top.Mail.Ru    Яндекс.Метрика
Текущий архив: 2003.11.20;
Скачать: CL | DM;

Вниз

Вывод текста (TGraphicControl)   Найти похожие ветки 

 
Eagle Owl ©   (2003-11-10 18:53) [0]

Вечер добрый, мастера!
Подскажите, пожалуйста, как на канве потомка TGraphicControl"а выводить текст, который при изменении размера этого объекта всегда находился бы по центру?
Спасибо.


 
mrcat ©   (2003-11-10 19:09) [1]

DrawText
The DrawText function draws formatted text in the specified rectangle. It formats the text according to the specified method (expanding tabs, justifying characters, breaking lines, and so forth).

To specify additional formatting options, use the DrawTextEx function.

int DrawText(
HDC hDC, // handle to DC
LPCTSTR lpString, // text to draw
int nCount, // text length
LPRECT lpRect, // formatting dimensions
UINT uFormat // text-drawing options
);

DT_CENTER Centers text horizontally in the rectangle.

оно самое ?


 
Eagle Owl ©   (2003-11-10 19:13) [2]

Оно...
Спасибо!



Страницы: 1 вся ветка

Текущий архив: 2003.11.20;
Скачать: CL | DM;

Наверх




Память: 0.47 MB
Время: 0.017 c
9-65684
scout
2003-04-09 20:03
2003.11.20
proxyObject в GLScene.


7-66147
FoX
2003-09-12 14:14
2003.11.20
Автозапуск в безопасном режим


1-65956
Igorek
2003-11-08 10:45
2003.11.20
Проблема с Event в DesignTime


8-66015
WInAPi Lamer
2003-06-01 14:55
2003.11.20
Написать под углом...


14-66057
sowell
2003-10-30 10:33
2003.11.20
Как получить сертификат от BrainBench?