Files
gjm 164968b62e chore
把非utf8-bom编码的cpp/h文件改为 utf8 bom 编码, msvc识别utf8编码时,如果不是bom格式的,会使用当前cp_oem来解码.
2026-10-04 00:04:20 +08:00

102 lines
2.8 KiB
C++

#if !defined(__CPropLIST_H__)
#define __CPropLIST_H__
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// CPropList.h : header file
//
// Copyright (C) 1998-2001 Scott Ramsay
// sramsay@gonavi.com
// http://www.gonavi.com
//
// This material is provided "as is", with absolutely no warranty expressed
// or implied. Any use is at your own risk.
//
// Permission to use or copy this software for any purpose is hereby granted
// without fee, provided the above notices are retained on all copies.
// Permission to modify the code and to distribute modified code is granted,
// provided the above notices are retained, and a notice that the code was
// modified is included with the above copyright notice.
//
// If you use this code, drop me an email. I'd like to know if you find the code
// useful.
class CPropCtrl;
class THVAC_UIAPI CPropList : public CWnd
{
public:
CPropList();
virtual ~CPropList();
BOOL Create(DWORD dwStyle, const RECT& rect, CWnd* pParentWnd, UINT nID);
public:
void SetPropOwner(CPropCtrl* pProp);
public:
CButton* m_pBt;
// CEdit* m_pEdit; // 编辑时覆盖到组合框上面,实现不限制宽度的输入字符
CSpinButtonCtrl* m_pSpinCtrl;
protected:
// CPropCtrl class that this class belongs
CPropCtrl* m_pProp;
// bitmap back buffer for flicker free drawing
CBitmap m_BackBuffer;
// current diminsions of the back buffer
CSize m_BackBufferSize;
// splitter pevious position
LONG m_nPrevCol;
// TRUE if we are dragging the splitter
BOOL m_bColDrag;
// FALSE ,hide the VScrolBar forever,when,TRUE: Auto Show
BOOL m_bVScrolBar;
public:
void UpdateResize();
void ShowButton(BOOL bShow = TRUE);
void ShowSpinCtrl(BOOL bShow = TRUE);
void ShowVScrolBar(BOOL bShow = TRUE);
protected:
void RecreateBackBuffer(int cx, int cy);
void CheckVisibleFocus();
//{{AFX_VIRTUAL(CPropList)
//}}AFX_VIRTUAL
protected:
//{{AFX_MSG(CPropList)
afx_msg void OnSize(UINT nType, int cx, int cy);
afx_msg void OnPaint();
afx_msg BOOL OnSetCursor(CWnd* pWnd, UINT nHitTest, UINT message);
afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
afx_msg void OnLButtonDblClk(UINT nFlags, CPoint point);
afx_msg void OnMouseMove(UINT nFlags, CPoint point);
afx_msg BOOL OnMouseWheel(UINT nFlags, short zDelta, CPoint pt);
afx_msg void OnKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags);
afx_msg UINT OnGetDlgCode();
afx_msg void OnButtonClick();
afx_msg void OnOnDeltaposSpinCtrl(NMHDR* pNMHDR, LRESULT* pResult);
afx_msg void OnHScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar);
//}}AFX_MSG
public:
afx_msg void OnVScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar);
DECLARE_MESSAGE_MAP()
};
//{{AFX_INSERT_LOCATION}}
#endif // !defined(__CPropLIST_H__)