]> git.saurik.com Git - wxWidgets.git/blame - src/msw/gdiobj.cpp
more fixes for mingw32 compilation
[wxWidgets.git] / src / msw / gdiobj.cpp
CommitLineData
2bda0e17
KB
1/////////////////////////////////////////////////////////////////////////////
2// Name: gdiobj.cpp
3// Purpose: wxGDIObject class
4// Author: Julian Smart
5// Modified by:
6// Created: 01/02/97
7// RCS-ID: $Id$
8// Copyright: (c) Julian Smart and Markus Holzem
9// Licence: wxWindows licence
10/////////////////////////////////////////////////////////////////////////////
11
12#ifdef __GNUG__
13#pragma implementation "gdiobj.h"
14#endif
15
16// For compilers that support precompilation, includes "wx.h".
17#include "wx/wxprec.h"
18
19#ifdef __BORLANDC__
20#pragma hdrstop
21#endif
22
23#ifndef WX_PRECOMP
24#include <stdio.h>
25#include "wx/setup.h"
26#include "wx/list.h"
27#include "wx/utils.h"
28#include "wx/app.h"
29#endif
30
31#include "wx/gdiobj.h"
32#include "wx/msw/private.h"
33#include "assert.h"
34
2bda0e17 35IMPLEMENT_DYNAMIC_CLASS(wxGDIObject, wxObject)
2bda0e17
KB
36
37/*
38void wxGDIObject::IncrementResourceUsage(void)
39{
40 if ( !M_GDIDATA )
41 return;
42
43// wxDebugMsg("Object %ld about to be incremented: %d\n", (long)this, m_usageCount);
44 M_GDIDATA->m_usageCount ++;
45};
46
47void wxGDIObject::DecrementResourceUsage(void)
48{
49 if ( !M_GDIDATA )
50 return;
51
52 M_GDIDATA->m_usageCount --;
53 if (wxTheApp)
54 wxTheApp->SetPendingCleanup(TRUE);
55// wxDebugMsg("Object %ld decremented: %d\n", (long)this, M_GDIDATA->m_usageCount);
56 if (M_GDIDATA->m_usageCount < 0)
57 {
58 char buf[80];
59 sprintf(buf, "Object %ld usage count is %d\n", (long)this, M_GDIDATA->m_usageCount);
60 wxDebugMsg(buf);
61 }
62// assert(M_GDIDATA->m_usageCount >= 0);
63};
64
65*/
66