]> git.saurik.com Git - wxWidgets.git/blame_incremental - src/msw/gdiobj.cpp
1. fixed compilation after wxList::compatibility_iterator changes
[wxWidgets.git] / src / msw / gdiobj.cpp
... / ...
CommitLineData
1/////////////////////////////////////////////////////////////////////////////
2// Name: src/msw/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
9// Licence: wxWindows licence
10/////////////////////////////////////////////////////////////////////////////
11
12// For compilers that support precompilation, includes "wx.h".
13#include "wx/wxprec.h"
14
15#ifdef __BORLANDC__
16#pragma hdrstop
17#endif
18
19#ifndef WX_PRECOMP
20#include <stdio.h>
21#include "wx/list.h"
22#include "wx/utils.h"
23#include "wx/app.h"
24#endif
25
26#include "wx/gdiobj.h"
27#include "wx/msw/private.h"
28
29IMPLEMENT_DYNAMIC_CLASS(wxGDIObject, wxObject)
30
31/*
32void wxGDIObject::IncrementResourceUsage(void)
33{
34 if ( !M_GDIDATA )
35 return;
36
37// wxDebugMsg("Object %ld about to be incremented: %d\n", (long)this, m_usageCount);
38 M_GDIDATA->m_usageCount ++;
39};
40
41void wxGDIObject::DecrementResourceUsage(void)
42{
43 if ( !M_GDIDATA )
44 return;
45
46 M_GDIDATA->m_usageCount --;
47 if (wxTheApp)
48 wxTheApp->SetPendingCleanup(true);
49// wxDebugMsg("Object %ld decremented: %d\n", (long)this, M_GDIDATA->m_usageCount);
50 if (M_GDIDATA->m_usageCount < 0)
51 {
52 char buf[80];
53 sprintf(buf, "Object %ld usage count is %d\n", (long)this, M_GDIDATA->m_usageCount);
54 wxDebugMsg(buf);
55 }
56// assert(M_GDIDATA->m_usageCount >= 0);
57};
58
59*/