]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/defs.h
file which undefs symbols ocnflicting with windows.h
[wxWidgets.git] / include / wx / defs.h
index eeca285224cfe1ab0a9309e55e86b13ebdd01be0..55deb62757b3e9f2d90fe5100bff67d6fc6d9978 100644 (file)
 
 typedef unsigned char wxByte;
 typedef short int WXTYPE;
+
+// 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
+// (or else they would be always different!). Usign wxGetWindowId() which does
+// the cast itself is recommended. Note that this type can't be unsigned
+// because -1 is a valid (and largely used) value for window id.
 typedef int wxWindowID;
 
 // Macro to cut down on compiler warnings.