From: boca4711 <boc...@us...> - 2005-10-16 12:16:30
|
Update of /cvsroot/anyedit/AnyEditv2 In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv21482 Modified Files: FlatComboBox.cpp FlatComboBox.h Log Message: - Subclassed from CMyComboBox instead fo CComboBox Index: FlatComboBox.cpp =================================================================== RCS file: /cvsroot/anyedit/AnyEditv2/FlatComboBox.cpp,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** FlatComboBox.cpp 26 Jul 2004 21:36:00 -0000 1.4 --- FlatComboBox.cpp 16 Oct 2005 12:16:21 -0000 1.5 *************** *** 91,95 **** } ! BEGIN_MESSAGE_MAP(CFlatComboBox, CComboBox) //{{AFX_MSG_MAP(CFlatComboBox) ON_WM_MOUSEMOVE() --- 91,95 ---- } ! BEGIN_MESSAGE_MAP(CFlatComboBox, CMyComboBox) //{{AFX_MSG_MAP(CFlatComboBox) ON_WM_MOUSEMOVE() *************** *** 109,113 **** { SetTimer(FLAT_TIMER, 10, NULL); ! CComboBox::OnMouseMove(nFlags, point); } --- 109,113 ---- { SetTimer(FLAT_TIMER, 10, NULL); ! CMyComboBox::OnMouseMove(nFlags, point); } *************** *** 115,119 **** { m_bLBtnDown = TRUE; ! CComboBox::OnLButtonDown(nFlags, point); } --- 115,119 ---- { m_bLBtnDown = TRUE; ! CMyComboBox::OnLButtonDown(nFlags, point); } *************** *** 122,126 **** m_bLBtnDown = FALSE; Invalidate(); ! CComboBox::OnLButtonUp(nFlags, point); } --- 122,126 ---- m_bLBtnDown = FALSE; Invalidate(); ! CMyComboBox::OnLButtonUp(nFlags, point); } *************** *** 129,133 **** if (nIDEvent != FLAT_TIMER) { ! CComboBox::OnTimer(nIDEvent); return; } --- 129,133 ---- if (nIDEvent != FLAT_TIMER) { ! CMyComboBox::OnTimer(nIDEvent); return; } Index: FlatComboBox.h =================================================================== RCS file: /cvsroot/anyedit/AnyEditv2/FlatComboBox.h,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** FlatComboBox.h 26 Jul 2004 21:36:00 -0000 1.4 --- FlatComboBox.h 16 Oct 2005 12:16:21 -0000 1.5 *************** *** 31,34 **** --- 31,36 ---- #endif // _MSC_VER > 1000 + #include "MyComboBox.h" + #define FC_DRAWNORMAL 0x00000001 #define FC_DRAWRAISED 0x00000002 *************** *** 38,42 **** // CFlatComboBox window ! class CFlatComboBox : public CComboBox { // Construction --- 40,44 ---- // CFlatComboBox window ! class CFlatComboBox : public CMyComboBox { // Construction |