[Classes] [Prev] [Next] [Methods]

CAttachmentWindow

Methods Index

Heritage
Description
Usage
Protected Data Members
Friends
Public Methods
Constructor and Destructor Methods
Registration Methods
Protected Methods

CAttachmentWindow


Heritage

Superclass: CWindow

Subclass: None


Description

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.


Usage

You should not need to use this class directly. See CAttachment and CAttachmentFrame for usage instead.


Protected Data Members

CWindow* itsCommandWindow; Window used for command propagation
CAttachment* itsAttachment; Attachment nested inside window
BOOLEAN itHasTitle; Determines display of window title bar
BOOLEAN itHasMouseDown; Mouse state flag
BOOLEAN itsCloseBoxIsDown; Mouse state flag
CFont itsTitleFont; Titlebar text font
CRect itsCloseRect; Close box size
UNITS itsTitleVOffset; Titlebar title offset
COLOR itsTitleColor; Titlebar text color


Friends

friend class CAttachment;


Public Methods

Constructor and Destructor Methods

CAttachmentWindow(
CWindow *theEnclosingWindow,
CAttachment *theAttachment,
BOOLEAN hasTitleBar);
CAttachmentWindow(
CAttachment *theAttachment,
BOOLEAN hasTitleBar);
~CAttachmentWindow();

Registration Methods

CWindow* GetCommandWindow(void);
void ShowTitle(void);
void HideTitle(void);
BOOLEAN HasTitle(void);
void DoCommand(long theCommand, void* theData=NULL);
void DoMenuCommand(
MENU_TAG theMenuItem,
BOOLEAN isShiftKey,
BOOLEAN isControlKey);
CMenuBar* GetMenuBar(void);
BOOLEAN Close(void);
void Size(const CRect &theNewSize);
void SizeWindow(int theWidth, int theHeight);
void Draw(const CRect& theClippingRegion);
void DoActivateWindow(void);
void DoDeactivateWindow(void);
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&);

Protected Methods

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);
void CalculateSize(CRect &theNewSize);
CRect GetDesiredSize(void);


[Classes] [Prev] [Next] [Methods]

support@xvt.com


Visit our online help desk for tech support

Copyright © 2009, Providence Software Solutions Inc. All rights reserved.