1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: Declarations/definitions common to all wx source files
4 // Author: Julian Smart and others
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
16 #pragma interface "defs.h"
22 #include "wx/version.h"
24 // Helps SGI compilation, apparently
27 #define __need_wchar_t
29 /* Note I use the term __SGI_CC__ for both cc and CC, its not a good idea to
30 * mix gcc and cc/CC, the name mangling is different */
35 #if defined(sun) || defined(__SUN__)
36 # if !defined(__GNUG__)
43 // suppress some Visual C++ warnings
45 # pragma warning(disable:4244) // cobversion from double to float
46 # pragma warning(disable:4100) // unreferenced formal parameter
49 // suppress some Salford C++ warnings
51 # pragma suppress 353 // Possible nested comments
52 # pragma suppress 593 // Define not used
53 # pragma suppress 61 // enum has no name (doesn't suppress!)
54 # pragma suppress 106 // unnamed, unused parameter
55 # pragma suppress 571 // Virtual function hiding
58 //////////////////////////////////////////////////////////////////////////////////
59 // Currently Only MS-Windows/NT, XView and Motif are supported
61 #if defined(__HPUX__) && !defined(__WXMOTIF__)
64 #if defined(__WXMOTIF__)
69 // wxWindows checks for WIN32, not __WIN32__
70 #if ((defined(WIN32) || defined(__NT__)) && !defined(__WIN32__) && !defined(__WXSTUBS__))
78 #if !defined(__WIN95__) && (WINVER >= 0x0400)
84 // Make sure the environment is set correctly
85 #if defined(__WXMSW__) && defined(__X__)
86 # error "Target can't be both X and Windows"
87 #elif !defined(__WXMOTIF__) && !defined(__WXMSW__) && !defined(__WXGTK__) && \
88 !defined(__WXMAC__) && !defined(__X__) && !defined(__WXQT__) && !defined(__WXSTUBS__)
89 #error "No Target! Use -D[__WXMOTIF__|__WXGTK__|__WXMSW__|__WXMAC__|__WXQT__|__WXSTUBS__]"
92 #if defined(__WXMOTIF__) || defined(__WXGTK__) || defined(__WXQT__) || defined(__WXSTUBS__)
94 // Bool is now obsolete, use bool instead
100 # define Bool_DEFINED
103 #elif defined(__WXMSW__)
114 // Add more tests here for compilers that don't already define bool.
115 #if defined( __MWERKS__ )
116 #if (__MWERKS__ < 0x1000) || !__option(bool)
117 typedef unsigned int bool;
119 #elif defined(__SC__)
120 typedef unsigned int bool;
121 #elif defined(__SALFORDC__)
122 typedef unsigned int bool;
123 #elif defined(_MSC_VER) && (_MSC_VER <= 1000)
124 typedef unsigned int bool;
125 #elif defined(_MSC_VER) && (_MSC_VER == 1020)
126 #define bool unsigned int
127 #elif defined(__BORLANDC__) && (__BORLANDC__ < 0x500)
128 typedef unsigned int bool;
129 #elif defined(__WATCOMC__)
130 typedef unsigned int bool;
131 #elif defined(__SUNCC__)
132 // If we use int, we get identically overloaded functions in config.cpp
133 typedef unsigned char bool;
136 #if ( defined(_MSC_VER) && (_MSC_VER <= 800) ) || defined(__GNUWIN32__) || (defined(__BORLANDC__) && defined(__WIN16__)) || defined(__SC__)
137 #define byte unsigned char
140 typedef short int WXTYPE
;
141 typedef int wxWindowID
;
143 // Macro to cut down on compiler warnings.
144 #if REMOVE_UNUSED_ARG
145 #define WXUNUSED(identifier) /* identifier */
146 #else // stupid, broken compiler
147 #define WXUNUSED(identifier) identifier
151 * Making or using wxWindows as a Windows DLL
159 # define WXDLLEXPORT __export
160 # define WXDLLEXPORT_DATA(type) type __export
161 # define WXDLLEXPORT_CTORFN __export
162 # elif defined(WXUSINGDLL)
163 # define WXDLLEXPORT __import
164 # define WXDLLEXPORT_DATA(type) type __import
165 # define WXDLLEXPORT_CTORFN
168 # define WXDLLEXPORT_DATA(type) type
169 # define WXDLLEXPORT_CTORFN
175 # define WXDLLEXPORT __declspec( dllexport )
176 # define WXDLLEXPORT_DATA(type) __declspec( dllexport ) type
177 # define WXDLLEXPORT_CTORFN // __declspec( dllexport )
178 # elif defined(WXUSINGDLL)
179 # define WXDLLEXPORT __declspec( dllimport )
180 # define WXDLLEXPORT_DATA(type) __declspec( dllimport ) type
181 # define WXDLLEXPORT_CTORFN
184 # define WXDLLEXPORT_DATA(type) type
185 # define WXDLLEXPORT_CTORFN
193 # define WXDLLEXPORT_DATA(type) type
194 # define WXDLLEXPORT_CTORFN
197 // For ostream, istream ofstream
198 #if defined(__BORLANDC__) && defined( _RTLDLL )
199 # define WXDLLIMPORT __import
204 class WXDLLEXPORT wxObject
;
205 class WXDLLEXPORT wxEvent
;
207 /** symbolic constant used by all Find()-like functions returning positive
208 integer on success as failure indicator */
209 #define wxNOT_FOUND (-1)
211 // ----------------------------------------------------------------------------
213 // ----------------------------------------------------------------------------
215 /// Standard error codes
218 /// invalid parameter (in broad sense)
220 /// no more data (iteration functions usually return this)
222 /// user cancelled the operation
224 /// no error (the only non negative error code)
228 // ----------------------------------------------------------------------------
229 /** @name Very common macros */
230 // ----------------------------------------------------------------------------
232 /// delete pointer if it is not NULL and NULL it afterwards
233 // (checking that it's !NULL before passing it to delete is just a
234 // a question of style, because delete will do it itself anyhow, but it might
235 // be considered as an error by some overzealous debugging implementations of
236 // the library, so we do it ourselves)
237 #if defined(__SGI_CC__)
238 // Okay this is bad styling, but the native SGI compiler is very picky, it
239 // wont let you compare/assign between a NULL (void *) and another pointer
240 // type. To be really clean we'd need to pass in another argument, the type
242 // Also note the use of 0L, this would allow future possible 64bit support
243 // (as yet untested) by ensuring that we zero all the bits in a pointer
244 // (which is always the same length as a long (at least with the LP64 standard)
246 #define wxDELETE(p) if ( (p) ) { delete (p); p = 0L; }
248 #define wxDELETE(p) if ( (p) != NULL ) { delete p; p = NULL; }
249 #endif /* __SGI__CC__ */
251 // delete an array and NULL it (see comments above)
252 #if defined(__SGI_CC__)
253 // see above comment.
254 #define wxDELETEA(p) if ( (p) ) { delete [] (p); p = 0L; }
256 #define wxDELETEA(p) if ( ((void *) (p)) != NULL ) { delete [] p; p = NULL; }
257 #endif /* __SGI__CC__ */
259 /// size of statically declared array
260 #define WXSIZEOF(array) (sizeof(array)/sizeof(array[0]))
262 // Use of these suppresses some compiler warnings
263 WXDLLEXPORT_DATA(extern const bool) wxTrue
;
264 WXDLLEXPORT_DATA(extern const bool) wxFalse
;
266 // ----------------------------------------------------------------------------
267 // compiler and OS identification
268 // ----------------------------------------------------------------------------
271 #if defined(__HPUX__) || defined(____SVR4____) || defined(__LINUX__) || defined(__sgi ) || defined(__unix__)
277 #ifndef __UNIX__ // Windows
278 #if defined(_MSC_VER)
280 #elif defined(__BCPLUSPLUS__) && !defined(__BORLANDC__)
282 #elif defined(__WATCOMC__)
283 //#define __WATCOMC__
284 #elif defined(__SC__)
285 #define __SYMANTECC__
290 // ----------------------------------------------------------------------------
291 // compiler specific settings
292 // ----------------------------------------------------------------------------
294 // to allow compiling with warning level 4 under Microsoft Visual C++ some
295 // warnings just must be disabled
297 #pragma warning(disable: 4514) // unreferenced inline func has been removed
299 you might be tempted to disable this one also: triggered by CHECK and FAIL
300 macros in debug.h, but it's, overall, is a rather useful one, so I leave it
301 and will try to find some way to disable this warning just for CHECK/FAIL.
304 #pragma warning(disable: 4127) // conditional expression is constant
312 #define except(x) catch(...)
313 #elif defined(__MWERKS__)
317 #define except(x) catch(...)
320 // where should i put this? we need to make sure of this as it breaks
321 // the <iostream> code.
322 #if !wxUSE_IOSTREAMH && defined(__WXDEBUG__)
328 // Callback function type definition
329 typedef void (*wxFunction
) (wxObject
&, wxEvent
&);
332 * Window style flags.
333 * Values are chosen so they can be |'ed in a bit list.
334 * Some styles are used across more than one group,
335 * so the values mustn't clash with others in the group.
336 * Otherwise, numbers can be reused across groups.
339 * Window (cross-group) styles now take up the first half
340 * of the flag, and control-specific styles the
346 * Window (Frame/dialog/subwindow/panel item) style flags
348 #define wxVSCROLL 0x80000000
349 #define wxHSCROLL 0x40000000
350 #define wxCAPTION 0x20000000
353 #define wxDOUBLE_BORDER 0x10000000
354 #define wxSUNKEN_BORDER 0x08000000
355 #define wxRAISED_BORDER 0x04000000
356 #define wxBORDER 0x02000000
357 #define wxSIMPLE_BORDER 0x02000000
358 #define wxSTATIC_BORDER 0x01000000
359 #define wxTRANSPARENT_WINDOW 0x00100000
360 #define wxNO_BORDER 0x00200000
362 #define wxUSER_COLOURS 0x00800000
363 // Override CTL3D etc. control colour processing to
364 // allow own background colour
365 // OBSOLETE - use wxNO_3D instead
366 #define wxNO_3D 0x00800000
367 // Override CTL3D or native 3D styles for children
368 #define wxCLIP_CHILDREN 0x00400000
369 // Clip children when painting, which reduces flicker in
370 // e.g. frames and splitter windows, but can't be used in
371 // a panel where a static box must be 'transparent' (panel
372 // paints the background for it)
374 // Add this style to a panel to get tab traversal working
375 // outside of dialogs.
376 #define wxTAB_TRAVERSAL 0x00080000
379 #define wxHORIZONTAL 0x01
380 #define wxVERTICAL 0x02
381 #define wxBOTH (wxVERTICAL|wxHORIZONTAL)
382 #define wxCENTER_FRAME 0x04 /* centering into frame rather than screen */
385 * Frame/dialog style flags
387 #define wxSTAY_ON_TOP 0x8000
388 #define wxICONIZE 0x4000
389 #define wxMINIMIZE wxICONIZE
390 #define wxMAXIMIZE 0x2000
391 #define wxTHICK_FRAME 0x1000
392 #define wxSYSTEM_MENU 0x0800
393 #define wxMINIMIZE_BOX 0x0400
394 #define wxMAXIMIZE_BOX 0x0200
395 #define wxTINY_CAPTION_HORIZ 0x0100
396 #define wxTINY_CAPTION_VERT 0x0080
397 #define wxRESIZE_BOX wxMAXIMIZE_BOX
398 #define wxRESIZE_BORDER 0x0040
399 #define wxDIALOG_MODAL 0x0020
400 #define wxDIALOG_MODELESS 0x0000
402 #define wxDEFAULT_FRAME_STYLE (wxRESIZE_BORDER | wxMINIMIZE_BOX | wxMAXIMIZE_BOX | wxTHICK_FRAME | wxSYSTEM_MENU | wxCAPTION | wxCLIP_CHILDREN)
404 #if WXWIN_COMPATIBILITY
405 #define wxDEFAULT_FRAME wxDEFAULT_FRAME_STYLE
408 #define wxDEFAULT_DIALOG_STYLE (wxSYSTEM_MENU|wxCAPTION|wxTHICK_FRAME)
411 * Subwindow style flags
413 #define wxRETAINED 0x0001
414 #define wxBACKINGSTORE wxRETAINED
415 // wxCanvas or wxPanel can optionally have a thick frame under MS Windows.
416 // #define wxTHICK_FRAME 0x1000
419 * wxToolBar style flags
422 #define wxTB_3DBUTTONS 0x8000
423 #define wxTB_HORIZONTAL 0x0002
424 #define wxTB_VERTICAL 0x0004
425 // Flatbar/Coolbar under Win98
426 #define wxTB_FLAT 0x0008
429 * Apply to all panel items
432 #define wxCOLOURED 0x0800
433 // Alignment for panel item labels: replaces characters with zeros
434 // when creating label, so spaces can be included in string for alignment.
435 #define wxFIXED_LENGTH 0x0400
436 #define wxALIGN_LEFT 0x0000
437 #define wxALIGN_CENTER 0x0100
438 #define wxALIGN_CENTRE 0x0100
439 #define wxALIGN_RIGHT 0x0200
442 * Styles for wxListBox
445 #define wxLB_SORT 0x0010
446 #define wxLB_SINGLE 0x0020
447 #define wxLB_MULTIPLE 0x0040
448 #define wxLB_EXTENDED 0x0080
449 // wxLB_OWNERDRAW is Windows-only
450 #define wxLB_OWNERDRAW 0x0100
451 #define wxLB_NEEDED_SB 0x0200
452 #define wxLB_ALWAYS_SB 0x0400
453 #define wxLB_HSCROLL wxHSCROLL
456 * wxTextCtrl style flags
458 #define wxPROCESS_ENTER 0x0004
459 #define wxPASSWORD 0x0008
460 #define wxTE_PROCESS_ENTER wxPROCESS_ENTER
461 #define wxTE_PASSWORD wxPASSWORD
462 #define wxTE_READONLY 0x0010
463 #define wxTE_MULTILINE 0x0020
464 #define wxTE_PROCESS_TAB 0x0040
467 * wxComboBox style flags
469 #define wxCB_SIMPLE 0x0004
470 #define wxCB_SORT 0x0008
471 #define wxCB_READONLY 0x0010
472 #define wxCB_DROPDOWN 0x0020
475 * wxRadioBox/wxRadioButton style flags
478 // New, more intuitive names to specify majorDim argument
480 // Same as wxRA_HORIZONTAL
481 #define wxRA_SPECIFY_COLS 0x0001
482 // Same as wxRA_VERTICAL
483 #define wxRA_SPECIFY_ROWS 0x0002
485 // Old names for compatibility
486 #define wxRA_HORIZONTAL wxHORIZONTAL
487 #define wxRA_VERTICAL wxVERTICAL
488 #define wxRB_GROUP 0x0004
493 #define wxGA_PROGRESSBAR 0x0004
494 #define wxGA_HORIZONTAL wxHORIZONTAL
495 #define wxGA_VERTICAL wxVERTICAL
501 #define wxSL_HORIZONTAL wxHORIZONTAL
502 #define wxSL_VERTICAL wxVERTICAL
503 // The next one is obsolete - use scroll events instead
504 #define wxSL_NOTIFY_DRAG 0x0000
505 #define wxSL_AUTOTICKS 0x0008
506 // #define wxSL_MANUALTICKS 0x0010
507 #define wxSL_LABELS 0x0020
508 #define wxSL_LEFT 0x0040
509 #define wxSL_TOP 0x0080
510 #define wxSL_RIGHT 0x0100
511 #define wxSL_BOTTOM 0x0200
512 #define wxSL_BOTH 0x0400
513 #define wxSL_SELRANGE 0x0800
519 #define wxSB_HORIZONTAL wxHORIZONTAL
520 #define wxSB_VERTICAL wxVERTICAL
526 #define wxBU_AUTODRAW 0x0004
527 #define wxBU_NOAUTODRAW 0x0000
533 #define wxTR_HAS_BUTTONS 0x0004
534 #define wxTR_EDIT_LABELS 0x0008
535 #define wxTR_LINES_AT_ROOT 0x0010
541 #define wxLC_ICON 0x0004
542 #define wxLC_SMALL_ICON 0x0008
543 #define wxLC_LIST 0x0010
544 #define wxLC_REPORT 0x0020
545 #define wxLC_ALIGN_TOP 0x0040
546 #define wxLC_ALIGN_LEFT 0x0080
547 #define wxLC_AUTOARRANGE 0x0100
548 #define wxLC_USER_TEXT 0x0200
549 #define wxLC_EDIT_LABELS 0x0400
550 #define wxLC_NO_HEADER 0x0800
551 #define wxLC_NO_SORT_HEADER 0x1000
552 #define wxLC_SINGLE_SEL 0x2000
553 #define wxLC_SORT_ASCENDING 0x4000
554 #define wxLC_SORT_DESCENDING 0x8000
556 #define wxLC_MASK_TYPE (wxLC_ICON | wxLC_SMALL_ICON | wxLC_LIST | wxLC_REPORT)
557 #define wxLC_MASK_ALIGN (wxLC_ALIGN_TOP | wxLC_ALIGN_LEFT)
558 #define wxLC_MASK_SORT (wxLC_SORT_ASCENDING | wxLC_SORT_DESCENDING)
560 // Omitted because (a) too much detail (b) not enough style flags
561 // #define wxLC_NO_SCROLL
562 // #define wxLC_NO_LABEL_WRAP
563 // #define wxLC_OWNERDRAW_FIXED
564 // #define wxLC_SHOW_SEL_ALWAYS
570 #define wxSP_VERTICAL 0x0004
571 #define wxSP_HORIZONTAL 0x0008
572 #define wxSP_ARROW_KEYS 0x0010
573 #define wxSP_WRAP 0x0020
576 * wxSplitterWindow flags
579 #define wxSP_NOBORDER 0x0000
580 #define wxSP_3D 0x0004
581 #define wxSP_BORDER 0x0008
584 * wxFrame extra flags
587 // No title on taskbar
588 #define wxFRAME_TOOL_WINDOW 0x0004
594 #define wxTAB_MULTILINE 0x0000
595 #define wxTAB_RIGHTJUSTIFY 0x0004
596 #define wxTAB_FIXEDWIDTH 0x0008
597 #define wxTAB_OWNERDRAW 0x0010
599 // Sorry, I changed my mind about these names...
600 #define wxTC_MULTILINE 0x0000
601 #define wxTC_RIGHTJUSTIFY 0x0004
602 #define wxTC_FIXEDWIDTH 0x0008
603 #define wxTC_OWNERDRAW 0x0010
606 * wxStatusBar95 flags
609 #define wxST_SIZEGRIP 0x0002
616 // Text font families
623 wxTELETYPE
, /* @@@@ */
625 // Proportional or Fixed width fonts (not yet used)
632 // Also wxNORMAL for normal (non-italic text)
646 // Brush & Pen Stippling. Note that a stippled pen cannot be dashed!!
647 // Note also that stippling a Pen IS meaningfull, because a Line is
648 // drawn with a Pen, and without any Brush -- and it can be stippled.
656 #define IS_HATCH(s) ((s)>=wxBDIAGONAL_HATCH && (s)<=wxVERTICAL_HATCH)
672 wxXOR
, // src XOR dst
674 wxOR_REVERSE
, // src OR (NOT dst)
675 wxAND_REVERSE
,// src AND (NOT dst)
677 wxAND
, // src AND dst
678 wxAND_INVERT
, // (NOT src) AND dst
680 wxNOR
, // (NOT src) AND (NOT dst)
681 wxEQUIV
, // (NOT src) XOR dst
682 wxSRC_INVERT
, // (NOT src)
683 wxOR_INVERT
, // (NOT src) OR dst
684 wxNAND
, // (NOT src) OR (NOT dst)
687 wxSRC_OR
, // source _bitmap_ OR destination
688 wxSRC_AND
// source _bitmap_ AND destination
692 #define wxFLOOD_SURFACE 1
693 #define wxFLOOD_BORDER 2
695 // Polygon filling mode
696 #define wxODDEVEN_RULE 1
697 #define wxWINDING_RULE 2
699 // ToolPanel in wxFrame
701 #define wxTOOL_BOTTOM 2
702 #define wxTOOL_LEFT 3
703 #define wxTOOL_RIGHT 4
705 // Dialog specifiers/return values
708 #define wxYES_NO 0x0002
709 #define wxCANCEL 0x0004
713 #define wxICON_EXCLAMATION 0x0020
714 #define wxICON_HAND 0x0040
715 #define wxICON_QUESTION 0x0080
716 #define wxICON_INFORMATION 0x0100
718 #define wxICON_STOP wxICON_HAND
719 #define wxICON_ASTERISK wxICON_INFORMATION
720 #define wxICON_MASK (0x0020|0x0040|0x0080|0x0100)
722 #define wxCENTRE 0x0200
723 #define wxCENTER wxCENTRE
725 // Possible SetSize flags
727 // Use internally-calculated width if -1
728 #define wxSIZE_AUTO_WIDTH 0x0001
729 // Use internally-calculated height if -1
730 #define wxSIZE_AUTO_HEIGHT 0x0002
731 // Use internally-calculated width and height if each is -1
732 #define wxSIZE_AUTO (wxSIZE_AUTO_WIDTH|wxSIZE_AUTO_HEIGHT)
733 // Ignore missing (-1) dimensions (use existing).
734 // For readability only: test for wxSIZE_AUTO_WIDTH/HEIGHT in code.
735 #define wxSIZE_USE_EXISTING 0x0000
736 // Allow -1 as a valid position
737 #define wxSIZE_ALLOW_MINUS_ONE 0x0004
738 // Don't do parent client adjustments (for implementation only)
739 #define wxSIZE_NO_ADJUSTMENTS 0x0008
744 wxDF_TEXT
= 1, /* CF_TEXT */
745 wxDF_BITMAP
= 2, /* CF_BITMAP */
746 wxDF_METAFILE
= 3, /* CF_METAFILEPICT */
750 wxDF_OEMTEXT
= 7, /* CF_OEMTEXT */
751 wxDF_DIB
= 8, /* CF_DIB */
756 wxDF_UNICODETEXT
= 13,
757 wxDF_ENHMETAFILE
= 14,
758 wxDF_FILENAME
= 15, /* CF_HDROP */
763 /* Virtual keycodes */
785 WXK_PRIOR
, /* Page up */
786 WXK_NEXT
, /* Page down */
845 /* OS mnemonics -- Identify the running OS (useful for Windows)
846 * [Not all platforms are currently available or supported] */
850 wxCURSES
, /* Text-only CURSES */
851 wxXVIEW_X
, /* Sun's XView OpenLOOK toolkit */
852 wxMOTIF_X
, /* OSF Motif 1.x.x */
853 wxCOSE_X
, /* OSF Common Desktop Environment */
854 wxNEXTSTEP
, /* NeXTStep */
855 wxMACINTOSH
, /* Apple System 7 */
859 wxOS2_PM
, /* OS/2 Workplace */
860 wxWINDOWS
, /* Windows or WfW */
861 wxPENWINDOWS
, /* Windows for Pen Computing */
862 wxWINDOWS_NT
, /* Windows NT */
863 wxWIN32S
, /* Windows 32S API */
864 wxWIN95
, /* Windows 95 */
865 wxWIN386
/* Watcom 32-bit supervisor modus */
871 #define wxLANDSCAPE 2
874 /* Standard menu identifiers */
875 #define wxID_OPEN 5000
876 #define wxID_CLOSE 5001
877 #define wxID_NEW 5002
878 #define wxID_SAVE 5003
879 #define wxID_SAVEAS 5004
880 #define wxID_REVERT 5005
881 #define wxID_EXIT 5006
882 #define wxID_UNDO 5007
883 #define wxID_REDO 5008
884 #define wxID_HELP 5009
885 #define wxID_PRINT 5010
886 #define wxID_PRINT_SETUP 5011
887 #define wxID_PREVIEW 5012
888 #define wxID_ABOUT 5013
889 #define wxID_HELP_CONTENTS 5014
890 #define wxID_HELP_COMMANDS 5015
891 #define wxID_HELP_PROCEDURES 5016
892 #define wxID_HELP_CONTEXT 5017
894 #define wxID_CUT 5030
895 #define wxID_COPY 5031
896 #define wxID_PASTE 5032
897 #define wxID_CLEAR 5033
898 #define wxID_FIND 5034
899 #define wxID_DUPLICATE 5035
900 #define wxID_SELECTALL 5036
902 #define wxID_FILE1 5050
903 #define wxID_FILE2 5051
904 #define wxID_FILE3 5052
905 #define wxID_FILE4 5053
906 #define wxID_FILE5 5054
907 #define wxID_FILE6 5055
908 #define wxID_FILE7 5056
909 #define wxID_FILE8 5057
910 #define wxID_FILE9 5058
913 #define wxID_CANCEL 5101
914 #define wxID_APPLY 5102
915 #define wxID_YES 5103
917 #define wxID_STATIC 5105
919 #define wxID_HIGHEST 5999
921 /* Shortcut for easier dialog-unit-to-pixel conversion */
922 #define wxDLG_UNIT(parent, pt) parent->ConvertDialogToPixels(pt)
925 /* Stand-ins for Windows types, to avoid
926 * #including all of windows.h */
927 typedef unsigned long WXHWND
;
928 typedef unsigned long WXHANDLE
;
929 typedef unsigned long WXHICON
;
930 typedef unsigned long WXHFONT
;
931 typedef unsigned long WXHMENU
;
932 typedef unsigned long WXHPEN
;
933 typedef unsigned long WXHBRUSH
;
934 typedef unsigned long WXHPALETTE
;
935 typedef unsigned long WXHCURSOR
;
936 typedef unsigned long WXHRGN
;
937 typedef unsigned long WXHACCEL
;
938 typedef unsigned long WXHINSTANCE
;
939 typedef unsigned long WXHBITMAP
;
940 typedef unsigned long WXHIMAGELIST
;
941 typedef unsigned long WXHGLOBAL
;
942 typedef unsigned long WXHDC
;
943 typedef unsigned int WXUINT
;
944 typedef unsigned long WXDWORD
;
945 typedef unsigned short WXWORD
;
946 typedef unsigned int WXWPARAM
;
947 typedef long WXLPARAM
;
948 typedef unsigned long WXCOLORREF
;
949 typedef void * WXRGNDATA
;
950 typedef void * WXMSG
;
951 typedef unsigned long WXHCONV
;
952 typedef unsigned long WXHKEY
;
953 typedef unsigned long WXHTREEITEM
;
954 typedef void * WXDRAWITEMSTRUCT
;
955 typedef void * WXMEASUREITEMSTRUCT
;
956 typedef void * WXLPCREATESTRUCT
;
958 typedef int (*WXFARPROC
)();
959 #elif defined(__WIN32__)
960 typedef int (__stdcall
*WXFARPROC
)();
962 typedef int (*WXFARPROC
)();
968 /* Stand-ins for X/Xt/Motif types */
969 typedef void* WXWindow
;
970 typedef void* WXWidget
;
971 typedef void* WXAppContext
;
972 typedef void* WXColormap
;
973 typedef void WXDisplay
;
974 typedef void WXEvent
;
975 typedef void* WXCursor
;
976 typedef void* WXPixmap
;
977 typedef void* WXFontStructPtr
;
979 typedef void* WXRegion
;
980 typedef void* WXFont
;
981 typedef void* WXImage
;
982 typedef void* WXCursor
;
983 typedef void* WXFontList
;
987 /* Stand-ins for GLIB types */
989 typedef unsigned guint
;
990 typedef unsigned long gulong
;
991 typedef void* gpointer
;
993 /* Stand-ins for GDK types */
994 typedef gulong GdkAtom
;
995 typedef struct _GdkColor GdkColor
;
996 typedef struct _GdkColormap GdkColormap
;
997 typedef struct _GdkFont GdkFont
;
998 typedef struct _GdkGC GdkGC
;
999 typedef struct _GdkWindow GdkWindow
;
1000 typedef struct _GdkWindow GdkBitmap
;
1001 typedef struct _GdkWindow GdkPixmap
;
1002 typedef struct _GdkCursor GdkCursor
;
1003 typedef struct _GdkRegion GdkRegion
;
1005 /* Stand-ins for GTK types */
1006 typedef struct _GtkWidget GtkWidget
;
1007 typedef struct _GtkStyle GtkStyle
;
1008 typedef struct _GtkAdjustment GtkAdjustment
;
1009 typedef struct _GtkList GtkList
;
1010 typedef struct _GtkToolbar GtkToolbar
;
1011 typedef struct _GtkNotebook GtkNotebook
;
1012 typedef struct _GtkNotebookPage GtkNotebookPage
;
1016 // This is required because of clashing macros in windows.h, which may be
1017 // included before or after wxWindows classes, and therefore must be
1018 // disabled here before any significant wxWindows headers are included.