From: Ralph T. <ra...@gm...> - 2005-03-25 07:07:36
|
Hi all, I've been reading through the Win32 ui-core code. I have two questions: 1. Why is the font name hard-coded? Shouldn't DEFAULT_GUI_FONT be used? 2. How does i18n work? It looks like text is always in the current codepage (i.e.: not UTF-X). Also, I've been playing with the UXTHEME bits, and am working to remove the fudges. I'm planning on doing this in such a way that when UXTHEME is available (i.e.: on Windows XP and 2003) it will be used to look up metrics, and when it's not available the values will be calculated and fudged with constants. The UXTHEME font bits can also tell you about baselines inside widgets (I think -- I haven't tested it yet). I'm quite sure that the widget metrics can change on the fly. If you open Control Panel -> Accessibility -> Display Options, and enable high-contrast mode then the sizes of various standard widgets change. Windows does this by sending a WM_THEMECHANGED message to all windows (and stock widgets know what to do, owner drawn need to capture the message). I'll keep you updated on my UXTHEME research :). Thanks, Ralph |