Question and Answer Database QNA :Bold fonts in dialog boxes Category :Windows API Platform :Windows95 Product :BC++ 5.x Question: Why do my dialogs not have a bold font when built with BC++ 5.0. They did when built with BC++ 4.5 Answer: DIALOGBOX resources bound to a module marked as Windows 3.10 will use the bold style of any font you specify in the DIALOGBOX resource script. DIALOGBOX resources bound to a module marked as Windows 4.0 will use the non-bold style of any font you specify in the DIALOGBOX resource script. DIALOGBOXEX resources will always completely ignore any font weight specification in the DIALOGBOXEX resource script. FW_NORMAL will always be used instead. (Apparently, if "system" font is specified, FW_BOLD is used. But only with "system".) The fact that DIALOGBOXEX ignores any font weight specification would appear to be a bug in the Windows API. 7/2/1998 10:32:32 AM
Last Modified: 01-SEP-99