|
// Commands.cpp : Implementation of CCommands
#include "stdafx.h"
#include "FavoritesAddIn.h"
#include "Commands.h"
#include "FavoritesMenu.h"
//#include "FavoritesList.h"
//#include "ConfigurationFile.h"
/////////////////////////////////////////////////////////////////////////////
// CCommands
CCommands::CCommands()
{
}
/////////////////////////////////////////////////////////////////////////////
// ICommands
STDMETHODIMP CCommands::ShowFavorites()
{
static bool checkXML=true;
static bool justExit=false;
if (checkXML)
{
checkXML=false;
CComPtr<IXMLDOMDocument> pXmlDoc;
if (S_OK!=pXmlDoc.CoCreateInstance(CLSID_DOMDocument, NULL, CLSCTX_INPROC_SERVER))
{
justExit=true;
}
}
if (!justExit)
{
m_piApplication->EnableModeless(VARIANT_FALSE);
CFavoritesMenu favs;
favs.Load(m_piApplication);
m_piApplication->EnableModeless(VARIANT_TRUE);
}
return S_OK;
}
|
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.
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
I work when you don't. Sleep is for wussies.
The answer is no, whatever the question is. You can't have it, you don't need it, and you'd just break it in five minutes if I give it to you anyways.
If you're interested, my web site is at
NOPcode.com and has lots of cool stuff with programming and a one-of-a-kind
Audio Server.