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

📄 dsaddin.h

📁 ResOrg 图形化管理Vc项目的资源ID的工具的源代码。 ResOrg - Manage and Renumber Resource Symbol IDs Introduction The
💻 H
字号:
#if !defined(__DSAddIn_H__)
#define __DSAddIn_H__
/************************************************************************
 *
 *                   Resource ID Organiser Add-In
 *
 * (c) Copyright 2000-2002 by Anna-Jayne Metcalfe (resorg@annasplace.me.uk)
 *                         All rights reserved.
 *
 ************************************************************************
 *                                                                       
 *  Filename    : DSAddIn.h
 *
 *  Description : CDSAddIn - Add-In implementation class
 *
 *  Compiler    : Microsoft Visual C++ 6.0, Service Pack 3 or later
 *                                                                       
 *  Target                                                               
 *  Environment : Windows 98/NT/2000/XP
 *
 *  NOTE:
 *
 *    This software is provided "as is" free for personal use. All
 *    title and copyrights in and to the software, including but not
 *    limited to any images, text, etc. incorporated into it, are
 *    owned by Anna-Jayne Metcalfe, except where acknowledged otherwise.
 *
 *    Your may freely to use this code in your own products, PROVIDED
 *    this notice is not removed or modified.
 *
 *
 *    Visit http://www.annasplace.me.uk/resorg for latest updates
 *
 ************************************************************************
 *
 *   MODIFICATION HISTORY:
 *
 *           This is a controlled document. See project configuration
 *           control tool for latest version and full version history.
 *
 *    $Archive: /Projects/AddIns/ResOrg/ResOrgAddIn/DSAddIn.h $
 *   $Revision: 6 $
 *       $Date: 25/11/02 16:52 $
 *     $Author: Anna $
 *
 *    $History: DSAddIn.h $
 * 
 * *****************  Version 6  *****************
 * User: Anna         Date: 25/11/02   Time: 16:52
 * Updated in $/Projects/AddIns/ResOrg/ResOrgAddIn
 * Changed website address in banner
 * 
 * *****************  Version 5  *****************
 * User: Anna         Date: 22/10/02   Time: 13:34
 * Updated in $/Projects/AddIns/ResOrg/ResOrgAddIn
 * Changed name/mail address (at last!)
 * 
 * *****************  Version 4  *****************
 * User: Andy         Date: 24/04/01   Time: 0:19
 * Updated in $/Projects/AddIns/ResOrg/ResOrgAddIn
 * Modified startup to prevent the wrong window being identified as the
 * DevStudio window if another window was active.
 * 
 * The active window is now checked when a command on the toolbar is
 * activated instead
 * 
 * *****************  Version 3  *****************
 * User: Andy         Date: 2/03/01    Time: 17:38
 * Updated in $/Projects/AddIns/ResOrg/ResOrgAddIn
 * 1.  Toolbar creation is now done by CDSAddIn::CreateToolbar(), in
 * response to a call from the (hidden) window CTBAdderWnd. This prevents
 * toolbar creation from failing in OnConnection(). Thanks to Oz
 * (osolo@wndtabs.com) for this tip
 * 2.  Tidied up the code a bit
 * 
 * *****************  Version 2  *****************
 * User: Andy         Date: 29/11/00   Time: 18:37
 * Updated in $/Projects/AddIns/ResOrg/ResOrgAddIn
 * 1.  Moved Office2KDlg code to its own DLL
 * 2.  Added file banners
 *
 * $Nokeywords: $
 *
 ************************************************************************/

// DSAddIn.h : header file
//
#include "commands.h"

// {900921E4-27E1-11D4-A01E-00AA00A65FA1}
DEFINE_GUID(CLSID_DSAddIn,
0x900921e4, 0x27e1, 0x11d4, 0xa0, 0x1e, 0, 0xaa, 0, 0xa6, 0x5f, 0xa1);

/////////////////////////////////////////////////////////////////////////////
// CDSAddIn

class CDSAddIn : 
	public IDSAddIn,
	public CComObjectRoot,
	public CComCoClass<CDSAddIn, &CLSID_DSAddIn>
{
public:
	DECLARE_REGISTRY(	CDSAddIn,
						"Resource ID Organiser",
						"ResOrg Visual Studio Add-in",
						IDS_RESORG_LONGNAME,
						THREADFLAGS_BOTH)

	CDSAddIn(void);

	BEGIN_COM_MAP(CDSAddIn)
		COM_INTERFACE_ENTRY(IDSAddIn)
	END_COM_MAP()

	DECLARE_NOT_AGGREGATABLE(CDSAddIn)

// IDSAddIns
public:
	STDMETHOD(OnConnection)(THIS_ IApplication* pApp,
							VARIANT_BOOL bFirstTime,
							long dwCookie,
							VARIANT_BOOL* OnConnection);

	STDMETHOD(OnDisconnection)(THIS_ VARIANT_BOOL bLastTime);

			void					CreateToolbar(void) const;

protected:
			IApplication*			m_pApplication;
			CCommandsObj*			m_pCommands;
			DWORD					m_dwCookie;
};

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

#endif // !defined(__DSAddIn_H__)

⌨️ 快捷键说明

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