Public Member Functions | |
CPaintContext (const CGrid &grid, const CHeader *header, const CRect &clipRect, CDC &dc, const CDropPosition &dropPosition, const CRect &mouseSelection, ContextType focusedContext, int focusedRow, CImageList *imageList, bool stretchImage, CBitmap *backgroundImage, const CRect &backgroundImageRc) | |
Constructor. | |
CPaintContext (const CPaintContext &paintContext) | |
Copy constructor. | |
const CGrid & | GetGrid () const |
Gets a reference to the grid. | |
const CHeader * | GetHeader () const |
Gets a header. | |
const CRect & | GetClipRect () const |
Gets the clipped rectangle, extracted from CDC. | |
CDC & | GetDC () const |
Gets device context. | |
const CDropPosition & | GetDropPosition () const |
Gets a drop position. | |
const CRect & | GetMouseSelection () const |
Gets a mouse selection. | |
ContextType | GetFocusedContext () const |
Gets CGrid context which holds a focus. | |
int | GetFocusedRow () const |
Gets a focused row in focused context. | |
CImageList * | GetImageList () const |
Gets a default image list to draw icons in cells of CGrid. | |
bool | GetStretchImage () const |
Indicates whether icons in cells should be stretched. | |
CBitmap * | GetBackgroundImage () const |
Gets a background image. | |
const CRect & | GetBackgroundImageRc () const |
Gets bounds of a background image. |
CPaintContext | ( | const CGrid & | grid, | |
const CHeader * | header, | |||
const CRect & | clipRect, | |||
CDC & | dc, | |||
const CDropPosition & | dropPosition, | |||
const CRect & | mouseSelection, | |||
ContextType | focusedContext, | |||
int | focusedRow, | |||
CImageList * | imageList, | |||
bool | stretchImage, | |||
CBitmap * | backgroundImage, | |||
const CRect & | backgroundImageRc | |||
) |
Constructor.
[in] | grid | A reference to CGrid |
[in] | header | Current header |
[in] | clipRect | Clipped rectangle. |
[in] | dc | Device context |
[in] | dropPosition | In case of drag & drop operation indicates where a clipboard content should be dropped. |
[in] | mouseSelection | Rectangle, selected by the mouse with a pressed left button. |
[in] | focusedContext | Focused context in CGrid |
[in] | focusedRow | Focused row in the focused context. |
[in] | imageList | Image list which contains icons to paint them in cells |
[in] | stretchImage | Indicates whether icons should be stretched to a height of cells. |
[in] | backgroundImage | Background image |
[in] | backgroundImageRc | Bounds of a background image. |
CPaintContext | ( | const CPaintContext & | paintContext | ) |
Copy constructor.
[in] | paintContext | to be copied |
const CGrid & GetGrid | ( | ) | const [inline] |
const CHeader * GetHeader | ( | ) | const [inline] |
Gets a header.
const CRect & GetClipRect | ( | ) | const [inline] |
Gets the clipped rectangle, extracted from CDC.
CDC & GetDC | ( | ) | const [inline] |
Gets device context.
const CDropPosition & GetDropPosition | ( | ) | const [inline] |
Gets a drop position.
const CRect & GetMouseSelection | ( | ) | const [inline] |
Gets a mouse selection.
ContextType GetFocusedContext | ( | ) | const [inline] |
int GetFocusedRow | ( | ) | const [inline] |
Gets a focused row in focused context.
CImageList * GetImageList | ( | ) | const [inline] |
Gets a default image list to draw icons in cells of CGrid.
bool GetStretchImage | ( | ) | const [inline] |
Indicates whether icons in cells should be stretched.
CBitmap * GetBackgroundImage | ( | ) | const [inline] |
Gets a background image.
const CRect & GetBackgroundImageRc | ( | ) | const [inline] |
Gets bounds of a background image.
Copyright Dapfor 2007-2009 | Generated on Wed Jul 7 03:24:43 2010 for MFCGrid by 1.5.5 |