Вниз
Скачать: 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 вся ветка

Скачать: CL | DM;



Память: 0.45 MB
Время: 0.015 c
3-65737
IGORYOK
2003-10-30 19:17
2003.11.20
Как удобней хранить и в чём


3-65699
Gawk
2003-10-30 10:12
2003.11.20
Вопрос по FreeReport


3-65782
inspirion
2003-10-30 21:37
2003.11.20
Мастера требуется Ваш совет!


14-66067
Думкин
2003-10-30 04:56
2003.11.20
С днем рождения! 30 октября.


1-66003
Hatawa
2003-11-09 08:53
2003.11.20
Копирование файлов




   Наверх