?? familytreedlg.h
字號:
// FamilytreeDlg.h : header file
//
#if !defined(AFX_PEDIGREEDLG_H__F5511729_5C3D_476B_8FB9_1BB1420ED2F6__INCLUDED_)
#define AFX_PEDIGREEDLG_H__F5511729_5C3D_476B_8FB9_1BB1420ED2F6__INCLUDED_
#include "OperationFamilytree.h" // Added by ClassView
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
/////////////////////////////////////////////////////////////////////////////
// CFamilytreeDlg dialog
class CFamilytreeDlg : public CDialog
{
// Construction
public:
void SaveTip(); //保存提示
void InitListCtrl(); //初始化列表控件
void RefreshTree(); //刷新樹,(即刷新顯示)
void RefreshList(); //刷新列表
void DisplayFamilytree(Person& pNode); //顯示樹
void DisplayInListCtrl(Person pNode); //把pNode結點的信息在列表控件中顯示出來
void Display(CString temp);
void FindInTree(HTREEITEM& hRootItem,HTREEITEM& hItem,char* name);//在樹hRootItem中查找name所在結點,如找到,把其結點句柄存入hItem中,找不到,hItem為0
//注意,使用該函數時,確保hItem初值為0
void BirthdayTip(); //每次打開一新家譜文件時的生日提示
void DisplayGenerationInfo(Person& pNode,bool& flag,int count,int generation);//顯示所有第generation代人的信息
void AddToTree(HTREEITEM hParentItem,Person addnode); //把addnode加入到樹的hParentItem結點中去
CFamilytreeDlg(CWnd* pParent = NULL); // standard constructor
// Dialog Data
//{{AFX_DATA(CFamilytreeDlg)
enum { IDD = IDD_PEDIGREE_DIALOG };
CListCtrl m_peList;
CTreeCtrl m_peTree;
//}}AFX_DATA
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CFamilytreeDlg)
public:
virtual BOOL DestroyWindow();
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
HICON m_hIcon;
// Generated message map functions
//{{AFX_MSG(CFamilytreeDlg)
virtual BOOL OnInitDialog();
afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
afx_msg void OnPaint();
afx_msg HCURSOR OnQueryDragIcon();
afx_msg void OnHelpFamilytree();
afx_msg void OnFileExit();
afx_msg void OnFileOpen();
afx_msg void OnFileSave();
afx_msg void OnFamilytreeAdd();
afx_msg void OnFamilytreeDelete();
afx_msg void OnFamilytreeModify();
afx_msg void OnSelchangedTreeFamilytree(NMHDR* pNMHDR, LRESULT* pResult);
afx_msg void OnFamilytreeRelations();
afx_msg void OnFamilytreePersonalInfo();
afx_msg void OnFamilytreeIgenerationInfo();
afx_msg void OnAdd();
afx_msg void OnDelete();
afx_msg void OnModify();
afx_msg void OnFamilytreeSort();
afx_msg void OnFileSaveas();
afx_msg void OnFileNew();
afx_msg void OnBirthday();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
private:
char savepath[MAX_CHARNUM]; //家譜第一次被保存時的路徑
bool IsFamilytreeModified; //家譜是否被修改標記
COperationFamilytree operFamilytree; //對家譜操作的一個類實例,所有的家譜操作均由它調用成員函數來完成
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_PEDIGREEDLG_H__F5511729_5C3D_476B_8FB9_1BB1420ED2F6__INCLUDED_)
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -