Click here to Skip to main content
15,894,180 members
Articles / Programming Languages / C++

Tips in Writing Namespace Extension (III) - Drag and Drop objects between System Namespace and your NSE

Rate me:
Please Sign up or sign in to vote.
4.73/5 (19 votes)
22 Feb 200617 min read 240.4K   2.1K   56  
An article on implementing drag and drop operation between your NSE and system namespace.
#ifndef _MY_IMAGELIST_H
#define _MY_IMAGELIST_H

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000


class CShellImageLists
{
public:

   HIMAGELIST m_hImageListSmall;
   HIMAGELIST m_hImageListLarge;

   CShellImageLists() : m_hImageListSmall(NULL), m_hImageListLarge(NULL)
   {
   }
   virtual ~CShellImageLists()
   {
      if( m_hImageListSmall ) 
		  ImageList_Destroy(m_hImageListSmall);
      if( m_hImageListLarge ) 
		  ImageList_Destroy(m_hImageListLarge);
   }
};

#endif //_MY_IMAGELIST_H

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
China China
ZengXi is a SOHO guy. Her expertise includes ATL, COM, Web Service, XML, Database Systems and Information Security Technology. Now she is interested in Instant Messages softwares. She also enjoys her hobbies of reading books, listening music and watching cartoons.

Comments and Discussions