PFM.h
资源名称:DXGuide.zip [点击查看]
上传用户:wymy58
上传日期:2007-01-07
资源大小:2086k
文件大小:3k
源码类别:
DirextX编程
开发平台:
Visual C++
- // PFM.h : main header file for the PFM application
- //
- #if !defined(AFX_PFM_H__F66466D9_C4B7_11D2_BF7C_0080C8E05391__INCLUDED_)
- #define AFX_PFM_H__F66466D9_C4B7_11D2_BF7C_0080C8E05391__INCLUDED_
- #if _MSC_VER > 1000
- #pragma once
- #endif // _MSC_VER > 1000
- #ifndef __AFXWIN_H__
- #error include 'stdafx.h' before including this file for PCH
- #endif
- #include "resource.h" // main symbols
- #define gApp ((CPFMApp*)AfxGetApp())
- #define gMainWnd ((CMainFrame*)AfxGetMainWnd())
- #define gLeftPan ((CMainFrame*)AfxGetMainWnd())->GetLeftPan()
- #define gRightPan ((CMainFrame*)AfxGetMainWnd())->GetRightPan()
- #define gOptions ((CPFMApp*)AfxGetApp())->m_options
- #define gCurPan ((CPFMApp*)AfxGetApp())->m_options.m_nCurrentPan
- #define gLeftPath ((CPFMApp*)AfxGetApp())->m_options.m_strStartPathLeft
- #define gRightPath ((CPFMApp*)AfxGetApp())->m_options.m_strStartPathRight
- #define gImageList ((CMainFrame*)AfxGetMainWnd())->GetImageList()
- int Compare(const void* p1, const void* p2);
- class COptions
- {
- public:
- COptions();
- ~COptions();
- VOID GetDefaultSetting();
- BOOL LoadOptions(LPCTSTR lpszPath = NULL);
- BOOL SaveOptions(LPCTSTR lpszPath = NULL);
- public:
- // [Desktop] section
- int m_nCurrentPan; // 0 means left, and 1 means right
- // [Configuration] section
- // [left] section
- CString m_strStartPathLeft; // The start up path of left panel
- int m_nShowLeft; // Determine whether show left
- // file list or not, for later use
- int m_nSortColLeft; // Sort column
- int m_nSortOrderLeft; // Sort Order, ascend or descend
- // [right] section
- CString m_strStartPathRight;
- int m_nShowRight; // For later use
- int m_nSortColRight;
- int m_nSortOrderRight;
- // [Colors] section
- int m_nUseBackColorSelected;
- COLORREF m_crBackColorSelected;
- COLORREF m_crForeColorSelected;
- int m_nUseBackColorFocused;
- COLORREF m_crBackColorFocused;
- COLORREF m_crForeColorFocused;
- COLORREF m_crForeColorNormal;
- };
- /////////////////////////////////////////////////////////////////////////////
- // CPFMApp:
- // See PFM.cpp for the implementation of this class
- //
- class CPFMApp : public CWinApp
- {
- public:
- CPFMApp();
- public:
- COptions m_options;
- // Overrides
- // ClassWizard generated virtual function overrides
- //{{AFX_VIRTUAL(CPFMApp)
- public:
- virtual BOOL InitInstance();
- //}}AFX_VIRTUAL
- // Implementation
- public:
- //{{AFX_MSG(CPFMApp)
- afx_msg void OnAppAbout();
- afx_msg void OnTab();
- afx_msg void OnReturn();
- afx_msg void OnChgdrvleft();
- afx_msg void OnChgdrvright();
- afx_msg void OnCopyfiles();
- afx_msg void OnDelfiles();
- afx_msg void OnMovefiles();
- afx_msg void OnMkdir();
- afx_msg void OnPackfiles();
- afx_msg void OnSelfiles();
- afx_msg void OnSelreverse();
- afx_msg void OnDeselfiles();
- //}}AFX_MSG
- DECLARE_MESSAGE_MAP()
- };
- /////////////////////////////////////////////////////////////////////////////
- //{{AFX_INSERT_LOCATION}}
- // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
- #endif // !defined(AFX_PFM_H__F66466D9_C4B7_11D2_BF7C_0080C8E05391__INCLUDED_)