]> git.saurik.com Git - wxWidgets.git/blame - src/msw/data.cpp
corrected dynamic class implementation
[wxWidgets.git] / src / msw / data.cpp
CommitLineData
2bda0e17
KB
1/////////////////////////////////////////////////////////////////////////////
2// Name: data.cpp
3// Purpose: Various data
4// Author: Julian Smart
5// Modified by:
6// Created: 01/02/97
7// RCS-ID: $Id$
8// Copyright: (c) Julian Smart and Markus Holzem
e146b8c8 9// Licence: wxWindows licence
2bda0e17
KB
10/////////////////////////////////////////////////////////////////////////////
11
12#ifdef __GNUG__
a3b46648 13#pragma implementation "data.h"
2bda0e17
KB
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 "wx/wx.h"
25#endif
26
2a47d3c1
JS
27#include "wx/prntbase.h"
28
2bda0e17
KB
29#define _MAXPATHLEN 500
30
31// Useful buffer, initialized in wxCommonInit
837e5743 32wxChar *wxBuffer = NULL;
2bda0e17
KB
33
34// Windows List
e146b8c8 35wxWindowList wxTopLevelWindows;
2bda0e17
KB
36
37// List of windows pending deletion
cde9f08e 38wxList WXDLLEXPORT wxPendingDelete;
2bda0e17 39
2bda0e17
KB
40int wxPageNumber;
41
42// GDI Object Lists
2bda0e17 43wxFontList *wxTheFontList = NULL;
f6bcfd97
BP
44wxPenList *wxThePenList = NULL;
45wxBrushList *wxTheBrushList = NULL;
46wxBitmapList *wxTheBitmapList = NULL;
2bda0e17
KB
47wxColourDatabase *wxTheColourDatabase = NULL;
48
49// Stock objects
50wxFont *wxNORMAL_FONT;
51wxFont *wxSMALL_FONT;
52wxFont *wxITALIC_FONT;
53wxFont *wxSWISS_FONT;
2bda0e17 54
f6bcfd97 55wxPen *wxRED_PEN;
2bda0e17
KB
56wxPen *wxCYAN_PEN;
57wxPen *wxGREEN_PEN;
58wxPen *wxBLACK_PEN;
59wxPen *wxWHITE_PEN;
60wxPen *wxTRANSPARENT_PEN;
61wxPen *wxBLACK_DASHED_PEN;
62wxPen *wxGREY_PEN;
63wxPen *wxMEDIUM_GREY_PEN;
64wxPen *wxLIGHT_GREY_PEN;
65
66wxBrush *wxBLUE_BRUSH;
67wxBrush *wxGREEN_BRUSH;
68wxBrush *wxWHITE_BRUSH;
69wxBrush *wxBLACK_BRUSH;
70wxBrush *wxTRANSPARENT_BRUSH;
71wxBrush *wxCYAN_BRUSH;
72wxBrush *wxRED_BRUSH;
73wxBrush *wxGREY_BRUSH;
74wxBrush *wxMEDIUM_GREY_BRUSH;
75wxBrush *wxLIGHT_GREY_BRUSH;
76
77wxColour *wxBLACK;
78wxColour *wxWHITE;
79wxColour *wxRED;
80wxColour *wxBLUE;
81wxColour *wxGREEN;
82wxColour *wxCYAN;
83wxColour *wxLIGHT_GREY;
84
85wxCursor *wxSTANDARD_CURSOR = NULL;
86wxCursor *wxHOURGLASS_CURSOR = NULL;
87wxCursor *wxCROSS_CURSOR = NULL;
88
89// 'Null' objects
1e6feb95 90#if wxUSE_ACCEL
57a7b7c1 91wxAcceleratorTable wxNullAcceleratorTable;
1e6feb95
VZ
92#endif // wxUSE_ACCEL
93
f6bcfd97
BP
94wxBitmap wxNullBitmap;
95wxIcon wxNullIcon;
96wxCursor wxNullCursor;
97wxPen wxNullPen;
98wxBrush wxNullBrush;
d275c7eb 99#if wxUSE_PALETTE
2bda0e17 100wxPalette wxNullPalette;
d275c7eb 101#endif // wxUSE_PALETTE
f6bcfd97
BP
102wxFont wxNullFont;
103wxColour wxNullColour;
2bda0e17
KB
104
105// Default window names
8d772832 106const wxChar *wxControlNameStr = wxT("control");
223d09f6
KB
107const wxChar *wxButtonNameStr = wxT("button");
108const wxChar *wxCanvasNameStr = wxT("canvas");
109const wxChar *wxCheckBoxNameStr = wxT("check");
110const wxChar *wxChoiceNameStr = wxT("choice");
111const wxChar *wxComboBoxNameStr = wxT("comboBox");
112const wxChar *wxDialogNameStr = wxT("dialog");
113const wxChar *wxFrameNameStr = wxT("frame");
114const wxChar *wxGaugeNameStr = wxT("gauge");
115const wxChar *wxStaticBoxNameStr = wxT("groupBox");
116const wxChar *wxListBoxNameStr = wxT("listBox");
117const wxChar *wxStaticTextNameStr = wxT("message");
118const wxChar *wxStaticBitmapNameStr = wxT("message");
119const wxChar *wxMultiTextNameStr = wxT("multitext");
120const wxChar *wxPanelNameStr = wxT("panel");
121const wxChar *wxRadioBoxNameStr = wxT("radioBox");
122const wxChar *wxRadioButtonNameStr = wxT("radioButton");
123const wxChar *wxBitmapRadioButtonNameStr = wxT("radioButton");
124const wxChar *wxScrollBarNameStr = wxT("scrollBar");
125const wxChar *wxSliderNameStr = wxT("slider");
126const wxChar *wxStaticNameStr = wxT("static");
127const wxChar *wxTextCtrlWindowNameStr = wxT("textWindow");
128const wxChar *wxTextCtrlNameStr = wxT("text");
129const wxChar *wxVirtListBoxNameStr = wxT("virtListBox");
130const wxChar *wxButtonBarNameStr = wxT("buttonbar");
131const wxChar *wxEnhDialogNameStr = wxT("Shell");
132const wxChar *wxToolBarNameStr = wxT("toolbar");
133const wxChar *wxStatusLineNameStr = wxT("status_line");
134const wxChar *wxGetTextFromUserPromptStr = wxT("Input Text");
135const wxChar *wxMessageBoxCaptionStr = wxT("Message");
136const wxChar *wxFileSelectorPromptStr = wxT("Select a file");
137const wxChar *wxFileSelectorDefaultWildcardStr = wxT("*.*");
138const wxChar *wxInternalErrorStr = wxT("wxWindows Internal Error");
139const wxChar *wxFatalErrorStr = wxT("wxWindows Fatal Error");
140const wxChar *wxTreeCtrlNameStr = wxT("treeCtrl");
141const wxChar *wxDirDialogNameStr = wxT("wxDirCtrl");
142const wxChar *wxDirDialogDefaultFolderStr = wxT("/");
2bda0e17
KB
143
144// See wx/utils.h
223d09f6
KB
145const wxChar *wxFloatToStringStr = wxT("%.2f");
146const wxChar *wxDoubleToStringStr = wxT("%.2f");
2bda0e17 147
2049ba38 148#ifdef __WXMSW__
223d09f6 149const wxChar *wxUserResourceStr = wxT("TEXT");
2bda0e17
KB
150#endif
151
2bda0e17
KB
152
153const wxSize wxDefaultSize(-1, -1);
154const wxPoint wxDefaultPosition(-1, -1);