]> git.saurik.com Git - wxWidgets.git/blame - src/msw/gdiobj.cpp
Somehow, setting a tint color makes gauge work :/.
[wxWidgets.git] / src / msw / gdiobj.cpp
CommitLineData
2bda0e17 1/////////////////////////////////////////////////////////////////////////////
521bf4ff 2// Name: src/msw/gdiobj.cpp
2bda0e17
KB
3// Purpose: wxGDIObject class
4// Author: Julian Smart
5// Modified by:
6// Created: 01/02/97
6c9a19aa 7// Copyright: (c) Julian Smart
213ceb3f 8// Licence: wxWindows licence
2bda0e17
KB
9/////////////////////////////////////////////////////////////////////////////
10
2bda0e17
KB
11// For compilers that support precompilation, includes "wx.h".
12#include "wx/wxprec.h"
13
14#ifdef __BORLANDC__
8ecff181 15 #pragma hdrstop
2bda0e17
KB
16#endif
17
8dd86663
WS
18#include "wx/gdiobj.h"
19
2bda0e17 20#ifndef WX_PRECOMP
8ecff181
WS
21 #include <stdio.h>
22 #include "wx/list.h"
23 #include "wx/utils.h"
24 #include "wx/app.h"
2bda0e17
KB
25#endif
26
2bda0e17 27#include "wx/msw/private.h"
2bda0e17 28
5c33522f 29#define M_GDIDATA static_cast<wxGDIRefData*>(m_refData)
1de8d512 30
2bda0e17
KB
31/*
32void wxGDIObject::IncrementResourceUsage(void)
33{
213ceb3f
WS
34 if ( !M_GDIDATA )
35 return;
2bda0e17
KB
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{
213ceb3f
WS
43 if ( !M_GDIDATA )
44 return;
2bda0e17
KB
45
46 M_GDIDATA->m_usageCount --;
47 if (wxTheApp)
213ceb3f 48 wxTheApp->SetPendingCleanup(true);
2bda0e17
KB
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*/