]> git.saurik.com Git - wxWidgets.git/blame - interface/wx/version.h
Return NULL from wxWindow::GetCapture() when the capture is being lost.
[wxWidgets.git] / interface / wx / version.h
CommitLineData
8af7f7c1
BP
1/////////////////////////////////////////////////////////////////////////////
2// Name: version.h
3// Purpose: wxWidgets version numbers
4// Author: wxWidgets team
526954c5 5// Licence: wxWindows licence
8af7f7c1
BP
6/////////////////////////////////////////////////////////////////////////////
7
b21126db 8/** @addtogroup group_funcmacro_version */
8af7f7c1
BP
9//@{
10
11/**
12 This is a macro which evaluates to @true if the current wxWidgets version
13 is at least major.minor.release.
3c4f71cc 14
8af7f7c1
BP
15 For example, to test if the program is compiled with wxWidgets 2.2 or
16 higher, the following can be done:
3c4f71cc 17
8af7f7c1
BP
18 @code
19 wxString s;
20 #if wxCHECK_VERSION(2, 2, 0)
21 if ( s.StartsWith("foo") )
22 #else // replacement code for old version
23 if ( strncmp(s, "foo", 3) == 0 )
24 #endif
25 {
26 ...
27 }
28 @endcode
9579c1d7
BP
29
30 @header{wx/version.h}
8af7f7c1
BP
31*/
32#define wxCHECK_VERSION( major, minor, release )
33
34/**
35 Same as wxCHECK_VERSION() but also checks that wxSUBRELEASE_NUMBER is at
36 least subrel.
9579c1d7
BP
37
38 @header{wx/version.h}
8af7f7c1
BP
39*/
40#define wxCHECK_VERSION_FULL( major, minor, release, subrel )
41
42//@}
43