Вниз
Скачать: CL | DM;

В Rich edit вращением колесика мыши при нажатой левой кнопке можн   Найти похожие ветки 

← →
bobo ©   (2003-03-25 11:11) [0]

В Rich edit вращением колесика мыши при нажатой левой кнопке можно виртуально изменять размер шрифта в окне. Кто знает, как это делать программно ?


← →
savva ©   (2003-03-25 11:54) [1]


RichEdit1.Perform(EM_SETZOOM,1,2); // 1/2
RichEdit1.Perform(EM_SETZOOM,2,1); // 2/1

выдержка из MSDN

EM_SETZOOM
The EM_SETZOOM message sets the zoom ratio anywhere between 1/64 and 64.

To send this message, call the SendMessage function with the following parameters.

SendMessage(
(HWND) hWnd, // handle to destination window
EM_SETZOOM, // message to send
(WPARAM) wParam, // numerator
(LPARAM) lParam // denominator
);
Parameters
wParam - Numerator of the zoom ratio.
lParam - Denominator of the zoom ratio.

These parameters can have the following values.
Value Meaning Both 0 Turns off zooming by using the EM_SETZOOM message (zooming may still occur using ITextHost::TxGetExtent).
1/64 < (wParam / lParam) < 64 Zooms display by the zoom ratio numerator/denominator



← →
savva ©   (2003-03-25 11:55) [2]

забыл
EM_SETZOOM = WM_USER + 225;



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

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



Память: 0.45 MB
Время: 0.01 c
14-83669
ikivio
2003-05-05 19:59
2003.05.26
Проблема с поиском файлов по тексту в WinXP


14-83718
Dremin-s
2003-05-06 13:58
2003.05.26
Где в delphi 7 компоненты serversocket и clientsocket ?


4-83792
Programmer1
2003-03-26 17:29
2003.05.26
Вызов функции PlaySound


6-83619
Vitas2
2003-03-24 15:45
2003.05.26
WebBrowser


4-83830
magister
2003-03-25 17:44
2003.05.26
Как рисовать поверх рабочего стола? (типа экранное меню)




   Наверх