Click here to Skip to main content
12,356,784 members (62,910 online)
Click here to Skip to main content

Stats

186.5K views
4.7K downloads
66 bookmarked
Posted

Retrieving shell icons

, 19 Jun 2002 CPOL
Get shell icons, even if they're customized
// ShellIconDemoDlg.h : header file
//

#pragma once

#include "afxwin.h"
#include "afxcmn.h"

// CShellIconDemoDlg dialog
class CShellIconDemoDlg : public CDialog
{
// Construction
public:
	CShellIconDemoDlg(CWnd* pParent = NULL);	// standard constructor

// Dialog Data
	enum { IDD = IDD_SHELLICONDEMO_DIALOG };

	protected:
	virtual void DoDataExchange(CDataExchange* pDX);	// DDX/DDV support

// Implementation
protected:
	HICON m_hIcon;
	CImageList	m_ImageListSmall;
	CImageList	m_ImageListLarge;

	// Generated message map functions
	virtual BOOL OnInitDialog();
	afx_msg void OnPaint();
	afx_msg HCURSOR OnQueryDragIcon();
	DECLARE_MESSAGE_MAP()
public:
	CListCtrl m_ListCtrlSmall;
	CListCtrl m_ListCtrlLarge;
	afx_msg void OnLvnItemchangedListSmall(NMHDR *pNMHDR, LRESULT *pResult);
	afx_msg void OnLvnItemchangedListLarge(NMHDR *pNMHDR, LRESULT *pResult);
};

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, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

Share

About the Author

Thomas Freudenberg
Technical Lead Cubeware GmbH
Germany Germany
No Biography provided

You may also be interested in...

| Advertise | Privacy | Terms of Use | Mobile
Web02 | 2.8.160621.1 | Last Updated 20 Jun 2002
Article Copyright 2002 by Thomas Freudenberg
Everything else Copyright © CodeProject, 1999-2016
Layout: fixed | fluid