]> git.saurik.com Git - wxWidgets.git/blame_incremental - src/msw/gdiobj.cpp
*** empty log message ***
[wxWidgets.git] / src / msw / gdiobj.cpp
... / ...
CommitLineData
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
35#if !USE_SHARED_LIBRARIES
36IMPLEMENT_DYNAMIC_CLASS(wxGDIObject, wxObject)
37#endif
38
39/*
40void wxGDIObject::IncrementResourceUsage(void)
41{
42 if ( !M_GDIDATA )
43 return;
44
45// wxDebugMsg("Object %ld about to be incremented: %d\n", (long)this, m_usageCount);
46 M_GDIDATA->m_usageCount ++;
47};
48
49void wxGDIObject::DecrementResourceUsage(void)
50{
51 if ( !M_GDIDATA )
52 return;
53
54 M_GDIDATA->m_usageCount --;
55 if (wxTheApp)
56 wxTheApp->SetPendingCleanup(TRUE);
57// wxDebugMsg("Object %ld decremented: %d\n", (long)this, M_GDIDATA->m_usageCount);
58 if (M_GDIDATA->m_usageCount < 0)
59 {
60 char buf[80];
61 sprintf(buf, "Object %ld usage count is %d\n", (long)this, M_GDIDATA->m_usageCount);
62 wxDebugMsg(buf);
63 }
64// assert(M_GDIDATA->m_usageCount >= 0);
65};
66
67*/
68