Public Member Functions |
| | CardWindow () |
| | ~CardWindow () |
| BOOL | Create (HWND hwndParent, DWORD dwExStyle, DWORD dwStyle, int x, int y, int width, int height) |
| BOOL | Destroy () |
| | operator HWND () |
| CardButton * | CreateButton (int id, TCHAR *szText, UINT uStyle, bool fVisible, int x, int y, int width, int height) |
| CardRegion * | CreateRegion (int id, bool fVisible, int x, int y, int xoffset, int yoffset) |
| CardButton * | CardButtonFromId (int id) |
| CardRegion * | CardRegionFromId (int id) |
| bool | DeleteButton (CardButton *pButton) |
| bool | DeleteRegion (CardRegion *pRegion) |
| bool | DeleteAll () |
| void | SetBackColor (COLORREF cr) |
| COLORREF | GetBackColor () |
| void | SetBackCardIdx (UINT uBackIdx) |
| UINT | GetBackCardIdx () |
| void | SetBackImage (HBITMAP hBitmap) |
| void | EmptyStacks (void) |
| void | Redraw (void) |
| void | Update (void) |
| bool | DistributeStacks (int nIdFrom, int nNumStacks, UINT xJustify, int xSpacing, int nStartX) |
| void | SetResizeProc (pResizeWndProc proc) |
| int | GetWidth () |
| int | GetHeight () |
| bool | RegisterDropZone (int id, RECT *rect, pDropZoneProc proc) |
| bool | DeleteDropZone (int id) |
Private Member Functions |
| int | GetNumDropZones () |
| DropZone * | GetDropZoneFromRect (RECT *rect) |
| LRESULT CALLBACK | WndProc (HWND hwnd, UINT iMsg, WPARAM wParam, LPARAM lParam) |
| void | Paint (HDC hdc) |
| void | PaintCardRgn (HDC hdc, int dx, int dy, int width, int height, int sx, int sy) |
| HPALETTE | CreateCardPalette () |
| CardButton * | CardButtonFromPoint (int x, int y) |
| CardRegion * | CardRegionFromPoint (int x, int y) |
| CardRegion * | GetBestStack (int x, int y, int w, int h) |
Static Private Member Functions |
| static LRESULT CALLBACK | CardWndProc (HWND hwnd, UINT iMsg, WPARAM wParam, LPARAM lParam) |
Private Attributes |
| HWND | m_hWnd |
| int | nWidth |
| int | nHeight |
| UINT | nBackCardIdx |
| HBITMAP | hbmBackImage |
| HDC | hdcBackImage |
| CardButton * | Buttons [MAXBUTTONS] |
| int | nNumButtons |
| CardRegion * | Regions [MAXCARDSTACKS] |
| int | nNumCardRegions |
| DropZone * | dropzone [MAXDROPZONES] |
| int | nNumDropZones |
| COLORREF | crBackgnd |
| pResizeWndProc | ResizeWndCallback |
Friends |
| class | CardRegion |
| class | CardButton |
| void | RegisterCardWindow () |
Definition at line 16 of file cardwindow.h.