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

CToolPaletteAttachment

Methods Index

Heritage
Description
Usage
Public Methods
Constructor, Operator, and Destructor Methods
Utility Methods

CToolPaletteAttachment


Heritage

Superclass: CToolBarAttachment

Subclasses: None


Description

CToolPaletteAttachment provides a specialized attachment behavior for CToolPalettes by automatically creating a CToolBar object that represents the palette and uses CAttachment-derived behavior to manage the visual object.


Usage

This class is used as a helper by CToolBarAttachment. Since its normal usage is automated inside CToolBarAttachment, you should not have to use its interface. Nevertheless, the class is provided here in case you find the need to derive a new variation which overrides default CAttachment behavior. Note that CToolPalette provides a virtual factory method, ConstructAttachment(), which can be overridden to create a new type of CToolPaletteAttachment.


Public Methods

Constructor, Operator, and Destructor Methods

CToolPaletteAttachment(
CSubview* theEnclosure,
CToolPalette* theToolPalette,
long theCommand);
CToolPaletteAttachment(
CSubview* theEnclosure,
CToolPalette* theToolPalette,
const CRect& theBestSize,
long theCommand);
CToolPaletteAttachment(const CToolPaletteAttachment &theAttachment);
CToolPaletteAttachment& operator=(const CToolPaletteAttachment &theAttachment);
~CToolPaletteAttachment(void);

Utility Methods

virtual void Detach(BOOLEAN hasTitleBar = TRUE);
virtual void Popup(CWindow *theWindow, BOOLEAN hasTitleBar = FALSE);
virtual BOOLEAN DoUp(
CPoint& theLocation,
short& theButton,
BOOLEAN& isShiftKey,
BOOLEAN& isControlKey);


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

support@xvt.com


Visit our online help desk for tech support

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