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

📄 ebackup2002.cpp

📁 手机数据备份软件
💻 CPP
字号:
// eBackup2002.cpp : Defines the entry point for the application.
//

#include "stdafx.h"

#include "eBackup2002Dialog.h"
#include "ProgressDlg.h"

// Global variables
CAppModule _Module;

const TCHAR g_szApplicationTitle[] = _T("eBackup2002");
const TCHAR g_szUniqueString[] = _T("8EMYlkOnL0SbtcsvYBnD1A==");


// WinMain
int WINAPI WinMain(HINSTANCE hInstance,
                   HINSTANCE hPrevInstance,
                   LPWSTR     lpCmdLine,
                   int        CmdShow)
{
	// Check if one instance is already running.
	const HANDLE hMutex = ::CreateMutex(NULL, FALSE, g_szUniqueString);

	if(NULL != hMutex) {
		if(ERROR_ALREADY_EXISTS == ::GetLastError())
		{
			// This is not the first instance of the application.
			// Activate the firsty instance and exit.
			const HWND hWndExistingInstance = ::FindWindow(_T("Dialog"), g_szApplicationTitle);
			VERIFY((NULL == hWndExistingInstance) || ::SetForegroundWindow(hWndExistingInstance));
			return 0;
		}

		// Init common controls
		// TODO: remove unused controls
		INITCOMMONCONTROLSEX comctrex;
		comctrex.dwSize = sizeof(comctrex);
		comctrex.dwICC = ICC_UPDOWN_CLASS
			| ICC_DATE_CLASSES		// date and time-picker control 
			| ICC_PROGRESS_CLASS	// progress bar control 
			| ICC_LISTVIEW_CLASSES  // list view and header control
			| ICC_TREEVIEW_CLASSES;	// tree view control
		::InitCommonControlsEx(&comctrex);

		// Init module.
		int nResult = 0;
		_Module.Init(NULL, hInstance);

		{
			// Create main window.
		    CeBackup2002Dialog dialog;
		//	CProgressDlg dialog;
			nResult = dialog.DoModal();
		}

		// Terminate.
		_Module.Term();

		return nResult;
	}

	return 1;
}

⌨️ 快捷键说明

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