Click here to Skip to main content
14,920,477 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: C2678: Problem & Solution Pin
Stephen Hewitt11-Jul-07 15:18
MemberStephen Hewitt11-Jul-07 15:18 
GeneralRe: C2678: Problem & Solution Pin
John R. Shaw11-Jul-07 16:04
MemberJohn R. Shaw11-Jul-07 16:04 
QuestionGDI Leak in CTreeCtrl with TVS_CHECKBOXES property Pin
bscaer11-Jul-07 10:25
Memberbscaer11-Jul-07 10:25 
AnswerRe: GDI Leak in CTreeCtrl with TVS_CHECKBOXES property Pin
Hans Dietrich11-Jul-07 10:55
mentorHans Dietrich11-Jul-07 10:55 
GeneralRe: GDI Leak in CTreeCtrl with TVS_CHECKBOXES property Pin
bscaer11-Jul-07 10:59
Memberbscaer11-Jul-07 10:59 
AnswerRe: GDI Leak in CTreeCtrl with TVS_CHECKBOXES property Pin
Mark Salsbery11-Jul-07 10:58
MemberMark Salsbery11-Jul-07 10:58 
GeneralRe: GDI Leak in CTreeCtrl with TVS_CHECKBOXES property Pin
bscaer11-Jul-07 11:06
Memberbscaer11-Jul-07 11:06 
GeneralRe: GDI Leak in CTreeCtrl with TVS_CHECKBOXES property Pin
Mark Salsbery11-Jul-07 11:26
MemberMark Salsbery11-Jul-07 11:26 
Bummer.

I don't have a GDI leak detector but testing with task manager, I get:

// Adds 4 GDI Objects
m_TreeCtl.ModifyStyle(0, TVS_CHECKBOXES);
...
...
// Removes 4 GDI Objects
HIMAGELIST hImgList = TreeView_SetImageList(m_TreeCtl.GetSafeHwnd(), NULL, TVSIL_STATE);
if (hImgList)
ImageList_Destroy(hImgList);

I can't find any info documenting a leak.

Good luck!
Mark


Mark Salsbery
Microsoft MVP - Visual C++


This episode brought to you by the number 3

QuestionCannot access ClassView information file error msg Pin
cgb14311-Jul-07 10:18
Membercgb14311-Jul-07 10:18 
AnswerRe: Cannot access ClassView information file error msg Pin
David Crow11-Jul-07 10:23
MemberDavid Crow11-Jul-07 10:23 
GeneralRe: Cannot access ClassView information file error msg Pin
cgb14311-Jul-07 10:38
Membercgb14311-Jul-07 10:38 
AnswerRe: Cannot access ClassView information file error msg Pin
krmed11-Jul-07 10:33
Memberkrmed11-Jul-07 10:33 
GeneralRe: Cannot access ClassView information file error msg Pin
cgb14311-Jul-07 10:38
Membercgb14311-Jul-07 10:38 
GeneralRe: Cannot access ClassView information file error msg Pin
David Crow11-Jul-07 10:48
MemberDavid Crow11-Jul-07 10:48 
GeneralRe: Cannot access ClassView information file error msg Pin
cgb14311-Jul-07 11:02
Membercgb14311-Jul-07 11:02 
QuestionText Updation Pin
Abhijeet Pathak11-Jul-07 9:56
MemberAbhijeet Pathak11-Jul-07 9:56 
QuestionRe: Text Updation Pin
Mark Salsbery11-Jul-07 10:19
MemberMark Salsbery11-Jul-07 10:19 
AnswerRe: Text Updation Pin
David Crow11-Jul-07 10:28
MemberDavid Crow11-Jul-07 10:28 
AnswerRe: Text Updation Pin
Abhijeet Pathak11-Jul-07 10:48
MemberAbhijeet Pathak11-Jul-07 10:48 
GeneralRe: Text Updation Pin
Mark Salsbery11-Jul-07 11:03
MemberMark Salsbery11-Jul-07 11:03 
Questionifstream - reading same data over and over Pin
moonraker92811-Jul-07 9:34
Membermoonraker92811-Jul-07 9:34 
AnswerRe: ifstream - reading same data over and over Pin
Mark Salsbery11-Jul-07 10:23
MemberMark Salsbery11-Jul-07 10:23 
GeneralRe: ifstream - reading same data over and over Pin
moonraker92811-Jul-07 11:00
Membermoonraker92811-Jul-07 11:00 
GeneralRe: ifstream - reading same data over and over Pin
moonraker92811-Jul-07 11:27
Membermoonraker92811-Jul-07 11:27 
GeneralRe: ifstream - reading same data over and over Pin
Mark Salsbery11-Jul-07 11:37
MemberMark Salsbery11-Jul-07 11:37 

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.