?? bindfiledlg.h
字號:
// BindFileDlg.h : header file
//
#if !defined(AFX_BINDFILEDLG_H__763C7F30_CE97_4F40_9D80_6A2EF0EB234A__INCLUDED_)
#define AFX_BINDFILEDLG_H__763C7F30_CE97_4F40_9D80_6A2EF0EB234A__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
/////////////////////////////////////////////////////////////////////////////
// 類名:CBindFileDlg
// 功能:進行可執行文件的綁定工作。
// 作者:徐景周(jingzhou_xu@163.net)
// 組織:未來工作室(Future Studio)
// 日期:2001.12.1
////////////////////////////////////////////////////////////////////////////
#include "SYS/TYPES.H" //加入類型定義頭文件
#include "sys/stat.h" //加入狀態顯示頭文件
#include "StaticFilespec.h" //擴展靜態框類
#include "WBButton.h" //位圖按鈕類
#include "GradientProgressCtrl.h" //漸變色進度條類
#pragma pack(1)
typedef struct ICONRESDIR {
BYTE Width;
BYTE Height;
BYTE ColorCount;
BYTE reserved;
} ICONRESDIR; //圖標結構
typedef struct tagRESDIR {
ICONRESDIR Icon;
WORD Planes;
WORD BitCount;
DWORD BytesInRes;
WORD IconCursorId;
} RESDIR;
typedef struct NEWHEADER {
WORD Reserved;
WORD ResType;
WORD ResCount;
} NEWHEADER, *PNEWHEADER;
typedef struct {
const RESDIR* pcResDir;
BYTE* pMatchIcon;
} my_enum_res_callback_data;
class CBindFileDlg : public CDialog
{
// Construction
public:
CBindFileDlg(CWnd* pParent = NULL); // standard constructor
public:
_off_t prog1_length ;
TCHAR my_name[MAX_PATH];
CString his_name;
BYTE *buf ;
CString strFirstFilePath; //保存第一個要綁定的文件名
CString strSecondFilePath; //保存第二個要綁定的文件名
CString strFinalFilePath; //保存最終合成文件名
void Create_Process(const char* temp_exe, BOOL async);//創建分解文件時的進程
void Unbind_and_Run(); //分解已合并的文件,同時運行它們
bool Bind_Files(); //將二個可執行文件綁定在一起
BYTE* find_match_icon(const RESDIR* pcResDir); //查詢匹配圖標
void list_my_icons(); //列出所有圖標
// Dialog Data
//{{AFX_DATA(CBindFileDlg)
enum { IDD = IDD_BINDFILE_DIALOG };
CGradientProgressCtrl m_Progress; //改為漸變色進度條顯示
CWBButton m_Cancel; //改為位圖按鈕顯示
CWBButton m_SecondBrowse; //改為位圖按鈕顯示
CWBButton m_FirstBrowse; //改為位圖按鈕顯示
CWBButton m_FinalBrowse; //改為位圖按鈕顯示
CWBButton m_BindFile; //改為位圖按鈕顯示
CWBButton m_About; //改為位圖按鈕顯示
CStaticFilespec m_SecondPath; //改為擴展編輯框顯示
CStaticFilespec m_FirstPath; //改為擴展編輯框顯示
CStaticFilespec m_FinalPath; //改為擴展編輯框顯示
CString m_strFirstPath; //第一個要綁定的文件
CString m_strSecondPath; //第二個要綁定的文件
CString m_strFinalPath; //最終合成的文件名
CString m_Parts;
int m_Sync;
//}}AFX_DATA
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CBindFileDlg)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
HICON m_hIcon;
// Generated message map functions
//{{AFX_MSG(CBindFileDlg)
virtual BOOL OnInitDialog();
afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
afx_msg void OnPaint();
afx_msg HCURSOR OnQueryDragIcon();
afx_msg void OnButtonAbout();
afx_msg void OnFirstBrowse();
afx_msg void OnSecondBrowse();
afx_msg void OnFinalBrowse();
afx_msg void OnButtonBindFile();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_BINDFILEDLG_H__763C7F30_CE97_4F40_9D80_6A2EF0EB234A__INCLUDED_)
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -