www.pudn.com > registerShortCut.rar > ShortCutDlg.h


// ShortCutDlg.h : header file 
// 
 
#if !defined(AFX_SHORTCUTDLG_H__962BA007_7FC3_11D6_8F32_00E04CE76240__INCLUDED_) 
#define AFX_SHORTCUTDLG_H__962BA007_7FC3_11D6_8F32_00E04CE76240__INCLUDED_ 
 
#if _MSC_VER > 1000 
#pragma once 
#endif // _MSC_VER > 1000 
 
///////////////////////////////////////////////////////////////////////////// 
// CShortCutDlg dialog 
 
class CShortCutDlg : public CDialog 
{ 
// Construction 
public: 
	CShortCutDlg(CWnd* pParent = NULL);	// standard constructor 
 
// Dialog Data 
	//{{AFX_DATA(CShortCutDlg) 
	enum { IDD = IDD_SHORTCUT_DIALOG }; 
	int		m_nLocation; 
	//}}AFX_DATA 
 
	// ClassWizard generated virtual function overrides 
	//{{AFX_VIRTUAL(CShortCutDlg) 
	protected: 
	virtual void DoDataExchange(CDataExchange* pDX);	// DDX/DDV support 
	//}}AFX_VIRTUAL 
 
// Implementation 
protected: 
	HICON m_hIcon; 
	//起始文件夹的PIDL 
	int nBeginAt; 
	 
	BOOL BrowseForFolder( 
    LPITEMIDLIST pidlRoot,//浏览开始处的PIDL 
    LPITEMIDLIST *ppidlDestination, 
                //浏览结束时所选择的PIDL 
    LPCSTR lpszTitle);//浏览对话框中的提示文字 
	 
	//取得快捷方式的目标应用程序名 
	BOOL SelectMenuItem( LPSTR szFileName); 
	//取得要创建的快捷方式的名字 
	BOOL GetShortcutCrt(LPSTR szPath); 
	//创建快捷方式 
	BOOL CreateLink (  
		LPSTR szPath,//快捷方式的目标应用程序名 
		LPSTR szLink);//快捷方式的数据文件名(*.lnk) 
	//删除文件夹 
	BOOL DeleteFolder( LPSTR pszFolder); 
	//取得要删除的快捷方式 
	BOOL GetShortcutDel ( 
        LPSTR lpszInitDir,//选择文件的开始目录 
        LPSTR lpszShortcut);//快捷方式名 
	//删除快捷方式的数据文件 (*.lnk) 
	BOOL DeleteLink( LPSTR lpszShortcut); 
 
	// 通知shell有关变化 
	void NotifyShell(LONG wEventId,//事件标志 
            LPSTR szPath);//路径 
 
 
	// Generated message map functions 
	//{{AFX_MSG(CShortCutDlg) 
	virtual BOOL OnInitDialog(); 
	afx_msg void OnSysCommand(UINT nID, LPARAM lParam); 
	afx_msg void OnPaint(); 
	afx_msg HCURSOR OnQueryDragIcon(); 
	afx_msg void OnCreateGroup(); 
	afx_msg void OnCreateItem(); 
	afx_msg void OnDeleteGroup(); 
	afx_msg void OnDeleteItem(); 
	afx_msg void OnDestroy(); 
	//}}AFX_MSG 
	DECLARE_MESSAGE_MAP() 
}; 
 
//{{AFX_INSERT_LOCATION}} 
// Microsoft Visual C++ will insert additional declarations immediately before the previous line. 
 
#endif // !defined(AFX_SHORTCUTDLG_H__962BA007_7FC3_11D6_8F32_00E04CE76240__INCLUDED_)