Click here to Skip to main content
15,895,667 members
Articles / Mobile Apps

Window Tabs (WndTabs) Add-In for DevStudio

Rate me:
Please Sign up or sign in to vote.
5.00/5 (37 votes)
11 Jul 2002 366K   7.3K   94  
Window and File Management add-in for Visual C++
/***************************************************************************/
/* NOTE:                                                                   */
/* This document is copyright (c) by Oz Solomonovich.  All non-commercial  */
/* use is allowed, as long as this document not altered in any way, and    */
/* due credit is given.                                                    */
/***************************************************************************/

// DSAddIn.h : header file
//

#if !defined(AFX_DSADDIN_H__6A06C136_4748_11D1_BC91_0000010016A6__INCLUDED_)
#define AFX_DSADDIN_H__6A06C136_4748_11D1_BC91_0000010016A6__INCLUDED_

#include "commands.h"

// {6A06C123-4748-11D1-BC91-0000010016A6}
DEFINE_GUID(CLSID_DSAddIn,
0x6a06c123, 0x4748, 0x11d1, 0xbc, 0x91, 0, 0, 0x1, 0, 0x16, 0xa6);

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

class CDSAddIn : 
    public IDSAddIn,
    public CComObjectRoot,
    public CComCoClass<CDSAddIn, &CLSID_DSAddIn>
{
public:
    DECLARE_REGISTRY(CDSAddIn, "Window Tabs",
        "WNDTABS Developer Studio Add-in", IDS_WNDTABS_LONGNAME,
        THREADFLAGS_BOTH)

    CDSAddIn() {}
    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);

protected:
    CCommandsObj* m_pCommands;
    DWORD m_dwCookie;
};

//{{AFX_INSERT_LOCATION}}
// Microsoft Developer Studio will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_DSADDIN_H__6A06C136_4748_11D1_BC91_0000010016A6__INCLUDED)

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here


Written By
Experion
Canada Canada
You may know Oz from his WndTabs days. Oz has long since left client side development to work on web technologies and to consult in the R&D management field.

Comments and Discussions