#include <UiCanvas.h>
继承自UiWin。
公有成员 | |
| void | PaintWin (HDC hdcDst, RECT *prcWin, RECT *prcUpdate) |
| Draw the control on the destinate DC. | |
| void | SetFlags (DWORD dwFlags) |
| set the paint method of the canvas | |
| UiCanvas (void) | |
| ~UiCanvas (void) | |
公有属性 | |
| MemoryDC | m_dcCanvas |
| a memory DC (MemoryDC m_dcCanvas) as a canvas. the control will paint the m_dcCanvas to the window. | |
保护属性 | |
| DWORD | m_dwFlags |
| UiCanvas::UiCanvas | ( | void | ) |
| UiCanvas::~UiCanvas | ( | void | ) |
| void UiCanvas::PaintWin | ( | HDC | hdcDst, | |
| RECT * | prcWin, | |||
| RECT * | prcUpdate | |||
| ) | [virtual] |
Draw the control on the destinate DC.
Override this member function to define your own drawings of the control
| hdcDst | Destinate device contact | |
| prcWin | The Rect of the control(hdc 's left-top is the origin) | |
| prcUpdate | Rect of the hdc that need to be update(hdc 's left-top is the origin) |
重载UiWin。
| void UiCanvas::SetFlags | ( | DWORD | dwFlags | ) |
set the paint method of the canvas
| dwFlags | values: UI_CANVAS_REPEAT_NONE, UI_CANVAS_REPEAT_V, UI_CANVAS_REPEAT_H |
a memory DC (MemoryDC m_dcCanvas) as a canvas. the control will paint the m_dcCanvas to the window.
DWORD UiCanvas::m_dwFlags [protected] |