when fonts change.....
3 отговора
92 прегледа
when fonts change.....
Искам да прихвана когато се сменя font-a един контрол и хващам WM_FONTCHANGE - но то нещо не се праща, въпреки че шрифта се променя. Кое съобщение трябва да прихвана, или нещо съм в грешка?
-------------
Special killer double trouble triple extra nicotine monster!
-------------
Special killer double trouble triple extra nicotine monster!
Re: when fonts change.....
An application sends the WM_FONTCHANGE message to all top-level windows in the system after changing the pool of font resources.
WM_FONTCHANGE
wParam = 0; // not used, must be zero
lParam = 0; // not used, must be zero
Parameters
This message has no parameters.
Remarks
An application that adds or removes fonts from the system (for example, by using the AddFontResource or RemoveFontResource function) should send this message to all top-level windows.
To send the WM_FONTCHANGE message to all top-level windows, an application can call the SendMessage function with the hwnd parameter set to HWND_BROADCAST.
така като го гледам май е за друга цел тоя месс, може би WM_SETFONT е това което търсиш?
--------------------------------------
Започва Път от моят праг...
WM_FONTCHANGE
wParam = 0; // not used, must be zero
lParam = 0; // not used, must be zero
Parameters
This message has no parameters.
Remarks
An application that adds or removes fonts from the system (for example, by using the AddFontResource or RemoveFontResource function) should send this message to all top-level windows.
To send the WM_FONTCHANGE message to all top-level windows, an application can call the SendMessage function with the hwnd parameter set to HWND_BROADCAST.
така като го гледам май е за друга цел тоя месс, може би WM_SETFONT е това което търсиш?
--------------------------------------
Започва Път от моят праг...
Редактирано от Hateras на
Re: when fonts change.....
Тсу - WM_SETFONT се праща само веднъж при създаване на контрола. (аз поне не го хванах втори път).
-------------
Special killer double trouble triple extra nicotine monster!
-------------
Special killer double trouble triple extra nicotine monster!
Re: when fonts change.....
Zabelji che saobshtenieto WM_FONTCHANGE se prashta na TOP LEVEL windowsite ne na samite kontroli... ot tam moje da ti idwa problema - izobshto puni nekaf message spy i gledaj go stawa ....
------------------------------
I got a COMPILER, and I'm not afraid to use it!
------------------------------
I got a COMPILER, and I'm not afraid to use it!