Click here to Skip to main content
16,011,680 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: GDI Scale Pin
Hesham Amin4-Mar-04 21:44
Hesham Amin4-Mar-04 21:44 
Questionhow do you use the combo box? Pin
catngo4-Mar-04 7:43
catngo4-Mar-04 7:43 
AnswerRe: how do you use the combo box? Pin
Like2Byte4-Mar-04 7:54
Like2Byte4-Mar-04 7:54 
GeneralStopping devices in Windows 98 Pin
stasik garifulin4-Mar-04 6:47
stasik garifulin4-Mar-04 6:47 
GeneralRe: Stopping devices in Windows 98 Pin
Mazdak4-Mar-04 7:21
Mazdak4-Mar-04 7:21 
GeneralTAPI + PARALLEL PORT PROGRAMMING IN VC++ 6.0 Pin
Prabha Govind Perumal4-Mar-04 6:23
Prabha Govind Perumal4-Mar-04 6:23 
GeneralRe: TAPI + PARALLEL PORT PROGRAMMING IN VC++ 6.0 Pin
Michael P Butler4-Mar-04 6:47
Michael P Butler4-Mar-04 6:47 
GeneralListControl with shell icons Pin
rrrado4-Mar-04 6:15
rrrado4-Mar-04 6:15 
I'm creating own file browser based on CListCtrl - report mode.
I need to display the same folder's icon as windows explorer do.
I'm using SHGetFileInfo() to get the image.
My problem is that (in Windows XP - not tested in older systems)
the image is displayed with ugly solid black shadow around icon, (my list control has white background)
where system displays nice gradual shadow of the icon.
But when I set this icon into icon static control, it is displayed correctly.
Code I use to create image list :

m_listImg.Create(16,16,ILC_COLOR32|ILC_MASK,0,10);
CBitmap bmpTmp;
bmpTmp.Attach(::LoadImage(AfxGetResourceHandle(), MAKEINTRESOURCE(IDB_FILELIST),
    IMAGE_BITMAP, 0, 0, LR_CREATEDIBSECTION|LR_LOADTRANSPARENT));
m_listImg.Add(&bmpTmp, RGB(255,0,255));

SHFILEINFO fi;
SHGetFileInfo("C:\\",0,&fi,sizeof(fi),SHGFI_ICON|SHGFI_SMALLICON);

m_listImg.Replace(9,fi.hIcon);   // original static drive's icon replaced by shell's icon



Any ideas ?
Thank you !


rrrado
GeneralRe: ListControl with shell icons Pin
Shog94-Mar-04 7:07
sitebuilderShog94-Mar-04 7:07 
GeneralRe: ListControl with shell icons Pin
rrrado4-Mar-04 20:33
rrrado4-Mar-04 20:33 
GeneralRe: ListControl with shell icons Pin
rrrado4-Mar-04 21:21
rrrado4-Mar-04 21:21 
General__int64 question Pin
Shay Harel4-Mar-04 5:38
Shay Harel4-Mar-04 5:38 
GeneralRe: __int64 question Pin
basementman4-Mar-04 5:45
basementman4-Mar-04 5:45 
GeneralRe: __int64 question Pin
Shay Harel4-Mar-04 6:18
Shay Harel4-Mar-04 6:18 
GeneralRe: __int64 question Pin
basementman4-Mar-04 6:39
basementman4-Mar-04 6:39 
GeneralRe: __int64 question Pin
Shay Harel4-Mar-04 6:42
Shay Harel4-Mar-04 6:42 
GeneralRe: __int64 question Pin
BlackDice4-Mar-04 5:57
BlackDice4-Mar-04 5:57 
GeneralRe: __int64 question Pin
Steve S4-Mar-04 6:49
Steve S4-Mar-04 6:49 
GeneralRe: __int64 question Pin
BlackDice4-Mar-04 8:47
BlackDice4-Mar-04 8:47 
GeneralRe: __int64 question Pin
Mike Dimmick4-Mar-04 6:08
Mike Dimmick4-Mar-04 6:08 
GeneralRe: __int64 question Pin
David Crow4-Mar-04 7:13
David Crow4-Mar-04 7:13 
GeneralRe: __int64 question Pin
Shay Harel4-Mar-04 7:37
Shay Harel4-Mar-04 7:37 
GeneralRe: __int64 question Pin
jbarton4-Mar-04 10:00
jbarton4-Mar-04 10:00 
GeneralRe: __int64 question Pin
khb5-Jul-09 10:13
khb5-Jul-09 10:13 
GeneralRe: __int64 question Pin
basementman4-Mar-04 9:35
basementman4-Mar-04 9:35 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.