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

📄 applicationinstallerdlg.h

📁 以前做NOKIA手机与PC通信时所参考的源代码,里面包括两个程序,一个是手机文件夹浏览源码,另一个手机SIS安装程序.
💻 H
字号:
/*
Filename    : ApplicationInstallerDlg.h
Part of     : Application Installer
Description : Declaration of application installers dialog class
Version     : 3.2

This example is only to be used with PC Connectivity API version 3.2.
Compability ("as is") with future versions is not quaranteed.

Copyright (c) 2007 Nokia Corporation.
 
This material, including but not limited to documentation and any related 
computer programs, is protected by intellectual property rights of Nokia 
Corporation and/or its licensors.
All rights are reserved. Reproducing, modifying, translating, or 
distributing any or all of this material requires the prior written consent 
of Nokia Corporation. Nokia Corporation retains the right to make changes 
to this material at any time without notice. A copyright license is hereby 
granted to download and print a copy of this material for personal use only.
No other license to any other intellectual property rights is granted. The 
material is provided "as is" without warranty of any kind, either express or 
implied, including without limitation, any warranty of non-infringement, 
merchantability and fitness for a particular purpose. In no event shall 
Nokia Corporation be liable for any direct, indirect, special, incidental, 
or consequential loss or damages, including but not limited to, lost profits 
or revenue,loss of use, cost of substitute program, or loss of data or 
equipment arising out of the use or inability to use the material, even if 
Nokia Corporation has been advised of the likelihood of such damages occurring.
*/ 

#ifndef __NOKIA_PCCAPI_APPLICATION_INSTALLER_EXAMPLE__INSTALLERDLG__
#define __NOKIA_PCCAPI_APPLICATION_INSTALLER_EXAMPLE__INSTALLERDLG__

#if _MSC_VER > 1000
#pragma once
#endif 

#include "afxwin.h"

/////////////////////////////////////////////////////////////////////////////
// Defines
/////////////////////////////////////////////////////////////////////////////

#define INSTALL_TYPE_JAVA		0
#define INSTALL_TYPE_SIS		1
#define INSTALL_TYPE_THEMES		2
#define INSTALL_TYPE_NGAGE		3
#define MAX_CONNECTIONS			100
#define MIN_BUFFER              128


/////////////////////////////////////////////////////////////////////////////
// CApplicationInstallerDlg dialog
/////////////////////////////////////////////////////////////////////////////

class CApplicationInstallerDlg : public CDialog
{

public:

	CApplicationInstallerDlg(CWnd* pParent = NULL);
	virtual ~CApplicationInstallerDlg();

	void		RefreshPhoneList();
	void		SetProgress(DWORD dwState);

	//{{AFX_DATA(CApplicationInstallerDlg)
	enum { IDD = IDD_INSTALLER_DIALOG };
	CProgressCtrl	m_progressBar;
	CStatic			m_sWait;
	CButton			m_btnInstall;
	CButton			m_btnCancel;
	CButton			m_btnJAD;
	CButton			m_btnJAR;
	CButton			m_btnSIS;
	CButton			m_btnNGAGE;
	CEdit			m_editSIS;
	CEdit			m_editJAR;
	CEdit			m_editJAD;
	CEdit			m_editNTH;
	CEdit			m_editNGAGE;
	CComboBox		m_comboTypes;
	CComboBox		m_comboPhones;
	//}}AFX_DATA

	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CApplicationInstallerDlg)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);	// DDX/DDV support
	//}}AFX_VIRTUAL

protected:

	HICON m_hIcon;

	//{{AFX_MSG(CApplicationInstallerDlg)
	virtual BOOL OnInitDialog();
	afx_msg void OnCbnSelchangeComboPhone();
	afx_msg void OnTypeSelected();
	afx_msg void OnButtonSis();
	afx_msg void OnButtonJar();
	afx_msg void OnBnClickedButtonNth();
	afx_msg void OnBnClickedButtonNGage();
	afx_msg void OnButtonJad();
	afx_msg void OnButtonCancel();
	afx_msg void OnInstall();
	//}}AFX_MSG

	DECLARE_MESSAGE_MAP()

private:

	DWORD		m_dwConnectionCount;
	CString		m_strSerialNumberTable[MAX_CONNECTIONS];
	DWORD		m_dwMediaTable[MAX_CONNECTIONS];
	DWORD		m_dwType[MAX_CONNECTIONS];
	DWORD		m_dwFileSystemSupport[MAX_CONNECTIONS];
	DMHANDLE	m_hDMHandle;
public:
	CButton m_btnNTH;
};

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif 

⌨️ 快捷键说明

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