]> git.saurik.com Git - wxWidgets.git/blame - src/msw/data.cpp
Changed order of #ifdefs to get native version on OS/2, even if
[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
KB
39
40// Current cursor, in order to hang on to
41// cursor handle when setting the cursor globally
42wxCursor *g_globalCursor = NULL;
43
44// Message Strings for Internationalization
45char **wx_msg_str = (char**)NULL;
46
47// Custom OS version, as optionally placed in wx.ini/.wxrc
48// Currently this can be Win95, Windows, Win32s, WinNT.
49// For some systems, you can't tell until run-time what services you
50// have. See wxGetOsVersion, which uses this string if present.
51char *wxOsVersion = NULL;
52
53int wxPageNumber;
54
55// GDI Object Lists
56wxBrushList *wxTheBrushList = NULL;
57wxPenList *wxThePenList = NULL;
58wxFontList *wxTheFontList = NULL;
59wxBitmapList *wxTheBitmapList = NULL;
60
61wxColourDatabase *wxTheColourDatabase = NULL;
62
63// Stock objects
64wxFont *wxNORMAL_FONT;
65wxFont *wxSMALL_FONT;
66wxFont *wxITALIC_FONT;
67wxFont *wxSWISS_FONT;
68wxPen *wxRED_PEN;
69
70wxPen *wxCYAN_PEN;
71wxPen *wxGREEN_PEN;
72wxPen *wxBLACK_PEN;
73wxPen *wxWHITE_PEN;
74wxPen *wxTRANSPARENT_PEN;
75wxPen *wxBLACK_DASHED_PEN;
76wxPen *wxGREY_PEN;
77wxPen *wxMEDIUM_GREY_PEN;
78wxPen *wxLIGHT_GREY_PEN;
79
80wxBrush *wxBLUE_BRUSH;
81wxBrush *wxGREEN_BRUSH;
82wxBrush *wxWHITE_BRUSH;
83wxBrush *wxBLACK_BRUSH;
84wxBrush *wxTRANSPARENT_BRUSH;
85wxBrush *wxCYAN_BRUSH;
86wxBrush *wxRED_BRUSH;
87wxBrush *wxGREY_BRUSH;
88wxBrush *wxMEDIUM_GREY_BRUSH;
89wxBrush *wxLIGHT_GREY_BRUSH;
90
91wxColour *wxBLACK;
92wxColour *wxWHITE;
93wxColour *wxRED;
94wxColour *wxBLUE;
95wxColour *wxGREEN;
96wxColour *wxCYAN;
97wxColour *wxLIGHT_GREY;
98
99wxCursor *wxSTANDARD_CURSOR = NULL;
100wxCursor *wxHOURGLASS_CURSOR = NULL;
101wxCursor *wxCROSS_CURSOR = NULL;
102
103// 'Null' objects
57a7b7c1 104wxAcceleratorTable wxNullAcceleratorTable;
2bda0e17
KB
105wxBitmap wxNullBitmap;
106wxIcon wxNullIcon;
107wxCursor wxNullCursor;
108wxPen wxNullPen;
109wxBrush wxNullBrush;
110wxPalette wxNullPalette;
111wxFont wxNullFont;
112wxColour wxNullColour;
113
114// Default window names
8d772832 115const wxChar *wxControlNameStr = wxT("control");
223d09f6
KB
116const wxChar *wxButtonNameStr = wxT("button");
117const wxChar *wxCanvasNameStr = wxT("canvas");
118const wxChar *wxCheckBoxNameStr = wxT("check");
119const wxChar *wxChoiceNameStr = wxT("choice");
120const wxChar *wxComboBoxNameStr = wxT("comboBox");
121const wxChar *wxDialogNameStr = wxT("dialog");
122const wxChar *wxFrameNameStr = wxT("frame");
123const wxChar *wxGaugeNameStr = wxT("gauge");
124const wxChar *wxStaticBoxNameStr = wxT("groupBox");
125const wxChar *wxListBoxNameStr = wxT("listBox");
126const wxChar *wxStaticTextNameStr = wxT("message");
127const wxChar *wxStaticBitmapNameStr = wxT("message");
128const wxChar *wxMultiTextNameStr = wxT("multitext");
129const wxChar *wxPanelNameStr = wxT("panel");
130const wxChar *wxRadioBoxNameStr = wxT("radioBox");
131const wxChar *wxRadioButtonNameStr = wxT("radioButton");
132const wxChar *wxBitmapRadioButtonNameStr = wxT("radioButton");
133const wxChar *wxScrollBarNameStr = wxT("scrollBar");
134const wxChar *wxSliderNameStr = wxT("slider");
135const wxChar *wxStaticNameStr = wxT("static");
136const wxChar *wxTextCtrlWindowNameStr = wxT("textWindow");
137const wxChar *wxTextCtrlNameStr = wxT("text");
138const wxChar *wxVirtListBoxNameStr = wxT("virtListBox");
139const wxChar *wxButtonBarNameStr = wxT("buttonbar");
140const wxChar *wxEnhDialogNameStr = wxT("Shell");
141const wxChar *wxToolBarNameStr = wxT("toolbar");
142const wxChar *wxStatusLineNameStr = wxT("status_line");
143const wxChar *wxGetTextFromUserPromptStr = wxT("Input Text");
144const wxChar *wxMessageBoxCaptionStr = wxT("Message");
145const wxChar *wxFileSelectorPromptStr = wxT("Select a file");
146const wxChar *wxFileSelectorDefaultWildcardStr = wxT("*.*");
147const wxChar *wxInternalErrorStr = wxT("wxWindows Internal Error");
148const wxChar *wxFatalErrorStr = wxT("wxWindows Fatal Error");
149const wxChar *wxTreeCtrlNameStr = wxT("treeCtrl");
150const wxChar *wxDirDialogNameStr = wxT("wxDirCtrl");
151const wxChar *wxDirDialogDefaultFolderStr = wxT("/");
2bda0e17
KB
152
153// See wx/utils.h
223d09f6
KB
154const wxChar *wxFloatToStringStr = wxT("%.2f");
155const wxChar *wxDoubleToStringStr = wxT("%.2f");
2bda0e17 156
2049ba38 157#ifdef __WXMSW__
223d09f6 158const wxChar *wxUserResourceStr = wxT("TEXT");
2bda0e17
KB
159#endif
160
2bda0e17
KB
161
162const wxSize wxDefaultSize(-1, -1);
163const wxPoint wxDefaultPosition(-1, -1);