CWnd is a base class for all controls, included in the MQL5 Standard Library.
CWnd class is the implementation of the base control class.
class CWnd : public CObject |
#include <Controls\Wnd.mqh> |
Create and destroy |
|
Creates control |
|
Destroys control |
|
Chart event handlers |
|
Event handler of all chart events |
|
Event handler for the CHARTEVENT_MOUSE_MOVE event |
|
Name |
|
Gets control name |
|
Access to container |
|
Gets the number of controls in the container |
|
Gets the control by index |
|
Gets the control by ID |
|
Geometry |
|
Gets the pointer to the CRect class object |
|
Gets/Sets the X-coordinate of the upper-left corner |
|
Gets/Sets the Y-coordinate of the upper-left corner |
|
Gets/Sets the X-coordinate of the lower-right corner |
|
Gets/Sets the Y-coordinate of the lower-right corner |
|
Gets/Sets the width |
|
Gets/Sets the height |
|
Sets new coordinates of the control |
|
Performs the relative shift of the control coordinates |
|
Sets new width/height of the control |
|
Checks if the point/control is inside the control area |
|
Align |
|
Sets alignment properties of the control |
|
Performs control alignment |
|
Identification |
|
Gets/Sets the control ID |
|
State |
|
Gets a value indicating whether the control is enabled |
|
Sets a value indicating whether the control is enabled |
|
Disables the control |
|
Checks the visibility flag |
|
Sets the visibility flag |
|
Shows the control |
|
Hides the control |
|
Checks the control activity |
|
Activates the control |
|
Deactivates the control |
|
State flags |
|
Gets/Sets the control state flags |
|
Sets the control state flags |
|
Resets the control state flags |
|
Properties flags |
|
Gets/Sets the control properties flags |
|
Sets the control properties flags |
|
Resets the control properties flags |
|
Mouse operations |
|
Gets/Saves the mouse X coordinate |
|
Gets/Saves the mouse Y coordinate |
|
Gets/Saves the mouse buttons state |
|
Kills mouse focus |
|
Internal event handlers |
|
"Create" event handler |
|
"Destroy" event handler |
|
"Move" event handler |
|
"Resize" event handler |
|
"Enable" event handler |
|
"Disable" event handler |
|
"Show" event handler |
|
"Hide" event handler |
|
"Activate" event handler |
|
"Deactivate" event handler |
|
"Click" event handler |
|
"Change" event handler |
|
Mouse event handlers |
|
"MouseDown" event handler |
|
"MouseUp" event handler |
|
Drag event handlers |
|
"DragStart" event handler |
|
"DragProcess" event handler |
|
"DragEnd" event handler |
|
Drag object |
|
Creates drag object |
|
Destroys drag object |