Sidebar

Using Directory Opus
Configuration
Programming
Reference Section
reference:plugins:plugin_sdk:utility_functions:dopuschoosefont

DOpusChooseFont(
     HWND:hWnd,
     LPDOPUSCHOOSEFONT:lpChoose
)
→ BOOL

Arguments

hWnd

[in] The parent window handle for the dialog.

lpChoose

[in] Pointer to a DOPUSCHOOSEFONT structure.

Return value

Returns TRUE if the user selected a font, or FALSE if the user cancelled the dialog.

Description

The DOpusChooseFont function is used to display the Opus font selection dialog.

The DOPUSCHOOSEFONT structure has the following fields:

  • UINT cbSize
    Set this to the size of the structure before calling this function.
  • LPLOGFONT lpFont
    This must point to a LOGFONT structure that on input describes the currently selected font. If the user selects a new font and clicks Ok this structure will be updated with the new font settings.
  • DWORD dwFlags
    Flags to control the font selection dialog. Currently the only defined flag is:
DCHOOSEFONTF_FIXEDONLYDisplay fixed-width fonts only
  • LPCTSTR lpszTitle
    Dialog box title, or NULL for a default title.