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
r norman - 11 May 2006 14:54 GMT
>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.
JF Jolin - 11 May 2006 21:08 GMT
> 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.
Neo - 12 May 2006 14:48 GMT
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
> > please let me know, how to get and use icons from shell32.dll?
>
[quoted text clipped - 6 lines]
>
> Use SetClassLong() with GCL_HICON to change an existing window icon.
JF Jolin - 12 May 2006 18:52 GMT
> 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 ?