Вниз
Скачать: 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.012 c
1-83601
Alexno
2003-05-14 15:05
2003.05.26
потоки


3-83407
gary5555
2003-05-06 18:00
2003.05.26
Нумерация строк с помощью RecNo.


9-83311
Ev_genus
2002-12-15 22:44
2003.05.26
Проекция.


4-83818
bobo
2003-03-25 11:11
2003.05.26
В Rich edit вращением колесика мыши при нажатой левой кнопке можн


7-83771
Stdnet
2003-03-29 18:25
2003.05.26
Date TimePicker




   Наверх