+#endif // wxUSE_RICHEDIT
+
+// ----------------------------------------------------------------------------
+// ToolBar
+// ----------------------------------------------------------------------------
+
+#if wxUSE_TOOLBAR
+
+#if !defined(TBIF_SIZE)
+
+#define TBIF_SIZE 64
+#define TB_SETBUTTONINFO (WM_USER+66)
+
+typedef struct {
+ UINT cbSize;
+ DWORD dwMask;
+ int idCommand;
+ int iImage;
+ BYTE fsState;
+ BYTE fsStyle;
+ WORD cx;
+ DWORD lParam;
+ LPTSTR pszText;
+ int cchText;
+} TBBUTTONINFO, *LPTBBUTTONINFO;
+
+#endif // !defined(TBIF_SIZE)
+
+#endif // wxUSE_TOOLBAR
+
+// ----------------------------------------------------------------------------
+// Tree control
+// ----------------------------------------------------------------------------
+
+#ifndef TVIS_FOCUSED
+ #define TVIS_FOCUSED 0x0001
+#endif
+
+#ifndef TV_FIRST
+ #define TV_FIRST 0x1100
+#endif
+
+#ifndef TVS_CHECKBOXES
+ #define TVS_CHECKBOXES 0x0100
+#endif
+
+#ifndef TVS_FULLROWSELECT
+ #define TVS_FULLROWSELECT 0x1000
+#endif
+
+#ifndef TVM_SETBKCOLOR
+ #define TVM_SETBKCOLOR (TV_FIRST + 29)
+ #define TVM_SETTEXTCOLOR (TV_FIRST + 30)
+#endif
+
+#ifndef TVS_INFOTIP
+ #define TVS_INFOTIP 2048
+#endif
+
+#ifndef TVN_GETINFOTIPA
+ #define TVN_GETINFOTIPA (TVN_FIRST-13)
+ #define TVN_GETINFOTIPW (TVN_FIRST-14)
+#endif
+
+#ifndef TVN_GETINFOTIP
+ #ifdef UNICODE
+ #define TVN_GETINFOTIP TVN_GETINFOTIPW
+ #else
+ #define TVN_GETINFOTIP TVN_GETINFOTIPA
+ #endif
+#endif
+
+#if !defined(NMTVGETINFOTIP) && defined(TVN_FIRST)
+ // NB: Check for TVN_FIRST is done so that this code is not included if
+ // <commctrl.h> (which defined HTREEITEM) wasn't included before.
+ struct NMTVGETINFOTIPA
+ {
+ NMHDR hdr;
+ LPSTR pszText;
+ int cchTextMax;
+ HTREEITEM hItem;
+ LPARAM lParam;
+ };
+ struct NMTVGETINFOTIPW
+ {
+ NMHDR hdr;
+ LPWSTR pszText;
+ int cchTextMax;
+ HTREEITEM hItem;
+ LPARAM lParam;
+ };
+ #ifdef UNICODE
+ #define NMTVGETINFOTIP NMTVGETINFOTIPW
+ #else
+ #define NMTVGETINFOTIP NMTVGETINFOTIPA
+ #endif