Share

AdUiSubstituteShellFont

C++

void ADUI_PORT AdUiSubstituteShellFont(
    CWnd& dlg, 
    CFont& font
);

File

adui.h

Description

This function is used internally by AdUi dialogs to alter the default font displayed in the window. To be effective, this routine should be called during dialog initialization (in other words, the dialog's HWND must have been created), the font must not have already been assigned a HANDLE, and the font should persist for the duration of the dialog (usually making the font a member of the dialog will suffice). This function determines if the default font used by the dialog is actually supported by the current locale settings. If not then the routine attempts to create a font based on the alias for MS Shell Dlg, which is typically used in the common dialogs installed by the operating system. If a new font was successfully created, then it is assigned to the dialog (via a WM_SETFONT message) and returned in the font parameter.

Parameters

Parameters Description
dlg Reference to a dialog
font Reference to a font

Was this information helpful?