MKI_DIALOG_TEMPLATE (Basic Classes) New in Version 6.50

www.CAD6.com

C++ Syntax

class MKI_DIALOG_TEMPLATE

{

  public:

 

  BYTE* m_pData;

 

  MKI_DIALOG_TEMPLATE( void );

 

  MKI_DIALOG_TEMPLATE(

 HINSTANCE f_hInstance,

 LPCSTR f_pszTemplateName );

 

  ~MKI_DIALOG_TEMPLATE();

 

  LPDLGTEMPLATE

  Init(

 HINSTANCE f_hInstance,

 LPCSTR f_pszTemplateName );

 

  void

  Exit( void );

 

  operator LPDLGTEMPLATE();

 

  operator LPVOID();

 

  operator BYTE*();

 

  bool

  operator ==( const LPVOID f_pValue );

 

  bool

  operator !=( const LPVOID f_pValue );

 

 

This class creates a modified copy of a standard dialog box template that uses the custom font size and type chosen by the user. This copied template can then by passed to standard dialog handling functions (e.g. for property sheets or common dialogs).

 

For simple dialog box creation, use MKI_DialogBoxParam instead.

 

Element Description

Data

[BYTE*] Address of the copied template (or nullptr if not successful).

 

Comment

Any dialog template passed to this function should be designed using an 8 pt standard font ("MS Sans Serif" or "MS Shell Dlg"), which will subsequently be replaced by the user-defined font size and type. The template should use the DIALOGEX style and must have the DS_SETFONT flag set.

 

CAD6interface 2025.0 - Copyright 2025 Malz++Kassner® GmbH