A CWindow
is a top-level window with a title and a control button.
More...
#include <CWindow.h>
Public Member Functions | |
CWindow (const CHAR *title) | |
Constructs a new, initially invisible Frame object with the specified title. | |
virtual void | Add (CComponent *component) |
Adds the specified child Component. | |
virtual void | SetSize (INT16 width, INT16 height) |
Resizes this window. | |
Protected Member Functions | |
virtual void | CloseAction () |
Protected Attributes | |
INT16 | m_content_width |
INT16 | m_content_height |
A CWindow
is a top-level window with a title and a control button.
CWindow::CWindow | ( | const CHAR * | title | ) |
Constructs a new, initially invisible Frame object with the specified title.
title | - the title to be displayed in the window's border. A null value is treated as an empty string, "" . |
void CWindow::Add | ( | CComponent * | component | ) | [virtual] |
Adds the specified child Component.
This method is overridden to conditionally forward calls to the content area.
component |
Reimplemented from CComponent.
void CWindow::SetSize | ( | INT16 | width, | |
INT16 | height | |||
) | [virtual] |
Resizes this window.
This method is overridden to resize the content area and the header.
width | - the new width of the window | |
height | - the new height of the window |
Reimplemented from CForm.