📄 listctrlstylesdlg.h
字号:
#if !defined(AFX_LISTCTRLSTYLESDLG_H__D1102D05_14B4_4047_AB56_3FC12A8768B1__INCLUDED_)
#define AFX_LISTCTRLSTYLESDLG_H__D1102D05_14B4_4047_AB56_3FC12A8768B1__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// ListCtrlStylesDlg.h : header file
//
// Written by matt weagle (matt_weagle@hotmail.com)
// Copyright (c) 2000.
//
//
// This code may be used in compiled form in any way you desire. This
// file may be redistributed unmodified by any means PROVIDING it is
// not sold for profit without the authors written consent, and
// providing that this notice and the authors name is included. If
// the source code in this file is used in any commercial application
// then a simple email would be nice.
//
// This file is provided "as is" with no expressed or implied warranty.
// The author accepts no liability if it causes any damage whatsoever.
// Consider yourself lucky if it works, unlucky if it doesn't.
//
// Thanks to Chris Maunder (chris@codeproject.com) for the
// foregoing disclaimer.
//
// Please use and enjoy. Please let me know of any bugs/mods/improvements
// that you have found/implemented and I will fix/incorporate them into this
// file.
//
/////////////////////////////////////////////////////////////////////////////
// CListCtrlStylesDlg dialog
class CListCtrlStylesDlg : public CDialog
{
// Construction
public:
CListCtrlStylesDlg(CListCtrl *pListCtrl, CTreeCtrl *pTreeCtrl,CWnd* pParent = NULL); // custom constructor
const DWORD& GetStyles() {return m_dwStyles;}
const DWORD& GetTreeStyles() {return m_dwTreeStyles;}
// Dialog Data
//{{AFX_DATA(CListCtrlStylesDlg)
enum { IDD = IDD_STYLES };
CListCtrl m_cTreeStyles;
CListCtrl m_cListStyles;
//}}AFX_DATA
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CListCtrlStylesDlg)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
void AddStyleItem(LPCTSTR lpszItem, BOOL bState, DWORD dwData);
void AddTreeStyleItem(LPCTSTR lpszItem, BOOL bState, DWORD dwData);
CListCtrl *m_pListCtrl;
CTreeCtrl *m_pTreeCtrl;
DWORD m_dwStyles,m_dwTreeStyles;
// Generated message map functions
//{{AFX_MSG(CListCtrlStylesDlg)
virtual BOOL OnInitDialog();
virtual void OnOK();
//}}AFX_MSG
afx_msg void OnInfoTip( NMHDR * pNMHDR, LRESULT * pResult );
afx_msg void OnTreeInfoTip( NMHDR * pNMHDR, LRESULT * pResult );
DECLARE_MESSAGE_MAP()
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_LISTCTRLSTYLESDLG_H__D1102D05_14B4_4047_AB56_3FC12A8768B1__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -