Re: Poor Man's GDI Object Refcount

2001-01-14 Thread Eric Pouech
Uwe Bonnes wrote: typedef struct tagGDIOBJHDR { HANDLE16hNext; WORDwMagic; DWORD dwCount; +HDC refcount; } GDIOBJHDR; doh... wouldn't it be better if refcount were an int ? (Franois shall not like it when -DSTRICT is turned on ;-) A+ --

Re: Poor Man's GDI Object Refcount

2001-01-14 Thread Andreas Mohr
On Sun, Jan 14, 2001 at 06:45:55PM +0100, Uwe Bonnes wrote: Hallo, as reported yesterday, some application depended on DeleteObject failing as long as the Object is stillselected into some DC. Andi also noted the need for such a check some time ago. This patch adds an entry "refcount" in

Re: Poor Man's GDI Object Refcount

2001-01-14 Thread Huw D M Davies
On Sun, Jan 14, 2001 at 02:48:21PM -0600, Andreas Mohr wrote: On Sun, Jan 14, 2001 at 06:45:55PM +0100, Uwe Bonnes wrote: Hallo, as reported yesterday, some application depended on DeleteObject failing as long as the Object is stillselected into some DC. Andi also noted the need for

Re: GDI object refcount?

2000-11-10 Thread Niclas Karlsson MATE
Well, if you can implement this, then just go ahead. Just remember that you have to do the refcount increase/decrease in every single SelectObject function. On the other hand I think I know more about that at the moment ;) So if you don't want to do it, then I'll do. Hmm. I think it would

Re: GDI object refcount?

2000-11-10 Thread Andreas Mohr
On Fri, Nov 10, 2000 at 11:21:39PM +0200, Niclas Karlsson MATE wrote: Well, if you can implement this, then just go ahead. Just remember that you have to do the refcount increase/decrease in every single SelectObject function. On the other hand I think I know more about that at the