anywhereDoc.h
资源名称:anywhere.zip [点击查看]
上传用户:zhenhuadz
上传日期:2007-01-07
资源大小:1511k
文件大小:3k
源码类别:
远程控制编程
开发平台:
Visual C++
- // anywhereDoc.h : interface of the CAnywhereDoc class
- //
- /////////////////////////////////////////////////////////////////////////////
- #if !defined(AFX_ANYWHEREDOC_H__42C9BC6C_EF6C_11D3_9E45_00A0C936C4B3__INCLUDED_)
- #define AFX_ANYWHEREDOC_H__42C9BC6C_EF6C_11D3_9E45_00A0C936C4B3__INCLUDED_
- #if _MSC_VER > 1000
- #pragma once
- #endif // _MSC_VER > 1000
- //
- #include "dibapi.h"
- //class CMsgman;
- //class CFileSource;
- //class CMainFrame;
- class CAnywhereDoc : public CDocument
- {
- protected: // create from serialization only
- CAnywhereDoc();
- DECLARE_DYNCREATE(CAnywhereDoc)
- // Attributes
- public:
- typedef struct SYS_INFO
- {
- /*
- CString m_stMaxAddress;
- CString m_stOemId;
- CString m_stMinAdress;
- CString m_stPageSize;
- CString m_stMask;
- CString m_stProRevision;
- CString m_stArchitecture;
- CString m_stMouse;
- CString m_stButtonsSwapped;
- CString m_stMouseSpeed;
- CString m_stMemoryUsed;
- CString m_stVirtualMemory;
- */
- //-----need data------
- CString m_stPhysicalMemory;//物理内存
- CString m_stPhysicalMemAvailable;//目前可用内存
- CString m_stVendorInfo;//处理器标示,cyrixinstalled
- CString m_stIdentify; //处理器型号,6x86mx
- CString m_stComputerName;//计算机名字
- CString m_stUserName;//当前用户
- CString m_stNumProcessors;//处理器个数
- CString m_stProcessorLevel;//处理器技术,mmx
- CString m_stProcessorType;//处理器类型,Intel Pentium
- CString m_stCPUSpeed; //cpu频率
- CString m_sDriverInfo; //驱动器信息(不包括a,b盘)
- }
- SYS_INFO,*LPSYS_INFO;
- HDIB GetHDIB() const
- { return m_hDIB; }
- CPalette* GetDocPalette() const
- { return m_palDIB; }
- CSize GetDocSize() const
- { return m_sizeDoc; }
- // Operations
- public:
- CFont m_FontAril;//aril字体
- CFont m_Fontst;//宋体
- CString m_sys[9];
- //CObList filelist;//文件目录列表
- //CStringList filelist;
- //CStringList drvlist;//驱动器列表
- //CFileSource filesource;
- // Overrides
- // ClassWizard generated virtual function overrides
- //{{AFX_VIRTUAL(CAnywhereDoc)
- public:
- virtual BOOL OnNewDocument();
- virtual void Serialize(CArchive& ar);
- virtual BOOL OnCmdMsg(UINT nID, int nCode, void* pExtra, AFX_CMDHANDLERINFO* pHandlerInfo);
- //}}AFX_VIRTUAL
- // Implementation
- public:
- void InitDIBData();
- BOOL ReadBmp(LPCTSTR lpszPathName);
- //CString m_sComputer;
- //SYS_INFO m_sys_ino;
- // CMsgman *m_pmsgman;
- //CMainFrame *m_pFrame;
- virtual ~CAnywhereDoc();
- #ifdef _DEBUG
- virtual void AssertValid() const;
- virtual void Dump(CDumpContext& dc) const;
- #endif
- protected:
- HDIB m_hDIB;
- CPalette* m_palDIB;
- CSize m_sizeDoc;
- // Generated message map functions
- protected:
- //{{AFX_MSG(CAnywhereDoc)
- afx_msg void OnFrameprop();
- //}}AFX_MSG
- DECLARE_MESSAGE_MAP()
- };
- /////////////////////////////////////////////////////////////////////////////
- //{{AFX_INSERT_LOCATION}}
- // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
- #endif // !defined(AFX_ANYWHEREDOC_H__42C9BC6C_EF6C_11D3_9E45_00A0C936C4B3__INCLUDED_)