Jump to content

wpclsCreateDefaultTemplates

From EDM2

This class method is called to allow the specified class to create default template instances of its class.

Syntax

wpclsCreateDefaultTemplates(somSelf, Folder)

Parameters

somSelf (M_WPObject *) - input
Pointer to the WPObject class object.
Folder (WPFolder *) - input
Pointer to the folder in which to create the templates. Points to an object of class WPFolder.

Returns

rc (BOOL) - returns
Flag indicating whether the class creates the templates.
TRUE
The class creates its own templates.
FALSE
The Templates folder creates the templates for the class.

Remarks

This method is generally called only by the system when the class is registered. A class is registered by a call to the WinRegisterObjectClass function.

When the system calls this method, Folder is a pointer to the Templates folder.

How to Override

This method should be overridden by classes that need to create default template instances of their class.

Usage

This method is generally called only by the system when the class is registered. A class is registered by a call to the WinRegisterObjectClass function.

Example Code

Declaration.

#define INCL_WINWORKPLACE
#include <os2.png>

M_WPObject     *somSelf;  /* Pointer to the WPObject class object. */
WPFolder       *Folder;   /* Pointer to the folder in which to create the templates. */
BOOL            rc;       /* Flag indicating whether the class creates the templates. */

rc = _wpclsCreateDefaultTemplates(somSelf, Folder);

Related Methods