Click here to Skip to main content
15,905,682 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Question?????CListCtrl???? Pin
Stefcos6-Jun-03 1:59
Stefcos6-Jun-03 1:59 
AnswerRe: ?????CListCtrl???? Pin
David Crow6-Jun-03 2:27
David Crow6-Jun-03 2:27 
GeneralMove desktop icons Pin
Jarek G6-Jun-03 1:58
Jarek G6-Jun-03 1:58 
GeneralRe: Move desktop icons Pin
David Crow6-Jun-03 2:29
David Crow6-Jun-03 2:29 
GeneralRe: Move desktop icons Pin
Jarek G6-Jun-03 22:00
Jarek G6-Jun-03 22:00 
GeneralRe: Move desktop icons Pin
David Crow9-Jun-03 2:39
David Crow9-Jun-03 2:39 
GeneralRe: Move desktop icons Pin
Jarek G9-Jun-03 3:22
Jarek G9-Jun-03 3:22 
GeneralRe: Move desktop icons Pin
David Crow9-Jun-03 5:36
David Crow9-Jun-03 5:36 
Try this:

LPMALLOC pMalloc;
LPSHELLFOLDER pDesktopFolder = NULL;
HRESULT hResult;
LPITEMIDLIST pidlItems = NULL;
LPENUMIDLIST ppenum = NULL;
ULONG celtFetched;
SHFILEINFO fi = {0};


hResult = SHGetMalloc(&pMalloc);
if (NOERROR == hResult)
{
hResult = SHGetDesktopFolder(&pDesktopFolder);
if (NOERROR == hResult)
{
hResult = pDesktopFolder->EnumObjects(NULL, SHCONTF_FOLDERS | SHCONTF_NONFOLDERS, &ppenum);
if (NOERROR == hResult)
{
while (hResult = ppenum->Next(1, &pidlItems, &celtFetched) == S_OK && (celtFetched) == 1)
{
SHGetFileInfo((const char *) pidlItems, 0, &fi, sizeof(fi), SHGFI_PIDL | SHGFI_ICON | SHGFI_DISPLAYNAME);

TRACE2("Icon handle for ]%s[ = %#x\n", fi.szDisplayName, fi.hIcon);

pMalloc->Free(pidlItems);
}

ppenum->Release();
}

pDesktopFolder->Release();
}
}

GeneralRe: Move desktop icons Pin
Jarek G10-Jun-03 8:12
Jarek G10-Jun-03 8:12 
QuestionIs it Possible to export a class from a DLL? Pin
Theopulus6-Jun-03 0:29
Theopulus6-Jun-03 0:29 
AnswerRe: Is it Possible to export a class from a DLL? Pin
Cedric Moonen6-Jun-03 1:14
Cedric Moonen6-Jun-03 1:14 
GeneralRe: Is it Possible to export a class from a DLL? Pin
berndg6-Jun-03 2:29
berndg6-Jun-03 2:29 
GeneralRe: Is it Possible to export a class from a DLL? Pin
Cedric Moonen6-Jun-03 2:49
Cedric Moonen6-Jun-03 2:49 
GeneralRe: Is it Possible to export a class from a DLL? Pin
berndg6-Jun-03 2:58
berndg6-Jun-03 2:58 
GeneralRe: Is it Possible to export a class from a DLL? Pin
geo_m6-Jun-03 3:40
geo_m6-Jun-03 3:40 
GeneralRe: Is it Possible to export a class from a DLL? Pin
berndg6-Jun-03 3:53
berndg6-Jun-03 3:53 
GeneralRe: Is it Possible to export a class from a DLL? Pin
Theopulus6-Jun-03 6:02
Theopulus6-Jun-03 6:02 
GeneralRe: Is it Possible to export a class from a DLL? Pin
berndg6-Jun-03 6:15
berndg6-Jun-03 6:15 
GeneralRe: Is it Possible to export a class from a DLL? Pin
berndg6-Jun-03 6:17
berndg6-Jun-03 6:17 
GeneralRe: Is it Possible to export a class from a DLL? Pin
Theopulus9-Jun-03 1:03
Theopulus9-Jun-03 1:03 
QuestionHow to get notification of drag-drop of headers in CListCtrl Pin
Wormhole52306-Jun-03 0:21
Wormhole52306-Jun-03 0:21 
AnswerRe: How to get notification of drag-drop of headers in CListCtrl Pin
YoSilver6-Jun-03 4:47
YoSilver6-Jun-03 4:47 
GeneralSmart Card Inserts & Removes Pin
Fad B5-Jun-03 22:41
Fad B5-Jun-03 22:41 
GeneralCPropertyPage Pin
BlackRider5-Jun-03 22:35
BlackRider5-Jun-03 22:35 
GeneralRe: CPropertyPage Pin
Rage5-Jun-03 22:47
professionalRage5-Jun-03 22:47 

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.