blob: dc52a93d9c310aa41c593d587590fc39c4173861 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
#pragma once
#include "common.h"
#include "T2DlgItem.h"
class AFX_CLASS_EXPORT CToggleButtonDisabled : public T2DlgItem {
public:
CToggleButtonDisabled(T2TowerDoc* inDoc, T2ImageObj* inImageObj, CPalette* inPalette);
virtual BOOL Create(const char* windowName, DWORD style, const RECT& rect, CWnd* parentWnd, UINT nId);
virtual void SetValue(int value);
void Enable();
void Disable();
protected:
virtual BOOL OnT2DlgItemEraseBkgnd(CDC* dc);
virtual void OnT2DlgItemLButtonDown(UINT nFlags, CPoint pt);
virtual void OnT2DlgItemLButtonUp(UINT nFlags, CPoint pt);
virtual void OnT2DlgItemMouseMove(UINT nFlags, CPoint pt);
};
|