20 #include "../../../idlib/precompiled.h"
29 static char THIS_FILE[] = __FILE__;
32 #define CHECK_BOX_SIZE 14
50 ON_CONTROL_REFLECT(BN_KILLFOCUS, OnBnKillfocus)
51 ON_CONTROL_REFLECT(BN_CLICKED, OnBnClicked)
59 ASSERT(m_pProp!=
NULL);
62 if (!IsWindow(m_hWnd))
64 TRACE0(
"CPropTreeItemCombo::DrawAttribute() - The window has not been created\n");
68 checkRect.left = m_rc.left;
69 checkRect.top = m_rc.top + ((m_rc.bottom - m_rc.top)/2)-
CHECK_BOX_SIZE/2;
74 pDC->DrawFrameControl(&checkRect, DFC_BUTTON, DFCS_BUTTONCHECK | DFCS_FLAT |(checkState ? DFCS_CHECKED : 0));
81 SetCheck(
checkState ? BST_CHECKED : BST_UNCHECKED);
100 SetWindowPos(
NULL,
m_rc.left,
m_rc.top,
m_rc.Width(),
m_rc.Height(), SWP_NOZORDER|SWP_NOACTIVATE);
123 SetWindowPos(
NULL,
m_rc.left,
m_rc.top,
m_rc.Width(),
m_rc.Height(), SWP_NOZORDER|SWP_SHOWWINDOW);
127 SetWindowPos(
NULL,
m_rc.left,
m_rc.top,
m_rc.Width(),
m_rc.Height(), SWP_NOZORDER|SWP_SHOWWINDOW);
136 if (IsWindow(m_hWnd))
139 DWORD dwStyle = (WS_CHILD|BS_CHECKBOX|BS_NOTIFY|BS_FLAT );
143 TRACE0(
"CPropTreeItemCombo::CreateComboBox() - failed to create combo box\n");
157 int state = GetCheck();
virtual LPARAM GetItemValue()
afx_msg void OnBnKillfocus()
virtual ~CPropTreeItemCheck()
afx_msg void OnBnClicked()
virtual void SetItemValue(LPARAM lParam)
virtual void OnActivate(int activateType, CPoint point)
void SetCheckState(BOOL state)