]> git.saurik.com Git - wxWidgets.git/blame - src/msw/gdiobj.cpp
Added MSWPositionForWxMenu() method which is used to translate wxWindows
[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$
6c9a19aa 8// Copyright: (c) Julian Smart
2bda0e17
KB
9// Licence: wxWindows licence
10/////////////////////////////////////////////////////////////////////////////
11
14f355c2 12#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
2bda0e17
KB
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"
2bda0e17 33
2bda0e17 34IMPLEMENT_DYNAMIC_CLASS(wxGDIObject, wxObject)
2bda0e17 35
1169a919
JS
36wxGDIObject::wxGDIObject()
37{
38 m_visible = FALSE;
39}
40
2bda0e17
KB
41/*
42void wxGDIObject::IncrementResourceUsage(void)
43{
44 if ( !M_GDIDATA )
45 return;
46
47// wxDebugMsg("Object %ld about to be incremented: %d\n", (long)this, m_usageCount);
48 M_GDIDATA->m_usageCount ++;
49};
50
51void wxGDIObject::DecrementResourceUsage(void)
52{
53 if ( !M_GDIDATA )
54 return;
55
56 M_GDIDATA->m_usageCount --;
57 if (wxTheApp)
58 wxTheApp->SetPendingCleanup(TRUE);
59// wxDebugMsg("Object %ld decremented: %d\n", (long)this, M_GDIDATA->m_usageCount);
60 if (M_GDIDATA->m_usageCount < 0)
61 {
62 char buf[80];
63 sprintf(buf, "Object %ld usage count is %d\n", (long)this, M_GDIDATA->m_usageCount);
64 wxDebugMsg(buf);
65 }
66// assert(M_GDIDATA->m_usageCount >= 0);
67};
68
69*/
70