define BTNS_... constants

"Martin Fuchs" <[email protected]> Tue, 19 Aug 2003 23:52:07 +0100
Newsgroups gmane.comp.gnu.mingw.patches
Message-ID <[email protected]>
2003-08-20  Martin Fuchs  <[email protected]>

	* include/commctrl.h (BTNS_*):
	Define BTNS_* as successors to the older TBSTYLE_* constants.


For the documentation look at:

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/shellcc/platform/commctls/toolbar/styles.asp


Index: commctrl.h
===================================================================
RCS file: /cvs/src/src/winsup/w32api/include/commctrl.h,v
retrieving revision 1.38
diff -u -p -d -r1.38 commctrl.h
--- commctrl.h	18 Aug 2003 09:43:24 -0000	1.38
+++ commctrl.h	19 Aug 2003 22:53:56 -0000
@@ -382,6 +382,23 @@ extern "C" {
 #define TBSTYLE_TRANSPARENT	0x8000
 #define TBSTYLE_EX_DRAWDDARROWS	0x00000001
 #endif /* _WIN32_IE >= 0x0400 */
+
+#if _WIN32_IE>=0x0500
+#define BTNS_BUTTON TBSTYLE_BUTTON
+#define BTNS_SEP TBSTYLE_SEP
+#define BTNS_CHECK TBSTYLE_CHECK
+#define BTNS_GROUP TBSTYLE_GROUP
+#define BTNS_CHECKGROUP TBSTYLE_CHECKGROUP
+#define BTNS_DROPDOWN TBSTYLE_DROPDOWN
+#define BTNS_AUTOSIZE TBSTYLE_AUTOSIZE
+#define BTNS_NOPREFIX TBSTYLE_NOPREFIX
+#define BTNS_WHOLEDROPDOWN 0x0080
+#endif
+
+#if _WIN32_IE>=_IE5
+#define BTNS_SHOWTEXT 0x0040
+#endif
+
 #define HINST_COMMCTRL	((HINSTANCE)-1)
 #define IDB_STD_SMALL_COLOR	0
 #define IDB_STD_LARGE_COLOR	1



-------------------------------------------------------
This SF.net email is sponsored by Dice.com.
Did you know that Dice has over 25,000 tech jobs available today? From
careers in IT to Engineering to Tech Sales, Dice has tech jobs from the
best hiring companies. http://www.dice.com/index.epl?rel_code4