CDC::DrawState
Visual Studio 2012
Call this member function to display an image and apply a visual effect to indicate a state, such as a disabled or default state.
Note
|
|---|
|
For all nFlag states except DSS_NORMAL, the image is converted to monochrome before the visual effect is applied. |
BOOL DrawState( CPoint pt, CSize size, HBITMAP hBitmap, UINT nFlags, HBRUSH hBrush = NULL ); BOOL DrawState( CPoint pt, CSize size, CBitmap* pBitmap, UINT nFlags, CBrush* pBrush = NULL ); BOOL DrawState( CPoint pt, CSize size, HICON hIcon, UINT nFlags, HBRUSH hBrush = NULL ); BOOL DrawState( CPoint pt, CSize size, HICON hIcon, UINT nFlags, CBrush* pBrush = NULL ); BOOL DrawState( CPoint pt, CSize size, LPCTSTR lpszText, UINT nFlags, BOOL bPrefixText = TRUE, int nTextLen = 0, HBRUSH hBrush = NULL ); BOOL DrawState( CPoint pt, CSize size, LPCTSTR lpszText, UINT nFlags, BOOL bPrefixText = TRUE, int nTextLen = 0, CBrush* pBrush = NULL ); BOOL DrawState( CPoint pt, CSize size, DRAWSTATEPROC lpDrawProc, LPARAM lData, UINT nFlags, HBRUSH hBrush = NULL ); BOOL DrawState( CPoint pt, CSize size, DRAWSTATEPROC lpDrawProc, LPARAM lData, UINT nFlags, CBrush* pBrush = NULL );
Note