Help Center

CDialog.Constructorconstructor

Creates instances of the `CDialog` class.

WindowsconstructorCDialog.incdocumented

Syntax

CONSTRUCTOR (BYREF fontName AS WSTRING = "Segoe UI", BYVAL ptSize AS LONG = 9, BYVAL fontStyle AS BYTE = 0, BYVAL charset AS BYTE = DEFAULT_CHARSET)

Parameters

NameDescription
fontNameOptional. The font name. Default value: "Segoe UI"
ptSizeOptional. The font point size. Default value: 9 pt.
fontStyleOptional. The font style. 0 = Normal. 2 = Italic. Default value: 0
charsetOptional. The font character set. Default value: DEFAULT_CHARSET

Description

Creates instances of the CDialog class.

Example

DIM pDialog AS CDialog DIM pDialog AS CDialog = CDialog("Segoe UI", 9) DIM pDialog AS CDialog = CDialog("Times New Roman", 10, 2, DEFAULT_CHARSET)

Reference

  • Include file CDialog.inc
  • Defined in AfxNova/CDialog.inc:376
  • Documented in Windows/Windows GUI/CDialog Class.md
  • Topic: CDialog Class