OnAddCustomWindowClasses - cCJSkinFramework
Event called during skin COM object creation which is used to define custom class mappings
Type: Event
Syntax
Procedure OnAddCustomWindowClasses
Description
The skin framework class requires that all non-standard windows classes be mapped to known windows classes. The non-standard classes are then skinned using the rules from the known windows classes. All of the DataFlex window classes are mapped within a private event named OnAddDFWindowClasses. In most cases, this provides all class mappings required to support skinning. If you are using custom windows classes in your application, most likely Active/X classes, you are going to need to apply this mapping yourself. This mapping should be placed inside of OnAddCustomWindowClasses.
Class mapping is defined by calling the ComAddWindowClass method, passing the custom window class name and standard window class name to be used as its template. This requires that you know the name of the custom window class. This name is not the same name as your class name. It must be determined by inspecting the window using a tool like Microsoft Spy++. Refer to the CodeJock AddWindowClass documention for more information about class mapping.
You may wish to review the code in OnAddDFWindowClasses to see how we have mapped our DataFlex classes to known windows classes. You will need to use the same technique to map custom classes.
Note that this event is called after the standard DataFlex windows classes have been mapped.
Procedure OnAddCustomWindowClasses
Forward Send OnAddCustomWindowClasses
Send ComAddWindowClass "SomeCustomEditClass" "Edit"
Send ComAddWindowClass "SomeCustomButtonClass" "Button"
Send ComAddWindowClass "SomeCustomFormClass" "Edit"
End_Procedure