cObject
---cUIObject
------DfBaseObject
---------DfBaseWindow
------------DfBaseUIWindow
---------------DfBaseControl
------------------cWinControl
---------------------cAnimation
---------------------cProgressBar
---------------------cStatusBar
---------------------cToolbar
Provides a base class to use when wanting to subclass a Windows class. You should not instantiate this class directly, but instead, create subclasses from it.
The class provides low-level mouse messages, and allows you to create message handlers for Windows events. To enable an object of this class, use the pbEnabled property and to control its visibility, use pbVisible.
To create an external-class, you must set External_Class_name, and to handle Windows messages, you must set External_Message, as in this example:
Class cMyControl is a cWinControl
Procedure Construct_Object
Forward Send Construct_Object
Set External_Class_Name "cMyControl" To "Static"
//Set External_Message WM_XXX To msg_OnWmXXX
End_Procedure
Procedure Command Integer wParam Integer lParam
// showln "Windows Command message received!"
End_Procedure
Procedure Notify Integer wParam Integer lParam
// showln "Windows Notify message received!"
End_Procedure
Procedure OnWmXXX Integer wParam Integer lParam
// received the WM_XXX Windows message
End_Procedure
End_Class
| Note: | cWinControl replaces the obsolete DFControl class. |