Window Class

Definition

Line 104 of System.Windows/Window.cm

Inheritance

Constructors & Destructor

public Window(WindowCreateParams& createParams)
public Window(const String<char>& caption)
public Window(const String<char>& windowClassName, WindowClassStyle classStyle, WindowStyle style, ExtendedWindowStyle exStyle, const Color& backgroundColor, const String<char>& text, const Point& location, const Size& size, Dock dock, Anchors anchors, WindowState state)
public Window(const String<char>& windowClassName, WindowClassStyle classStyle, WindowStyle style, ExtendedWindowStyle exStyle, const Color& backgroundColor, const String<char>& text, const Point& location, const Size& size, Dock dock, Anchors anchors, const String<char>& fontFamilyName_, float fontSize_, FontStyle fontStyle_, WindowState state_)
public Window(const String<char>& windowClassName, WindowStyle style, ExtendedWindowStyle exStyle, const String<char>& text, const Point& location, const Size& size, Dock dock, Anchors anchors, WindowState state)
public Window(const String<char>& windowClassName, WindowStyle style, ExtendedWindowStyle exStyle, const String<char>& text, const Point& location, const Size& size, Dock dock, Anchors anchors, const String<char>& fontFamilyName_, float fontSize_, FontStyle fontStyle_, WindowState state)
public Window(const String<char>& caption, const String<char>& fontFamilyName_, float fontSize_, FontStyle fontStyle_)

Member Functions

public inline nothrow Button* CancelButton() const
public void Close()
public inline nothrow Button* DefaultButton() const
public void DefaultKeyPreview(Keys key, bool shift, bool control, bool alt, bool keyDown, bool& handled)
public void FocusNext()
public void FocusPrev()
public nothrow ContextMenu* GetContextMenu() const
internal inline nothrow int GetDialogResult() const
public inline nothrow Control* GetFocusedControl() const
public inline nothrow const KeyPreviewMethod& GetKeyPreviewMethod() const
public nothrow MenuBar* GetMenuBar() const
public WindowState GetWindowState() const
public nothrow void HideContextMenu()
private void Init()
public inline nothrow bool IsMainWindow() const
protected virtual void MouseUpNotification(MouseEventArgs& args)
internal void MouseUpNotificationInternal(MouseEventArgs& args)
protected override void OnControlAdded(ControlEventArgs& args)
protected override void OnControlRemoved(ControlEventArgs& args)
protected override void OnCreated()
protected override void OnGotFocus()
protected override void OnKeyDown(KeyEventArgs& args)
protected override void OnLostFocus()
protected override void OnMouseDown(MouseEventArgs& args)
protected override void OnMouseMove(MouseEventArgs& args)
protected override void OnMouseUp(MouseEventArgs& args)
protected override void OnPaint(PaintEventArgs& args)
protected virtual void OnWindowClosed(bool& processed)
protected virtual void OnWindowClosing(bool& cancelClose)
public override void PrintWindowTree(int level)
protected override bool ProcessMessage(Message& message)
public nothrow void RemoveContextMenu()
public nothrow void ResetFocusedControl()
internal inline nothrow void ResetShowingDialog()
public inline nothrow void SetAsMainWindow()
public nothrow void SetCancelButton(Button* cancelButton_)
public nothrow void SetContextMenu(ContextMenu* contextMenu_)
public nothrow void SetDefaultButton(Button* defaultButton_)
public inline nothrow void SetDialogResult(DialogResult dialogResult_)
internal inline nothrow void SetFocusedControl(Control* focusedControl_)
public void SetIcon(const Icon& icon)
public nothrow void SetKeyPreviewMethod(const KeyPreviewMethod& keyPreviewMethod_)
internal inline nothrow void SetShowingDialog()
public void SetSmallIcon(const Icon& icon)
public void SetWindowState(WindowState newState)
public nothrow void ShowContextMenu(ContextMenu* contextMenu_, const Point& ptInScreenCoords)
public DialogResult ShowDialog(Window& parentWindow)
private inline nothrow bool ShowingDialog() const
public nothrow Event<WindowClosedEventHandler, EmptyEventArgs>& WindowClosedEvent()
public nothrow Event<WindowClosingEventHandler, bool>& WindowClosingEvent()

Enumerated Types

private enum Flags

Member Variables

private Button* cancelButton
private ContextMenu* contextMenu
private Button* defaultButton
private DialogResult dialogResult
private Flags flags
private Control* focusedControl
private String<char> fontFamilyName
private float fontSize
private FontStyle fontStyle
private KeyPreviewMethod keyPreviewMethod
private MenuBar* menuBar
private WindowState state
private Event<WindowClosedEventHandler, EmptyEventArgs> windowClosedEvent
private Event<WindowClosingEventHandler, bool> windowClosingEvent

