Click here to Skip to main content
16,008,075 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: ON_MESSAGE and multiple inheritance Pin
Tomasz Sowinski7-Aug-02 2:48
Tomasz Sowinski7-Aug-02 2:48 
GeneralRe: ON_MESSAGE and multiple inheritance Pin
Will Woods7-Aug-02 3:09
Will Woods7-Aug-02 3:09 
GeneralRe: ON_MESSAGE and multiple inheritance Pin
Tomasz Sowinski7-Aug-02 3:25
Tomasz Sowinski7-Aug-02 3:25 
GeneralRe: ON_MESSAGE and multiple inheritance Pin
Will Woods7-Aug-02 4:12
Will Woods7-Aug-02 4:12 
GeneralDeleteObject - Reselecting Old Object Pin
Anonymous7-Aug-02 2:21
Anonymous7-Aug-02 2:21 
GeneralRe: DeleteObject - Reselecting Old Object Pin
Tomasz Sowinski7-Aug-02 2:27
Tomasz Sowinski7-Aug-02 2:27 
GeneralRe: DeleteObject - Reselecting Old Object Pin
Anonymous7-Aug-02 3:17
Anonymous7-Aug-02 3:17 
GeneralRe: DeleteObject - Reselecting Old Object Pin
Tomasz Sowinski7-Aug-02 3:21
Tomasz Sowinski7-Aug-02 3:21 
Anonymous wrote:
But is there a good reason why the author is not deleting his objects after reselecting the 'OldObject'

It depends. If he's using MFC, then CPen/CBrush/CFont destructor will call DeleteObject. Since object isn't selected anymore, the DeleteObject will succeed.

He also may be using global variables or class members with lifetime longer than piece of code in which he's using GDI objects

But - if he's running on raw Win32 API and there are no DeleteObject calls for local objects created with CreatePen/Brush/Font etc., then he is a nitwit indeed. BTW: who's 'the author'?


Tomasz Sowinski -- http://www.shooltz.com

What is "scratch" and why can everything be made from it?

GeneralRe: DeleteObject - Reselecting Old Object Pin
Anonymous7-Aug-02 4:07
Anonymous7-Aug-02 4:07 
GeneralThread func Pin
[CoY0te]6-Aug-02 23:56
[CoY0te]6-Aug-02 23:56 
GeneralRe: Thread func Pin
Tomasz Sowinski7-Aug-02 0:32
Tomasz Sowinski7-Aug-02 0:32 
GeneralRe: Thread func Pin
Joao Vaz7-Aug-02 0:39
Joao Vaz7-Aug-02 0:39 
GeneralRe: Thread func Pin
[CoY0te]7-Aug-02 1:07
[CoY0te]7-Aug-02 1:07 
GeneralRe: Thread func Pin
Tomasz Sowinski7-Aug-02 1:14
Tomasz Sowinski7-Aug-02 1:14 
GeneralRe: Thread func Pin
Daniel Lohmann7-Aug-02 1:38
Daniel Lohmann7-Aug-02 1:38 
GeneralRe: Thread func Pin
Tomasz Sowinski7-Aug-02 2:29
Tomasz Sowinski7-Aug-02 2:29 
GeneralRe: Thread func Pin
Daniel Lohmann7-Aug-02 3:24
Daniel Lohmann7-Aug-02 3:24 
GeneralRe: Thread func Pin
[CoY0te]7-Aug-02 2:36
[CoY0te]7-Aug-02 2:36 
GeneralRe: Thread func Pin
Daniel Lohmann7-Aug-02 3:30
Daniel Lohmann7-Aug-02 3:30 
GeneralBitmap Pin
anuprasad6-Aug-02 23:43
anuprasad6-Aug-02 23:43 
GeneralRe: Bitmap Pin
Tomasz Sowinski7-Aug-02 0:21
Tomasz Sowinski7-Aug-02 0:21 
GeneralAudio support Pin
jayostu6-Aug-02 23:01
jayostu6-Aug-02 23:01 
GeneralApplication Shutdown problem Pin
Anonymous6-Aug-02 22:52
Anonymous6-Aug-02 22:52 
GeneralCAsyncSocket Question Pin
Niko Tanghe6-Aug-02 22:48
Niko Tanghe6-Aug-02 22:48 
GeneralRe: CAsyncSocket Question Pin
Jon Hulatt7-Aug-02 1:47
Jon Hulatt7-Aug-02 1:47 

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.