Click or drag to resize

ShellWindow Class

X#
Create a shell window, which provides MDI support for your applications.
Inheritance Hierarchy
Object
  VObject
    EventContext
      Window
        AppWindow
          ShellWindow
            OLEShellWindow

Namespace:  VO
Assembly:  VOGUIClasses (in VOGUIClasses.dll) Version: 2.24 GA
Syntax
 CLASS ShellWindow INHERIT AppWindow
Request Example View Source

The ShellWindow type exposes the following members.

Constructors
  NameDescription
Public methodShellWindow
Construct a shell window.
Top
Properties
  NameDescription
Public propertyChildToolBarLocation
Specifies the position of a child window's toolbar.
Public propertyMenu (Overrides Menu.)
Public propertyStatusBar (Overrides StatusBar.)
Public propertyToolBar
The toolbar in use by the window.
(Overrides ToolBar.)
Top
Methods
  NameDescription
Public methodArrange
Tile, iconize, or cascade all the child windows that are currently open in this shell window.
Public methodCloseAllChildren
Send a close message to all open MDI child windows.
Public methodDefault
Call the default windows procedure for a window and set the EventReturnValue for the object.
(Overrides Default(Usual).)
Public methodDestroy
Provide a method to free memory resources allocated for a ShellWindow object and its derived objects.
(Overrides Destroy.)
Public methodDispatch
Provide the dispatcher for events within the system when the window has focus; routing various events to their appropriate event handlers.
(Overrides Dispatch(Usual).)
Public methodEnableOleStatusMessages
Control the status message display of an in-place active OLE object.
Public methodGetActiveChild
Return the window object for the currently active MDI child window.
Public methodHandle
Return the handle for a shell window.
Public methodHelpRequest
Provide a method that is invoked when the user requests help from the application using one of the available context-sensitive help mechanisms.
(Overrides HelpRequest(Usual).)
Public methodOnOleStatusMessage
Provide a handler routine called with an OLE object's status message.
Public methodResize
Provide a method that is invoked when the window changes size.
(Overrides Resize(Usual).)
Public methodToolBarHeightChanged
Provide a method that is invoked when the height of the window's toolbar is changed.
(Overrides ToolBarHeightChanged(Usual).)
Top
Remarks
A shell window is similar to a top application window except that it acts as an MDI client window and all children of this window act as MDI child windows. The style of a child window is determined by the type of its owner. By default, a child application window whose owner is a shell window automatically functions as an MDI child window. If you do not desire this behavior, you can inhibit it using the ChildAppWindow:Init(). When a child window is activated, its menu is automatically placed on the parent window. When there are no open child windows, the parent's menu is used. MenuCommand events are sent to any currently active child window. If there is no active child window, the default event handler sends events to the parent. For an in-depth discussion on event propagation, refer to the Programmer's Guide. With MDI applications, there is typically one pull-down menu which contains the captions of currently open MDI child windows. The name of the currently active MDI window is checked on the menu; also, when the user selects one of the names on this menu, the system activates the corresponding MDI window. Use the Menu:SetAutoUpdate() method to specify which pull-down menu to use.
See Also

Reference