Click here to Skip to main content
15,921,113 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Memory Overrun! in MFC Pin
Mark Salsbery18-Oct-06 6:37
Mark Salsbery18-Oct-06 6:37 
GeneralRe: Memory Overrun! in MFC Pin
Mark Salsbery18-Oct-06 6:40
Mark Salsbery18-Oct-06 6:40 
GeneralRe: Memory Overrun! in MFC Pin
mostafa_pasha18-Oct-06 9:15
mostafa_pasha18-Oct-06 9:15 
GeneralRe: Memory Overrun! in MFC Pin
Mark Salsbery18-Oct-06 9:56
Mark Salsbery18-Oct-06 9:56 
GeneralRe: Memory Overrun! in MFC Pin
mostafa_pasha18-Oct-06 11:05
mostafa_pasha18-Oct-06 11:05 
GeneralRe: Memory Overrun! in MFC Pin
David Crow19-Oct-06 4:47
David Crow19-Oct-06 4:47 
GeneralRe: Memory Overrun! in MFC Pin
mostafa_pasha19-Oct-06 8:26
mostafa_pasha19-Oct-06 8:26 
GeneralRe: Memory Overrun! in MFC Pin
David Crow19-Oct-06 8:47
David Crow19-Oct-06 8:47 
GeneralRe: Memory Overrun! in MFC Pin
ThatsAlok18-Oct-06 17:54
ThatsAlok18-Oct-06 17:54 
GeneralGDI leak in MFC MDI apps Pin
PJ Arends17-Oct-06 7:57
professionalPJ Arends17-Oct-06 7:57 
GeneralRe: GDI leak in MFC MDI apps Pin
David Crow17-Oct-06 8:42
David Crow17-Oct-06 8:42 
GeneralRe: GDI leak in MFC MDI apps Pin
James R. Twine17-Oct-06 8:49
James R. Twine17-Oct-06 8:49 
GeneralRe: GDI leak in MFC MDI apps Pin
PJ Arends17-Oct-06 9:31
professionalPJ Arends17-Oct-06 9:31 
GeneralRe: GDI leak in MFC MDI apps Pin
Rob Caldecott17-Oct-06 9:37
Rob Caldecott17-Oct-06 9:37 
GeneralRe: GDI leak in MFC MDI apps Pin
PJ Arends17-Oct-06 9:45
professionalPJ Arends17-Oct-06 9:45 
GeneralFIXED! Pin
PJ Arends17-Oct-06 12:25
professionalPJ Arends17-Oct-06 12:25 
GeneralRe: FIXED! Pin
Mark Salsbery17-Oct-06 13:37
Mark Salsbery17-Oct-06 13:37 
Questionhow to extract the system icons and add them to our CImageList object?? Pin
indra2017-Oct-06 5:20
indra2017-Oct-06 5:20 
QuestionRe: how to extract the system icons and add them to our CImageList object?? Pin
David Crow17-Oct-06 5:25
David Crow17-Oct-06 5:25 
AnswerRe: how to extract the system icons and add them to our CImageList object?? Pin
indra2017-Oct-06 5:46
indra2017-Oct-06 5:46 
Doing the following to add to my own list, AddIcon is passing
but later when i am doing:
TreeView_SetImageList(hWnd, m_clTreeImageList.GetSafeHandle(), TVSIL_NORMAL);
the icons are not getting displayed.


// Lets Add Application defined Image List.. START
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();

m_clTreeImageList.Create(16,16,ILC_COLOR32|ILC_MASK,0,1);
m_clTreeImageList.SetBkColor(GetSysColor(COLOR_3DFACE));

//IMAGEINFO pImageInfo;
HICON hIcon;

for(long cnt = 0; cnt < m_nImgListCnt; cnt++)
{
hIcon = pImgList->ExtractIcon(cnt);
int nRet = m_clTreeImageList.Add(hIcon);
}
QuestionRe: how to extract the system icons and add them to our CImageList object?? Pin
David Crow17-Oct-06 6:32
David Crow17-Oct-06 6:32 
AnswerRe: how to extract the system icons and add them to our CImageList object?? Pin
indra2017-Oct-06 22:44
indra2017-Oct-06 22:44 
GeneralRe: how to extract the system icons and add them to our CImageList object?? Pin
David Crow18-Oct-06 2:47
David Crow18-Oct-06 2:47 
GeneralRe: how to extract the system icons and add them to our CImageList object?? Pin
indra2018-Oct-06 20:10
indra2018-Oct-06 20:10 
QuestionRe: how to extract the system icons and add them to our CImageList object?? Pin
David Crow19-Oct-06 4:42
David Crow19-Oct-06 4:42 

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.