bindfiledlg.h
来自「迷你星文件捆绑器源码」· C头文件 代码 · 共 113 行
H
113 行
// 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 "Icons.h"
#include "shell/XPEdit.h"
#include "shell/XPButton.h"
#include "shell/BtnST.h"
#include "IconDlg.h"
#include "HyperLink.h"
#pragma pack(1)
class CBindFileDlg : public CDialog
{
// Construction
public:
CBindFileDlg(CWnd* pParent = NULL); // standard constructor
public:
LPICONRESOURCE lpIR; // ICON资源指针
EXEDLLICONINFO EDII;
_off_t prog1_length ;
TCHAR my_name[MAX_PATH];
CString his_name;
BYTE *buf ;
CString strFirstFilePath; //保存第一个要绑定的文件名
CString strSecondFilePath; //保存第二个要绑定的文件名
CString strFinalFilePath; //保存最终合成文件名
bool Bind_Files(); //将二个可执行文件绑定在一起
// Dialog Data
//{{AFX_DATA(CBindFileDlg)
enum { IDD = IDD_BINDFILE_DIALOG };
CHyperLink m_LinkMail;
CButtonST m_btnRight;
CButtonST m_btnLeft;
CXPButton m_IconGroup;
CStatic m_IconPic;
CXPEdit m_Edit3;
CXPEdit m_Edit4;
CXPEdit m_Edit2;
CXPEdit m_Edit1;
CXPButton m_BtnCancel;
CXPButton m_BtnIcon;
CStatic m_Title;
CXPButton m_SecondBrowse;
CXPButton m_FirstBrowse;
CXPButton m_FinalBrowse;
CXPButton m_Cancel;
CXPButton m_BindFile;
CString m_strFirstPath; //第一个要绑定的文件
CString m_strSecondPath; //第二个要绑定的文件
CString m_strFinalPath; //最终合成的文件名
CString m_Parts;
CString m_IconPath;
//}}AFX_DATA
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CBindFileDlg)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
CString szOpenFileExtName;
HICON hIconLeft;
void ChangeIcon (CString IconFile);
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 OnFirstBrowse();
afx_msg void OnSecondBrowse();
afx_msg void OnFinalBrowse();
afx_msg void OnButtonBindFile();
afx_msg void OnCancel();
afx_msg void OnBtnicon();
afx_msg void OnIcongroup();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
private:
CString GetFileName();
};
//{{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 + =
减小字号Ctrl + -
显示快捷键?