Share via


Use DIALOGEX to Have the System Font [Application Compatibility Guide] 

 
Platform SDK: Application Compatibility Guide

Use DIALOGEX to Have the System Font

Windows 2000 uses a different system font than Windows NT 4.0 and Windows 95/98. To have your application use the system font no matter which system it is running on, use DS_SHELLFONT with the typeface MS Shell Dlg, and use the DIALOGEX resource instead of the DIALOG resource. The system maps this typeface such that your dialog box uses the Tahoma font on Windows 2000 and the MS Sans Serif font on earlier systems. DS_SHELLFONT has no effect if the typeface is not MS Shell Dlg.

Starting with Windows 2000, if you specify the Dialog Box Template Style to DS_SHELLFONT you can change the font size but you can no longer change the font face. For more information, see MS Shell Dlg.

  
  Last updated: April 2004  |  What did you think of this topic?  |  Order a Platform SDK CD
  © 2004 Microsoft Corporation. All rights reserved. Terms of use.