Constructor& Destructor Details

Window Constructor

public Window(WindowCreateParams& createParams)

Definition
Line 147 of System.Windows/Window.cm


Window Constructor

public Window(const String<char>& caption)

Definition
Line 143 of System.Windows/Window.cm


Window Constructor

public Window(const String<char>& windowClassName, WindowClassStyle classStyle, WindowStyle style, ExtendedWindowStyle exStyle, const Color& backgroundColor, const String<char>& text, const Point& location, const Size& size, Dock dock, Anchors anchors, WindowState state)

Definition
Line 119 of System.Windows/Window.cm


Window Constructor

public Window(const String<char>& windowClassName, WindowClassStyle classStyle, WindowStyle style, ExtendedWindowStyle exStyle, const Color& backgroundColor, const String<char>& text, const Point& location, const Size& size, Dock dock, Anchors anchors, const String<char>& fontFamilyName_, float fontSize_, FontStyle fontStyle_, WindowState state_)

Definition
Line 110 of System.Windows/Window.cm


Window Constructor

public Window(const String<char>& windowClassName, WindowStyle style, ExtendedWindowStyle exStyle, const String<char>& text, const Point& location, const Size& size, Dock dock, Anchors anchors, WindowState state)

Definition
Line 132 of System.Windows/Window.cm


Window Constructor

public Window(const String<char>& windowClassName, WindowStyle style, ExtendedWindowStyle exStyle, const String<char>& text, const Point& location, const Size& size, Dock dock, Anchors anchors, const String<char>& fontFamilyName_, float fontSize_, FontStyle fontStyle_, WindowState state)

Definition
Line 125 of System.Windows/Window.cm


Window Constructor

public Window(const String<char>& caption, const String<char>& fontFamilyName_, float fontSize_, FontStyle fontStyle_)

Definition
Line 138 of System.Windows/Window.cm


Member Function Details

CancelButton Member Function

public inline nothrow Button* CancelButton()

Definition
Line 834 of System.Windows/Window.cm


Close Member Function

public void Close()

Definition
Line 248 of System.Windows/Window.cm


DefaultButton Member Function

public inline nothrow Button* DefaultButton()

Definition
Line 815 of System.Windows/Window.cm


DefaultKeyPreview Member Function

public void DefaultKeyPreview(Keys key, bool shift, bool control, bool alt, bool keyDown, bool& handled)

Definition
Line 306 of System.Windows/Window.cm


FocusNext Member Function

public void FocusNext()

Definition
Line 645 of System.Windows/Window.cm


FocusPrev Member Function

public void FocusPrev()

Definition
Line 716 of System.Windows/Window.cm


GetContextMenu Member Function

public nothrow ContextMenu* GetContextMenu()

Definition
Line 569 of System.Windows/Window.cm


GetDialogResult Member Function

internal inline nothrow int GetDialogResult()

Definition
Line 637 of System.Windows/Window.cm


GetFocusedControl Member Function

public inline nothrow Control* GetFocusedControl()

Definition
Line 787 of System.Windows/Window.cm


GetKeyPreviewMethod Member Function

public inline nothrow const KeyPreviewMethod& GetKeyPreviewMethod()

Definition
Line 799 of System.Windows/Window.cm


GetMenuBar Member Function

public nothrow MenuBar* GetMenuBar()

Definition
Line 565 of System.Windows/Window.cm


GetWindowState Member Function

public WindowState GetWindowState()

Definition
Line 512 of System.Windows/Window.cm


HideContextMenu Member Function

public nothrow void HideContextMenu()

Definition
Line 612 of System.Windows/Window.cm


Init Member Function

private void Init()

Definition
Line 155 of System.Windows/Window.cm


IsMainWindow Member Function

public inline nothrow bool IsMainWindow()

Definition
Line 807 of System.Windows/Window.cm


MouseUpNotification Member Function

protected virtual void MouseUpNotification(MouseEventArgs& args)

Definition
Line 846 of System.Windows/Window.cm


MouseUpNotificationInternal Member Function

internal void MouseUpNotificationInternal(MouseEventArgs& args)

Definition
Line 842 of System.Windows/Window.cm


OnControlAdded Member Function

protected override void OnControlAdded(ControlEventArgs& args)

Definition
Line 272 of System.Windows/Window.cm


OnControlRemoved Member Function

protected override void OnControlRemoved(ControlEventArgs& args)

