| Methods Index |
CWindowSubclass: None
CAttachmentWindow is a helper class for CAttachment. It provides the functionality needed for an attachment to be in a pop-up or torn- off state. CAttachmentWindow is implemented as a child window. DoCommands and DoMenuCommand are rerouted to the parent window.
CAttachment and CAttachmentFrame for usage instead.
|
|
|
| friend class |
CAttachment;
|
CAttachmentWindow(
CWindow *theEnclosingWindow,
CAttachment *theAttachment,
BOOLEAN hasTitleBar);
theEnclosingWindow.
CAttachmentWindow(
CAttachment *theAttachment,
BOOLEAN hasTitleBar);
~CAttachmentWindow();
CWindow* GetCommandWindow(void);
void ShowTitle(void); void HideTitle(void); BOOLEAN HasTitle(void);
void DoCommand(long theCommand, void* theData=NULL);
DoCommand messages to the parent window.
void DoMenuCommand(
MENU_TAG theMenuItem,
BOOLEAN isShiftKey,
BOOLEAN isControlKey);
DoMenuCommand messages to the parent window.
CMenuBar* GetMenuBar(void);
BOOLEAN Close(void);
CAttachment:: IsDeletedUponClose returns TRUE.
void Size(const CRect &theNewSize);
void SizeWindow(int theWidth, int theHeight);
void Draw(const CRect& theClippingRegion);
void DoActivateWindow(void); void DoDeactivateWindow(void);
CWindow::DoActivateWindow to change the titlebar color to reflect the activation state.
void DoMouseDouble(
CPoint theLocation,
short theButton = 0,
BOOLEAN isShiftKey = FALSE,
BOOLEAN isControlKey = FALSE); void DoMouseDown(
CPoint theLocation,
short theButton = 0,
BOOLEAN isShiftKey = FALSE,
BOOLEAN isControlKey = FALSE); void DoMouseUp(
CPoint theLocation,
short theButton = 0,
BOOLEAN isShiftKey = FALSE,
BOOLEAN isControlKey = FALSE); void DoMouseMove(
CPoint theLocation,
short theButton = 0,
BOOLEAN isShiftKey = FALSE,
BOOLEAN isControlKey = FALSE);
virtual void DoKey(const CKey&);
void Initialize(void);
CRect GetClientRect(void);
virtual void DrawCloseBox(void);
virtual void DrawTitleBar(
const CRect &theClipRect);
static CRect GetBorderSize(
const CRect &theClientRect,
BOOLEAN hasTitleBar,
CUnits* theUnits);
theClientRect. The border size includes the client area, the size of the titlebar, and the width and height of the window's border decorations.
void CalculateSize(CRect &theNewSize);
CRect GetDesiredSize(void);
CAttachment to allow status bar to stretch width to frame.