Главная страница
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.026 c
1-65928
mmm_michael
2003-11-11 15:56
2003.11.20
Помогите начинающему


1-65829
S@b@k@.
2003-11-10 04:36
2003.11.20
массив компонентов


1-65981
rel_
2003-11-10 14:45
2003.11.20
доступ к полю record а


3-65725
Murder
2003-11-03 13:25
2003.11.20
Работа с Excel


3-65800
nika_ufc
2003-10-28 19:50
2003.11.20
ADO и FieldDefs (HELP PLEASE)