mike1950r Posted June 16, 2021 Share Posted June 16, 2021 Hi, I've searching for a while to solve this. I found also other people searching a possibility to setup a permanent (say default) font for RichEdit Control. In fact a default font is set for RichEdit Control, but it is limited to some StockObject Fonts, which are not satisfying. You can see this fonts under:https://www.autoitscript.com/autoit3/docs/libfunctions/_WinAPI_GetStockObject.htm The line where the font is defined in the _GUICtrlRichEdit_Create function is: _SendMessage($hRichEdit, $__RICHEDITCONSTANT_WM_SETFONT, _WinAPI_GetStockObject($DEFAULT_GUI_FONT), True) _WinAPI_GetStockObject($DEFAULT_GUI_FONT) gets the handle to the preselected RichEdit default font $DEFAULT_GUI_FONT. My question is how can i get the font handle (for example used by notepad) which replaces this RichEdit default font. Sounds easy, but so far I did not come further... Thanks for assistance. Cheers mike Link to comment Share on other sites More sharing options...
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!Register a new account
Already have an account? Sign in here.Sign In Now