Click here to Skip to main content
15,895,256 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: CTabCtrl set inactive tabitem? Pin
Hamid_RT18-Oct-06 8:45
Hamid_RT18-Oct-06 8:45 
GeneralRe: CTabCtrl set inactive tabitem? Pin
bosfan18-Oct-06 21:00
bosfan18-Oct-06 21:00 
GeneralRe: CTabCtrl set inactive tabitem? Pin
Hamid_RT19-Oct-06 7:35
Hamid_RT19-Oct-06 7:35 
Questionlog on as this account with SERVICE_INTERACTIVE_PROCESS Pin
noeleon16-Oct-06 21:25
noeleon16-Oct-06 21:25 
Questionservice systray icons Pin
noeleon16-Oct-06 21:22
noeleon16-Oct-06 21:22 
AnswerRe: service systray icons Pin
Mark Salsbery17-Oct-06 7:12
Mark Salsbery17-Oct-06 7:12 
AnswerRe: service systray icons Pin
ThatsAlok18-Oct-06 2:19
ThatsAlok18-Oct-06 2:19 
Questionmodifying the system image list fails in Vista Pin
indra2016-Oct-06 21:17
indra2016-Oct-06 21:17 
Here is the code snippet:

IMalloc* pMalloc;
SHGetMalloc(&pMalloc);
HIMAGELIST hSysImageList = NULL;
LPITEMIDLIST pidl = NULL;
SHGetSpecialFolderLocation(NULL, CSIDL_DESKTOP, &pidl);

SHFILEINFO sfi;
ZeroMemory(&sfi, sizeof(SHFILEINFO));
hSysImageList = (HIMAGELIST) SHGetFileInfo((LPCTSTR)pidl, 0,
&sfi, sizeof(SHFILEINFO), SHGFI_PIDL | SHGFI_SYSICONINDEX | SHGFI_SMALLICON);

pMalloc->Free(pidl);
if(!pMalloc)
pMalloc->Release();

//Images for the CoolCool Folders....
CImageList* pImgList = CImageList::FromHandle(hSysImageList);
m_nImgListCnt = pImgList->GetImageCount();

CBitmap clBitmap;
clBitmap.LoadBitmap(IDB_FOLD_REG);
pImgList->Add(&clBitmap,RGB(255,0,255)); //FAILS HERE
clBitmap.DeleteObject();

The application crashes when we are trying to add our own icons to the system image list in Vista.
How to get around this issue????

Thanks
Indrajit
QuestionRe: modifying the system image list fails in Vista Pin
David Crow17-Oct-06 3:13
David Crow17-Oct-06 3:13 
QuestionLink error question Pin
GDavy16-Oct-06 20:53
GDavy16-Oct-06 20:53 
AnswerRe: Link error question Pin
prasad_som16-Oct-06 21:16
prasad_som16-Oct-06 21:16 
GeneralRe: Link error question Pin
GDavy16-Oct-06 21:20
GDavy16-Oct-06 21:20 
QuestionRe: Link error question Pin
prasad_som16-Oct-06 21:27
prasad_som16-Oct-06 21:27 
AnswerRe: Which certification suites for VC++ MFC programmer Pin
David Crow17-Oct-06 3:18
David Crow17-Oct-06 3:18 
QuestionImporting outlook contacts Pin
Mithin16-Oct-06 20:43
Mithin16-Oct-06 20:43 
AnswerRe: Importing outlook contacts Pin
Umesh KV Guptha16-Oct-06 20:57
Umesh KV Guptha16-Oct-06 20:57 
GeneralRe: Importing outlook contacts Pin
Mithin16-Oct-06 21:13
Mithin16-Oct-06 21:13 
GeneralRe: Importing outlook contacts Pin
ThatsAlok16-Oct-06 23:40
ThatsAlok16-Oct-06 23:40 
AnswerRe: Importing outlook contacts Pin
David Crow17-Oct-06 4:26
David Crow17-Oct-06 4:26 
Questionenable logging capability Pin
mt_samiei16-Oct-06 20:35
mt_samiei16-Oct-06 20:35 
AnswerRe: enable logging capability Pin
Parthi_Appu16-Oct-06 20:47
Parthi_Appu16-Oct-06 20:47 
GeneralRe: enable logging capability Pin
Steve S16-Oct-06 21:38
Steve S16-Oct-06 21:38 
GeneralRe: enable logging capability Pin
Parthi_Appu16-Oct-06 22:39
Parthi_Appu16-Oct-06 22:39 
QuestionProviding Auto Scroll Feature to CListCtrl Pin
vijay_aroli16-Oct-06 19:51
vijay_aroli16-Oct-06 19:51 
AnswerRe: Providing Auto Scroll Feature to CListCtrl Pin
Owner drawn16-Oct-06 20:02
Owner drawn16-Oct-06 20:02 

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.