⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 app_sync728view.h

📁 SyncML 协议的同步实现的数据备份,是基于wince平台,,也可很容易移植到其它平台
💻 H
字号:
// App_Sync728View.h : interface of the CApp_Sync728View class
//
/////////////////////////////////////////////////////////////////////////////

#if !defined(AFX_APP_SYNC728VIEW_H__3624BD64_A780_4C74_BB81_CD5441B3F0ED__INCLUDED_)
#define AFX_APP_SYNC728VIEW_H__3624BD64_A780_4C74_BB81_CD5441B3F0ED__INCLUDED_

#if _MSC_VER >= 1000
#pragma once
#endif // _MSC_VER >= 1000

#include "..\common\uimessager.h"
#include "..\common\common.h"
#include "..\common\basedatamanager.h"
#include "app_sync728doc.h"
#include "imgtab.h"
#include <vector>

#define VIEW_BACKUP		0
#define VIEW_RECOVER	1
#define VIEW_858		2

using namespace std;

class CApp_Sync728View : public CFormView//, public CUIMessager
{
protected: // create from serialization only
	CApp_Sync728View();
	DECLARE_DYNCREATE(CApp_Sync728View)

public:
	//{{AFX_DATA(CApp_Sync728View)
	enum { IDD = IDD_APP_SYNC728_FORM };
	CProgressCtrl	m_ctrlProgress;
	//CTabCtrl	m_tab;
	CImgTab		*m_pTabItem;
	CListCtrl	m_listItem;
	CString	m_strFile;
	CString	m_strMsg;
	//}}AFX_DATA

	
// Attributes
public:
	CApp_Sync728Doc* GetDocument();
	void RefreshView();

// Operations
public:

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CApp_Sync728View)
	public:
	virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
	virtual void OnInitialUpdate();
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	//}}AFX_VIRTUAL
	CUIMessager *m_pMsgUI;
// Implementation
public:
	virtual void Finished();
	virtual void SendMessage(wchar_t *pszMsg);
	virtual void SendProgress(int nProgress);

private:
	BOOL GetCheckedItems(vector<Item_t> &vctItems);
	void DisplayItems();
	virtual ~CApp_Sync728View();
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif

protected:

private:
	vector<Item_t> m_vctItems;
	int m_nSelected;
	CBaseDataManager *m_pDataManager;
public:
	HWND m_hwndDlg;	

	//void OnSelchangeTabSel();
	
// Generated message map functions
protected:
	//{{AFX_MSG(CApp_Sync728View)
	afx_msg void OnButtonBackup();
	afx_msg void OnButtonRecover();
//	afx_msg void OnSelchangeTab1(NMHDR* pNMHDR, LRESULT* pResult);
	//afx_msg void OnSelchangeTab(NMHDR* pNMHDR, LRESULT* pResult);
	afx_msg void OnButtonBrowse();
	afx_msg void OnChangeEditFile();
	afx_msg void OnSelchangeTabSel(WPARAM wParam, LPARAM lParam);
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

#ifndef _DEBUG  // debug version in App_Sync728View.cpp
inline CApp_Sync728Doc* CApp_Sync728View::GetDocument()
   { return (CApp_Sync728Doc*)m_pDocument; }
#endif

class CSD728Msg : public CUIMessager
{
public:
	CSD728Msg(CApp_Sync728View *pUI = NULL);
	virtual ~CSD728Msg();
	virtual void Finished();
	virtual void SendMessage(wchar_t *pszMsg);
	virtual void SendProgress(int nProgress);

private:
	CApp_Sync728View *m_pUI;
};

/////////////////////////////////////////////////////////////////////////////

//{{AFX_INSERT_LOCATION}}
// Microsoft eMbedded Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_APP_SYNC728VIEW_H__3624BD64_A780_4C74_BB81_CD5441B3F0ED__INCLUDED_)

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -