Replace out of date comment before wx/windowid.h inclusion
No real changes, just remove the nonsensical comment from wx/defs.h which
completely lost its meaning since wxWindowID typedef was replaced by a class 8
years ago in cf2810aa39
.
This commit is contained in:
@@ -2320,14 +2320,17 @@ enum wxStandardID
|
|||||||
};
|
};
|
||||||
|
|
||||||
/* ---------------------------------------------------------------------------- */
|
/* ---------------------------------------------------------------------------- */
|
||||||
/* wxWindowID type (after wxID_XYZ enum, platform detection, and dlimpexp.h) */
|
/* wxWindowID type */
|
||||||
/* ---------------------------------------------------------------------------- */
|
/* ---------------------------------------------------------------------------- */
|
||||||
|
|
||||||
/* special care should be taken with this type under Windows where the real */
|
/*
|
||||||
/* window id is unsigned, so we must always do the cast before comparing them */
|
* wxWindowID used to be just a typedef defined here, now it's a class, but we
|
||||||
/* (or else they would be always different!). Using wxGetWindowId() which does */
|
* still continue to define it here for compatibility, so that the code using
|
||||||
/* the cast itself is recommended. Note that this type can't be unsigned */
|
* it continues to compile even if it includes just wx/defs.h.
|
||||||
/* because wxID_ANY == -1 is a valid (and largely used) value for window id. */
|
*
|
||||||
|
* Notice that wx/windowid.h can only be included after wxID_XYZ definitions
|
||||||
|
* (as it uses them).
|
||||||
|
*/
|
||||||
#if defined(__cplusplus) && wxUSE_GUI
|
#if defined(__cplusplus) && wxUSE_GUI
|
||||||
#include "wx/windowid.h"
|
#include "wx/windowid.h"
|
||||||
#endif
|
#endif
|
||||||
|
Reference in New Issue
Block a user