This repository has been archived on 2024-03-20. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
ContactBook/MyHeaderCtrl.h
2024-03-20 09:28:18 -05:00

67 lines
1.7 KiB
C++

#if !defined(AFX_MYHEADERCTRL_H__51B74620_2173_11D1_AF55_000000000000__INCLUDED_)
#define AFX_MYHEADERCTRL_H__51B74620_2173_11D1_AF55_000000000000__INCLUDED_
#if _MSC_VER >= 1000
#pragma once
#endif // _MSC_VER >= 1000
// MyHeaderCtrl.h : header file
//
/////////////////////////////////////////////////////////////////////////////
// CMyHeaderCtrl window
class CMyHeaderCtrl : public CHeaderCtrl
{
// Construction
public:
CMyHeaderCtrl();
CMyHeaderCtrl(CWnd* pWnd, void (CWnd::*fpDragCol)(int, int));
// Attributes
public:
// Operations
public:
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CMyHeaderCtrl)
//}}AFX_VIRTUAL
// Implementation
public:
virtual ~CMyHeaderCtrl();
void SetCallback(CWnd* pWnd, void (CWnd::*fpDragCol)(int, int));
int SetSortImage(int nCol, BOOL bAsc);
// Generated message map functions
protected:
BOOL m_bCheckForDrag;
BOOL m_bDragging;
int *m_pWidth;
int m_nDragCol;
int m_nDropPos;
CRect marker_rect;
CRect marker_rect2;
void (CWnd::*m_fpDragCol)(int, int);
CWnd *m_pOwnerWnd;
int m_nSortCol;
BOOL m_bSortAsc;
//{{AFX_MSG(CMyHeaderCtrl)
afx_msg void OnMouseMove(UINT nFlags, CPoint point);
afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
afx_msg void DrawItem (LPDRAWITEMSTRUCT);
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Developer Studio will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_MYHEADERCTRL_H__51B74620_2173_11D1_AF55_000000000000__INCLUDED_)