CODComponentLB Class
class CODComponentLB: public CListBox
Component list box, showing component names, types, and a small graphic depicting the component.Defined in: OdComponentLB.h
Class Members
Constructor
virtual ~CODComponentLB()
Destructor
void AddComponent(CODComponent* pComp)
Add a component to the list box.
int GetSelComponents(CODComponentSet* pCompSet, BOOL bDeleteItems=FALSE)
Get the selected components.
virtual void DrawItem(LPDRAWITEMSTRUCT lpDrawItemStruct)
Draw a listbox item.
LONG m_cyChar
Height of a character in the current listbox font.
virtual void GetIcon(const CODComponent* pComp, CBitmap*& pbmpIcon, CBitmap*& pbmpMask)
Get an icon given a component.
CBitmap m_bmpSymbol
Symbol component bitmap.
CBitmap m_bmpSymbolMask
Symbol component sprite mask bitmap.
CBitmap m_bmpLink
Link component bitmap.
CBitmap m_bmpLinkMask
Link component sprite mask bitmap.
CBitmap m_bmpRect
Rectangle component bitmap.
CBitmap m_bmpRectMask
Rectangle component sprite mask bitmap.
CBitmap m_bmpEllipse
Ellipse component bitmap.
CBitmap m_bmpEllipseMask
Ellipse component sprite mask bitmap.
CBitmap m_bmpImage
Image component bitmap.
CBitmap m_bmpImageMask
Image component sprite mask bitmap.
CBitmap m_bmpText
Text component bitmap.
CBitmap m_bmpTextMask
Text component sprite mask bitmap.
CBitmap m_bmpPolygon
Polygon component bitmap.
CBitmap m_bmpPolygonMask
Polygon component sprite mask bitmap.
CBitmap m_bmpLine
Line component bitmap.
CBitmap m_bmpLineMask
Line component sprite mask bitmap.
CBitmap m_bmpCurve
Curve component bitmap.
CBitmap m_bmpCurveMask
Curve component sprite mask bitmap.
CBitmap m_bmpClosedCurve
Closed curve component bitmap.
CBitmap m_bmpClosedCurveMask
Closed curve component sprite mask bitmap.
CBitmap m_bmpPort
Port component bitmap.
CBitmap m_bmpPortMask
Port component sprite mask bitmap.
static void _DrawMaskedBitmap(CDC* pDC, CBitmap* pbmp, CBitmap* pbmpMask, int x, int y, int cx, int cy)
Draws an item bitmap given the bitmap and a sprite mask.
static void _InitMaskFromBitmap(CBitmap* pbmp, CBitmap* pbmpMask)
Generates a sprite mask given a bitmap.