Главная страница
Top.Mail.Ru    Яндекс.Метрика
Текущий архив: 2003.05.26;
Скачать: 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 вся ветка

Текущий архив: 2003.05.26;
Скачать: CL | DM;

Наверх




Память: 0.47 MB
Время: 0.023 c
1-83561
Till
2003-05-13 14:37
2003.05.26
Export in Excel


3-83322
Stas
2003-05-07 09:22
2003.05.26
SQL и IP


4-83802
pet
2003-03-15 19:30
2003.05.26
Hide in Tray


3-83363
prof
2003-05-06 10:02
2003.05.26
Ошибка в запросе


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