Release 980301
[wine] / include / commctrl.h
1 /*
2  * Common controls definitions
3  */
4
5 #ifndef __WINE_COMMCTRL_H
6 #define __WINE_COMMCTRL_H
7
8 #include "windows.h"
9
10 void WINAPI InitCommonControls(void);
11
12 /* StatusWindow */
13
14 #define STATUSCLASSNAME16     "msctls_statusbar"
15 #define STATUSCLASSNAME32A    "msctls_statusbar32"
16 #define STATUSCLASSNAME32W   L"msctls_statusbar32"       /*FIXME*/
17 #define STATUSCLASSNAME WINELIB_NAME_AW(STATUSCLASSNAME)
18
19 #define SB_SETTEXT32A         (WM_USER+1)
20 #define SB_SETTEXT32W         (WM_USER+11)
21 #define SB_SETTEXT WINELIB_NAME_AW(SB_SETTEXT)
22 #define SB_GETTEXT32A         (WM_USER+2)
23 #define SB_GETTEXT32W         (WM_USER+13)
24 #define SB_GETTEXT WINELIB_NAME_AW(SB_GETTEXT)
25 #define SB_GETTEXTLENGTH32A   (WM_USER+3)
26 #define SB_GETTEXTLENGTH32W   (WM_USER+12)
27 #define SB_GETTEXTLENGTH WINELIB_NAME_AW(SB_GETTEXTLENGTH)
28
29 #define SB_SETPARTS           (WM_USER+4)
30 #define SB_GETPARTS           (WM_USER+6)
31 #define SB_GETBORDERS         (WM_USER+7)
32 #define SB_SETMINHEIGHT       (WM_USER+8)
33 #define SB_SIMPLE             (WM_USER+9)
34 #define SB_GETRECT            (WM_USER+10)
35
36 #define SBT_NOBORDERS         0x0100
37 #define SBT_POPOUT            0x0200
38 #define SBT_RTLREADING        0x0400
39 #define SBT_OWNERDRAW         0x1000
40
41 #define CCS_BOTTOM            0x0003
42 #define SBARS_SIZEGRIP        0x0100
43
44 /* UpDown */
45
46 #define UPDOWN_CLASS16        "msctls_updown"
47 #define UPDOWN_CLASS32A       "msctls_updown32"
48 #define UPDOWN_CLASS32W      L"msctls_updown32"   /*FIXME*/
49 #define UPDOWN_CLASS          WINELIB_NAME_AW(UPDOWN_CLASS)
50
51 typedef struct tagUDACCEL
52 {
53   UINT32 nSec;
54   UINT32 nInc;
55 } UDACCEL;
56
57 #define UD_MAXVAL          0x7fff
58 #define UD_MINVAL          0x8001
59
60 #define UDS_WRAP           0x0001
61 #define UDS_SETBUDDYINT    0x0002
62 #define UDS_ALIGNRIGHT     0x0004
63 #define UDS_ALIGNLEFT      0x0008
64 #define UDS_AUTOBUDDY      0x0010
65 #define UDS_ARROWKEYS      0x0020
66 #define UDS_HORZ           0x0040
67 #define UDS_NOTHOUSANDS    0x0080
68
69 #define UDN_FIRST          (0U-721)
70 #define UDN_DELTAPOS       (UDN_FIRST-1)
71
72 #define UDM_SETRANGE       (WM_USER+101)
73 #define UDM_GETRANGE       (WM_USER+102)
74 #define UDM_SETPOS         (WM_USER+103)
75 #define UDM_GETPOS         (WM_USER+104)
76 #define UDM_SETBUDDY       (WM_USER+105)
77 #define UDM_GETBUDDY       (WM_USER+106)
78 #define UDM_SETACCEL       (WM_USER+107)
79 #define UDM_GETACCEL       (WM_USER+108)
80 #define UDM_SETBASE        (WM_USER+109)
81 #define UDM_GETBASE        (WM_USER+110)
82
83 /* Progress Bar */
84
85 #define PROGRESS_CLASS32A   "msctls_progress32"
86 #define PROGRESS_CLASS32W  L"msctls_progress32"
87 #define PROGRESS_CLASS16    "msctls_progress"
88
89 #define PROGRESS_CLASS      WINELIB_NAME_AW(PROGRESS_CLASS)
90
91 #define PBM_SETRANGE        (WM_USER+1)
92 #define PBM_SETPOS          (WM_USER+2)
93 #define PBM_DELTAPOS        (WM_USER+3)
94 #define PBM_SETSTEP         (WM_USER+4)
95 #define PBM_STEPIT          (WM_USER+5)
96  
97 /* Functions prototypes */
98
99 HWND16     WINAPI CreateStatusWindow16(INT16,LPCSTR,HWND16,UINT16);
100 HWND32     WINAPI CreateStatusWindow32A(INT32,LPCSTR,HWND32,UINT32);
101 HWND32     WINAPI CreateStatusWindow32W(INT32,LPCWSTR,HWND32,UINT32);
102 #define    CreateStatusWindow WINELIB_NAME_AW(CreateStatusWindow)
103 HWND32     WINAPI CreateUpDownControl(DWORD,INT32,INT32,INT32,INT32,
104                                       HWND32,INT32,HINSTANCE32,HWND32,
105                                       INT32,INT32,INT32);
106 VOID       WINAPI DrawStatusText16(HDC16,LPRECT16,LPCSTR,UINT16);
107 VOID       WINAPI DrawStatusText32A(HDC32,LPRECT32,LPCSTR,UINT32);
108 VOID       WINAPI DrawStatusText32W(HDC32,LPRECT32,LPCWSTR,UINT32);
109 #define    DrawStatusText WINELIB_NAME_AW(DrawStatusText)
110
111 #endif  /* __WINE_COMMCTRL_H */