18#define DIPSW_CHANGED_T 0x100
90 m_offColor = offColor;
112 if ( ::IsWindow(_super::GetSafeHwnd()) )
127 _super::PreSubclassWindow();
140 virtual LRESULT
WindowProc(UINT message, WPARAM wParam, LPARAM lParam)
145 case WM_LBUTTONDBLCLK:
148 int z = m_CheckPoint(po);
164 return _super::WindowProc(message, wParam, lParam);
170 int m_CheckPoint(CPoint po)
173 if ( sz.cy <= po.y || sz.cx <= po.x )
178 RGBQUAD q = pRgb[po.x];
179 switch ( RGB(q.rgbRed, q.rgbGreen, q.rgbBlue) )
200 void m_ResetBitmap(
void)
204 COLORREF on = m_onColor;
205 COLORREF of = m_offColor;
214 _super::SetDrawingBitmap(bi,
true,
true);
RGBQUAD * GetRgbDataPtr(INT_PTR y=-1)
[取得] RGBデータアドレス取得.
int ChangePixelColor(COLORREF targetColor, COLORREF drawColor)
[処理] カラー変更.
const SIZE & GetSize(void) const
[取得] イメージサイズ取得.
bool Set(int cx, int cy, COLORREF color=CLR_INVALID)
[設定] イメージ設定.
bool ToHaveRgbData(void)
[設定] RGBデータ準備.
LRESULT SendCommandMessage(CWnd *pCtrl, UINT cmd)
[処理] WM_COMMAND送信.