Click here to Skip to main content
15,885,918 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: C2678: Problem & Solution Pin
Stephen Hewitt11-Jul-07 15:18
Stephen Hewitt11-Jul-07 15:18 
GeneralRe: C2678: Problem & Solution Pin
John R. Shaw11-Jul-07 16:04
John R. Shaw11-Jul-07 16:04 
QuestionGDI Leak in CTreeCtrl with TVS_CHECKBOXES property Pin
bscaer11-Jul-07 10:25
bscaer11-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
bscaer11-Jul-07 10:59 
AnswerRe: GDI Leak in CTreeCtrl with TVS_CHECKBOXES property Pin
Mark Salsbery11-Jul-07 10:58
Mark Salsbery11-Jul-07 10:58 
GeneralRe: GDI Leak in CTreeCtrl with TVS_CHECKBOXES property Pin
bscaer11-Jul-07 11:06
bscaer11-Jul-07 11:06 
GeneralRe: GDI Leak in CTreeCtrl with TVS_CHECKBOXES property Pin
Mark Salsbery11-Jul-07 11:26
Mark 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
cgb14311-Jul-07 10:18 
AnswerRe: Cannot access ClassView information file error msg Pin
David Crow11-Jul-07 10:23
David Crow11-Jul-07 10:23 
GeneralRe: Cannot access ClassView information file error msg Pin
cgb14311-Jul-07 10:38
cgb14311-Jul-07 10:38 
AnswerRe: Cannot access ClassView information file error msg Pin
krmed11-Jul-07 10:33
krmed11-Jul-07 10:33 
GeneralRe: Cannot access ClassView information file error msg Pin
cgb14311-Jul-07 10:38
cgb14311-Jul-07 10:38 
GeneralRe: Cannot access ClassView information file error msg Pin
David Crow11-Jul-07 10:48
David Crow11-Jul-07 10:48 
GeneralRe: Cannot access ClassView information file error msg Pin
cgb14311-Jul-07 11:02
cgb14311-Jul-07 11:02 
QuestionText Updation Pin
Abhijeet Pathak11-Jul-07 9:56
Abhijeet Pathak11-Jul-07 9:56 
QuestionRe: Text Updation Pin
Mark Salsbery11-Jul-07 10:19
Mark Salsbery11-Jul-07 10:19 
AnswerRe: Text Updation Pin
David Crow11-Jul-07 10:28
David Crow11-Jul-07 10:28 
AnswerRe: Text Updation Pin
Abhijeet Pathak11-Jul-07 10:48
Abhijeet Pathak11-Jul-07 10:48 
GeneralRe: Text Updation Pin
Mark Salsbery11-Jul-07 11:03
Mark Salsbery11-Jul-07 11:03 
Questionifstream - reading same data over and over Pin
moonraker92811-Jul-07 9:34
moonraker92811-Jul-07 9:34 
AnswerRe: ifstream - reading same data over and over Pin
Mark Salsbery11-Jul-07 10:23
Mark Salsbery11-Jul-07 10:23 
GeneralRe: ifstream - reading same data over and over Pin
moonraker92811-Jul-07 11:00
moonraker92811-Jul-07 11:00 
GeneralRe: ifstream - reading same data over and over Pin
moonraker92811-Jul-07 11:27
moonraker92811-Jul-07 11:27 
GeneralRe: ifstream - reading same data over and over Pin
Mark Salsbery11-Jul-07 11:37
Mark 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.