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

C / C++ / MFC

 
AnswerRe: A way to keep track of creating and deleting etc pens etc Pin
«_Superman_»20-Sep-09 16:09
professional«_Superman_»20-Sep-09 16:09 
As Chris replied, MFC has classes for all of the GDI objects.
You should be using them instead of creating your own.

What exactly do you mean by keeping track?
I'm assuming you want to audit the creation and deletion of GDI objects.

For this you can derive your own classes from the GDI classes and in the constructor and destructor of these classes you could write your audit code.

«_Superman
I love work. It gives me something to do between weekends.

AnswerRe: A way to keep track of creating and deleting etc pens etc [modified] Pin
Anthony Appleyard20-Sep-09 19:37
Anthony Appleyard20-Sep-09 19:37 
AnswerRe: A way to keep track of creating and deleting etc pens etc Pin
Cedric Moonen20-Sep-09 20:07
Cedric Moonen20-Sep-09 20:07 
AnswerRe: A way to keep track of creating and deleting etc pens etc Pin
KarstenK21-Sep-09 0:15
mveKarstenK21-Sep-09 0:15 
GeneralRe: A way to keep track of creating and deleting etc pens etc Pin
Anthony Appleyard21-Sep-09 19:48
Anthony Appleyard21-Sep-09 19:48 
GeneralRe: A way to keep track of creating and deleting etc pens etc Pin
KarstenK21-Sep-09 21:14
mveKarstenK21-Sep-09 21:14 
QuestionQuestions about CPropertySheet::AddPage Pin
transoft20-Sep-09 10:42
transoft20-Sep-09 10:42 
AnswerRe: Questions about CPropertySheet::AddPage Pin
David Crow20-Sep-09 14:09
David Crow20-Sep-09 14:09 
AnswerRe: Questions about CPropertySheet::AddPage Pin
KarstenK21-Sep-09 0:20
mveKarstenK21-Sep-09 0:20 
GeneralRe: Questions about CPropertySheet::AddPage Pin
transoft21-Sep-09 2:07
transoft21-Sep-09 2:07 
GeneralRe: Questions about CPropertySheet::AddPage Pin
KarstenK21-Sep-09 2:38
mveKarstenK21-Sep-09 2:38 
GeneralRe: Questions about CPropertySheet::AddPage Pin
transoft21-Sep-09 2:47
transoft21-Sep-09 2:47 
GeneralRe: Questions about CPropertySheet::AddPage Pin
KarstenK21-Sep-09 3:13
mveKarstenK21-Sep-09 3:13 
GeneralRe: Questions about CPropertySheet::AddPage Pin
transoft21-Sep-09 6:08
transoft21-Sep-09 6:08 
GeneralRe: Questions about CPropertySheet::AddPage Pin
KarstenK21-Sep-09 21:16
mveKarstenK21-Sep-09 21:16 
Question[Message Deleted] Pin
includeh1020-Sep-09 5:07
includeh1020-Sep-09 5:07 
AnswerRe: how to change comple warning level by project setting ? Pin
Richard MacCutchan20-Sep-09 5:11
mveRichard MacCutchan20-Sep-09 5:11 
GeneralRe: how to change comple warning level by project setting ? Pin
includeh1020-Sep-09 5:36
includeh1020-Sep-09 5:36 
Questionis it possible to get warning message from UINT value mismatched? Pin
includeh1020-Sep-09 4:28
includeh1020-Sep-09 4:28 
AnswerRe: is it possible to get warning message from UINT value mismatched? Pin
Richard MacCutchan20-Sep-09 4:35
mveRichard MacCutchan20-Sep-09 4:35 
GeneralRe: is it possible to get warning message from UINT value mismatched? Pin
includeh1020-Sep-09 4:43
includeh1020-Sep-09 4:43 
GeneralRe: is it possible to get warning message from UINT value mismatched? Pin
Richard MacCutchan20-Sep-09 5:10
mveRichard MacCutchan20-Sep-09 5:10 
GeneralRe: is it possible to get warning message from UINT value mismatched? Pin
includeh1020-Sep-09 5:20
includeh1020-Sep-09 5:20 
GeneralRe: is it possible to get warning message from UINT value mismatched? Pin
KarstenK21-Sep-09 2:56
mveKarstenK21-Sep-09 2:56 
QuestionDifferent results with debug and release version of simulation program Pin
mass8520-Sep-09 3:37
mass8520-Sep-09 3: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.