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