Вниз
Скачать: 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
1-65941
kalliopiy
2003-11-11 13:29
2003.11.20
Wizard


14-66069
volser
2003-10-29 11:00
2003.11.20
Часы виды


1-65971
UniQ
2003-11-10 19:23
2003.11.20
TListView


1-65896
Morfey
2003-11-06 01:22
2003.11.20
Дамп памяти


6-66031
Vint45
2003-09-24 11:13
2003.11.20
Использование сокета(клиента) в консольном приложении




   Наверх