📄 favdialog.h
字号:
#if !defined(AFX_FAVDIALOG_H__6191B616_4B74_48A1_B2BF_82AF3C6D8C07__INCLUDED_)
#define AFX_FAVDIALOG_H__6191B616_4B74_48A1_B2BF_82AF3C6D8C07__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// FavDialog.h : header file
//
/////////////////////////////////////////////////////////////////////////////
// CFavDialog dialog
#include "BtnST.h"
#include "PageFavSet.h"
typedef enum
{
DRIVE = 0x0001,
PATH = 0x0002,
FNAME = 0x0004,
EXT = 0x0008,
} SPLIT;
class CFavDialog : public CDialog
{
// Construction
public:
CFavDialog(CWnd* pParent = NULL); // standard constructor
CButtonST m_btnProperty;
CButtonST m_btnAddGroup;
CButtonST m_btnAddMember;
CButtonST m_btnDelGroup;
CButtonST m_btnDelMember;
CButtonST m_btnIcon;
CButtonST m_btnList;
CButtonST m_btnBrowse;
CImageList m_ImageList;
int m_nItem;
int m_nUpdateMoveItem;
CPageFavSet *m_dataRecset;
CDatabase* m_pDB;
// CStringList m_szGroupName;
// CImageList *m_pImageList;
TCHAR m_szPathName[400];
void OpenDatabase();
void CloseDatabase();
void OpenInitDatabase(CString szDatabase);
int openDatabase(CDatabase **ppDatabase, CString fileName,
BOOL bReportNoOpen /* = TRUE */);
void closeDatabase(CDatabase **ppDatabase);
// void GetCurDir(TCHAR *szBuffer,TCHAR *szTempBuf);
BOOL InitODBCEnvironment(char *szPathName);
BOOL CloseODBCEnvironment(char *szPathName);
void RefreshData();
void AddMemberForList(CString szTemp);
void RunApp(LPCTSTR lpszURL);
CString SplitFileName(LPCTSTR lpszPath, int nSplit);
void SaveMemberToFile();
void UpdateMemberToFile();
// Dialog Data
//{{AFX_DATA(CFavDialog)
enum { IDD = IDD_DIALOG_FAV };
CListCtrl m_list_member;
CListBox m_list_group;
//}}AFX_DATA
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CFavDialog)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
// Generated message map functions
//{{AFX_MSG(CFavDialog)
afx_msg void OnButtonAddgroup();
virtual BOOL OnInitDialog();
afx_msg void OnButtonDelgroup();
afx_msg void OnButtonAddmember();
afx_msg void OnButtonIcon();
afx_msg void OnButtonList();
afx_msg void OnDestroy();
afx_msg void OnSelchangeListGroup();
afx_msg void OnButtonBrowse();
afx_msg void OnDblclkListMember(NMHDR* pNMHDR, LRESULT* pResult);
afx_msg void OnButtonDelmember();
afx_msg void OnButtonProperty();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_FAVDIALOG_H__6191B616_4B74_48A1_B2BF_82AF3C6D8C07__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -