70 HRGN rgn = ::CreateRectRgn(0, 0, sz.cx, sz.cy);
82 HRGN h = ::CreateRectRgn(0, 0, 0, 0);
83 ::CombineRgn(h, rgn, NULL, RGN_COPY);
84 ::CombineRgn(
m_hRgn, rgn, NULL, RGN_COPY);
87 _super::SetWindowPos(NULL, 0, 0, rc.Width(), rc.Height(), SWP_NOMOVE | SWP_NOZORDER);
88 _super::SetWindowRgn(h,
true);
102 if ( IS_RGBVALUE(c) )
133 switch ( _super::GetButtonState() )
145 ::SelectClipRgn(pDC->GetSafeHdc(),
m_hRgn);
147 ::SelectClipRgn(pDC->GetSafeHdc(), NULL);
155 pDC->SetBkMode(TRANSPARENT);
180 virtual LRESULT
WindowProc(UINT message, WPARAM wParam, LPARAM lParam)
182 if ( message == WM_DESTROY )
194 if ( message == WM_ERASEBKGND )
198 LRESULT r = _super::WindowProc(message, wParam, lParam);
199 if ( message == WM_SETFOCUS || message == WM_KILLFOCUS || message == WM_ACTIVATE || message == WM_MOUSELEAVE )
203 if ( message >= WM_LBUTTONDOWN && message <= WM_MOUSELAST )
218 _super::GetWindowRect(&rc);
220 _super::PreSubclassWindow();
bool IsEmpty(void) const
[確認] Empty状態確認.
bool Set(int cx, int cy, COLORREF color=CLR_INVALID)
[設定] イメージ設定.
bool AlphaBlend(HDC hdc, int x, int y, int parsent=100, int cx=0, int cy=0) const
[描画] 半透明処理付イメージ描画.
void DrawParent(CWnd *pWndControl, bool boIsRedraw=true)
[表示] 親表示.