By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
445,871 Members | 1,209 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 445,871 IT Pros & Developers. It's quick & easy.

How to get icon from shell32.dll?

P: n/a
Neo
I am developing a GUI for a destop application in Visual C++ .Net 2005, I am
trying to create toolbar exactlly same as windows explorer which will have
default windows icons, which are in windows folder shell32.dll.

please let me know, how to get and use icons from shell32.dll?

thanks, best regards,

Mohammad Omer Nasir
May 11 '06 #1
Share this Question
Share on Google+
4 Replies


P: n/a
On Thu, 11 May 2006 18:43:32 +0500, "Neo" <mo******@hotmail.com>
wrote:
I am developing a GUI for a destop application in Visual C++ .Net 2005, I am
trying to create toolbar exactlly same as windows explorer which will have
default windows icons, which are in windows folder shell32.dll.

please let me know, how to get and use icons from shell32.dll?


Google reshacker.
May 11 '06 #2

P: n/a
11 May 2006 18:43:32 +0500, Neo <mo******@hotmail.com> wrote:
please let me know, how to get and use icons from shell32.dll?


HINSTANCE hDllInst = LoadLibrary("shell32.dll");
HICON hIcon = LoadIcon(hDllInst, MAKEINTRESOURCE( put resource number here ));

The resource number is between 1 and 238 for shell32.dll version 6.0

Use DrawIcon() to draws in the client area of the window.

Use SetClassLong() with GCL_HICON to change an existing window icon.
May 11 '06 #3

P: n/a
Neo
i am trying to set Icon using CToolBar class.
tell me,
how to change toolbar icon using CToolBar class?
how we get explorer toolbar icon and use in our application?

thanks, best regards,

Mohammad Omer Nasir

"JF Jolin" <sp**@nospam.com> wrote in message
news:op**************@news.contact.net...
11 May 2006 18:43:32 +0500, Neo <mo******@hotmail.com> wrote:
please let me know, how to get and use icons from shell32.dll?

HINSTANCE hDllInst = LoadLibrary("shell32.dll");
HICON hIcon = LoadIcon(hDllInst, MAKEINTRESOURCE( put resource

number here ));
The resource number is between 1 and 238 for shell32.dll version 6.0

Use DrawIcon() to draws in the client area of the window.

Use SetClassLong() with GCL_HICON to change an existing window icon.

May 12 '06 #4

P: n/a
12 May 2006 18:48:12 +0500, Neo <mo******@hotmail.com> wrote:
i am trying to set Icon using CToolBar class.
tell me,
how to change toolbar icon using CToolBar class?
I am not an MFC user myself.
But as far as I understand them.
I would try or guess around the following:

CImageList::Create CImageList::Add (icon previously found)
CToolBar::GetToolBarCtrl
CToolBarCtrl::SetImageList
how we get explorer toolbar icon and use in our application?


I already answered that question. Didn't I ?
May 12 '06 #5

This discussion thread is closed

Replies have been disabled for this discussion.