Skip to content

CWnd

CWnd

CWnd is a base class for all Standard Library controls.

Description

CWnd class is the implementation of the base control class.

Declaration

class CWnd : public CObject

Title

#include <Controls\Wnd.mqh>

Inheritance hierarchy

CObject

CWnd

Direct descendants

: CDragWnd, CWndContainer, CWndObj

Class Methods by Groups

Create and destroy
CreateCreates control
DestroyDestroys control
Chart event handlers
OnEventEvent handler of all chart events
OnMouseEventEvent handler for the CHARTEVENT_MOUSE_MOVE event
Name
NameGets control name
Access to container
ControlsTotalGets the number of controls in the container
ControlGets the control by index
ControlFindGets the control by ID
Geometry
RectGets the control coordinates
LeftGets/sets the X coordinate of the upper-left corner
TopGets/sets the Y coordinate of the upper-left corner
RightGets/sets the X coordinate of the lower-right corner
BottomGets/sets the Y coordinate of the lower-right corner
WidthGets/sets the control width
HeightGets/sets the control height
MoveControl absolute displacement
ShiftControl relative displacement
ResizeChanges control size
ContainsChecks if the point/control is inside the control area
Align
AlignmentSets alignment properties of the control
AlignPerforms control alignment in the specified chart area
Identification
IdGets/sets the control ID
State
IsEnabledChecks the control ability to respond to user’s actions
EnableEnables the control ability to respond to user’s actions
DisableDisables the control ability to respond to user’s actions
IsVisibleChecks the visibility flag
VisibleSets the visibility flag
ShowShows the control
HideHides the control
IsActiveChecks the control activity
ActivateActivates the control
DeactivateDeactivates the control
State flags
StateFlagsGets/sets the control state flags
StateFlagsSetSets the control state flags
StateFlagsResetResets the control state flags
Properties flags
PropFlagsGets/sets the control properties flags
PropFlagsSetSets the control properties flags
PropFlagsResetResets the control properties flags
Mouse operations
MouseXGets/saves the mouse X coordinate
MouseYGets/saves the mouse Y coordinate
MouseFlagsGets/saves the mouse buttons state
MouseFocusKillKills mouse focus
Internal event handlers
OnCreate“Create” event handler
OnDestroy“Destroy” event handler
OnMove“Move” event handler
OnResize“Resize” event handler
OnEnable“Enable” event handler
OnDisable“Disable” event handler
OnShow“Show” event handler
OnHide“Hide” event handler
OnActivate“Activate” event handler
OnDeactivate“Deactivate” event handler
OnClick“Click” event handler
OnChange“Change” event handler
Mouse event handlers
OnMouseDown“MouseDown” event handler
OnMouseUp“MouseUp” event handler
Drag event handlers
OnDragStart“DragStart” event handler
OnDragProcess“DragProcess” event handler
OnDragEnd“DragEnd” event handler
Drag object
DragObjectCreateCreates drag object
DragObjectDestroyDestroys drag object

Methods inherited from class CObject

: Prev, Prev, Next, Next, Save, Load, Type, Compare

Last updated on