Definition
Line 289 of System.Windows/Window.cm


OnCreated Member Function

protected override void OnCreated()

Definition
Line 180 of System.Windows/Window.cm


OnGotFocus Member Function

protected override void OnGotFocus()

Definition
Line 491 of System.Windows/Window.cm


OnKeyDown Member Function

protected override void OnKeyDown(KeyEventArgs& args)

Definition
Line 388 of System.Windows/Window.cm


OnLostFocus Member Function

protected override void OnLostFocus()

Definition
Line 502 of System.Windows/Window.cm


OnMouseDown Member Function

protected override void OnMouseDown(MouseEventArgs& args)

Definition
Line 454 of System.Windows/Window.cm


OnMouseMove Member Function

protected override void OnMouseMove(MouseEventArgs& args)

Definition
Line 446 of System.Windows/Window.cm


OnMouseUp Member Function

protected override void OnMouseUp(MouseEventArgs& args)

Definition
Line 462 of System.Windows/Window.cm


OnPaint Member Function

protected override void OnPaint(PaintEventArgs& args)

Definition
Line 470 of System.Windows/Window.cm


OnWindowClosed Member Function

protected virtual void OnWindowClosed(bool& processed)

Definition
Line 256 of System.Windows/Window.cm


OnWindowClosing Member Function

protected virtual void OnWindowClosing(bool& cancelClose)

Definition
Line 252 of System.Windows/Window.cm


PrintWindowTree Member Function

public override void PrintWindowTree(int level)

Definition
Line 193 of System.Windows/Window.cm


ProcessMessage Member Function

protected override bool ProcessMessage(Message& message)

Definition
Line 211 of System.Windows/Window.cm


RemoveContextMenu Member Function

public nothrow void RemoveContextMenu()

Definition
Line 579 of System.Windows/Window.cm


ResetFocusedControl Member Function

public nothrow void ResetFocusedControl()

Definition
Line 791 of System.Windows/Window.cm


ResetShowingDialog Member Function

internal inline nothrow void ResetShowingDialog()

Definition
Line 857 of System.Windows/Window.cm


SetAsMainWindow Member Function

public inline nothrow void SetAsMainWindow()

Definition
Line 811 of System.Windows/Window.cm


SetCancelButton Member Function

public nothrow void SetCancelButton(Button* cancelButton_)

Definition
Line 838 of System.Windows/Window.cm


SetContextMenu Member Function

public nothrow void SetContextMenu(ContextMenu* contextMenu_)

Definition
Line 573 of System.Windows/Window.cm


SetDefaultButton Member Function

public nothrow void SetDefaultButton(Button* defaultButton_)

Definition
Line 819 of System.Windows/Window.cm


SetDialogResult Member Function

public inline nothrow void SetDialogResult(DialogResult dialogResult_)

Definition
Line 641 of System.Windows/Window.cm


SetFocusedControl Member Function

internal inline nothrow void SetFocusedControl(Control* focusedControl_)

Definition
Line 795 of System.Windows/Window.cm


SetIcon Member Function

public void SetIcon(const Icon& icon)

Definition
Line 629 of System.Windows/Window.cm


SetKeyPreviewMethod Member Function

public nothrow void SetKeyPreviewMethod(const KeyPreviewMethod& keyPreviewMethod_)

Definition
Line 803 of System.Windows/Window.cm


SetShowingDialog Member Function

internal inline nothrow void SetShowingDialog()

Definition
Line 853 of System.Windows/Window.cm


SetSmallIcon Member Function

public void SetSmallIcon(const Icon& icon)

Definition
Line 633 of System.Windows/Window.cm


SetWindowState Member Function

public void SetWindowState(WindowState newState)

Definition
Line 516 of System.Windows/Window.cm


ShowContextMenu Member Function

public nothrow void ShowContextMenu(ContextMenu* contextMenu_, const Point& ptInScreenCoords)

Definition
Line 588 of System.Windows/Window.cm


ShowDialog Member Function

public DialogResult ShowDialog(Window& parentWindow)

Definition
Line 167 of System.Windows/Window.cm


ShowingDialog Member Function

private inline nothrow bool ShowingDialog()

Definition
Line 849 of System.Windows/Window.cm


WindowClosedEvent Member Function

public nothrow Event<WindowClosedEventHandler, EmptyEventArgs>& WindowClosedEvent()

Definition
Line 625 of System.Windows/Window.cm


WindowClosingEvent Member Function

public nothrow Event<WindowClosingEventHandler, bool>& WindowClosingEvent()

Definition
Line 621 of System.Windows/Window.cm