1999-05-22 12:52:31 +02:00
|
|
|
/******************************************************************************
|
2002-06-01 01:06:46 +02:00
|
|
|
*
|
1999-05-22 12:52:31 +02:00
|
|
|
* Common definitions (resource ids and global variables)
|
|
|
|
*
|
|
|
|
* Copyright 1999 Thuy Nguyen
|
|
|
|
* Copyright 1999 Eric Kohl
|
2002-09-06 20:33:18 +02:00
|
|
|
* Copyright 2002 Dimitrie O. Paun
|
1999-05-22 12:52:31 +02:00
|
|
|
*
|
2002-03-10 00:29:33 +01:00
|
|
|
* This library is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
|
|
* License as published by the Free Software Foundation; either
|
|
|
|
* version 2.1 of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This library is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
* Lesser General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
|
|
* License along with this library; if not, write to the Free Software
|
|
|
|
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
1999-05-22 12:52:31 +02:00
|
|
|
*/
|
|
|
|
|
2000-09-13 22:27:30 +02:00
|
|
|
#ifndef __WINE_COMCTL32_H
|
|
|
|
#define __WINE_COMCTL32_H
|
|
|
|
|
2003-09-06 01:08:26 +02:00
|
|
|
#ifndef RC_INVOKED
|
|
|
|
#include <stdarg.h>
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#include "windef.h"
|
|
|
|
#include "winbase.h"
|
|
|
|
#include "wingdi.h"
|
|
|
|
#include "winuser.h"
|
|
|
|
#include "winnls.h"
|
2002-09-06 20:33:18 +02:00
|
|
|
#include "commctrl.h"
|
|
|
|
|
1999-05-22 12:52:31 +02:00
|
|
|
extern HMODULE COMCTL32_hModule;
|
2000-11-25 02:27:42 +01:00
|
|
|
extern HBRUSH COMCTL32_hPattern55AABrush;
|
1999-05-22 12:52:31 +02:00
|
|
|
|
|
|
|
/* Property sheet / Wizard */
|
|
|
|
#define IDD_PROPSHEET 1006
|
|
|
|
#define IDD_WIZARD 1020
|
|
|
|
|
|
|
|
#define IDC_TABCONTROL 12320
|
|
|
|
#define IDC_APPLY_BUTTON 12321
|
1999-09-19 14:14:38 +02:00
|
|
|
#define IDC_BACK_BUTTON 12323
|
|
|
|
#define IDC_NEXT_BUTTON 12324
|
|
|
|
#define IDC_FINISH_BUTTON 12325
|
|
|
|
#define IDC_SUNKEN_LINE 12326
|
1999-05-22 12:52:31 +02:00
|
|
|
|
1999-11-28 22:01:47 +01:00
|
|
|
#define IDS_CLOSE 4160
|
1999-05-22 12:52:31 +02:00
|
|
|
|
|
|
|
/* Toolbar customization dialog */
|
|
|
|
#define IDD_TBCUSTOMIZE 200
|
|
|
|
|
|
|
|
#define IDC_AVAILBTN_LBOX 201
|
|
|
|
#define IDC_RESET_BTN 202
|
|
|
|
#define IDC_TOOLBARBTN_LBOX 203
|
|
|
|
#define IDC_REMOVE_BTN 204
|
|
|
|
#define IDC_HELP_BTN 205
|
|
|
|
#define IDC_MOVEUP_BTN 206
|
|
|
|
#define IDC_MOVEDN_BTN 207
|
|
|
|
|
2000-11-07 21:30:11 +01:00
|
|
|
#define IDS_SEPARATOR 1024
|
|
|
|
|
1999-07-31 15:10:46 +02:00
|
|
|
/* Toolbar imagelist bitmaps */
|
|
|
|
#define IDB_STD_SMALL 120
|
|
|
|
#define IDB_STD_LARGE 121
|
|
|
|
#define IDB_VIEW_SMALL 124
|
|
|
|
#define IDB_VIEW_LARGE 125
|
|
|
|
#define IDB_HIST_SMALL 130
|
|
|
|
#define IDB_HIST_LARGE 131
|
|
|
|
|
|
|
|
|
1999-07-10 14:00:04 +02:00
|
|
|
/* Month calendar month menu popup */
|
|
|
|
#define IDD_MCMONTHMENU 300
|
|
|
|
|
|
|
|
#define IDM_JAN 301
|
|
|
|
#define IDM_FEB 302
|
|
|
|
#define IDM_MAR 303
|
|
|
|
#define IDM_APR 304
|
|
|
|
#define IDM_MAY 305
|
|
|
|
#define IDM_JUN 306
|
|
|
|
#define IDM_JUL 307
|
|
|
|
#define IDM_AUG 308
|
|
|
|
#define IDM_SEP 309
|
|
|
|
#define IDM_OCT 310
|
|
|
|
#define IDM_NOV 311
|
1999-07-31 15:10:46 +02:00
|
|
|
#define IDM_DEC 312
|
1999-11-28 20:50:01 +01:00
|
|
|
|
2000-10-15 02:24:48 +02:00
|
|
|
#define IDM_TODAY 4163
|
|
|
|
#define IDM_GOTODAY 4164
|
|
|
|
|
2002-09-17 20:30:07 +02:00
|
|
|
/* Treeview Checkboxes */
|
1999-11-28 20:50:01 +01:00
|
|
|
|
|
|
|
#define IDT_CHECK 401
|
|
|
|
|
2000-11-09 21:26:34 +01:00
|
|
|
|
|
|
|
/* Header cursors */
|
|
|
|
#define IDC_DIVIDER 106
|
|
|
|
#define IDC_DIVIDEROPEN 107
|
|
|
|
|
|
|
|
|
2004-03-10 00:26:44 +01:00
|
|
|
/* DragList resources */
|
|
|
|
#define IDI_DRAGARROW 501
|
|
|
|
#define IDC_COPY 502
|
2000-11-09 21:26:34 +01:00
|
|
|
|
2004-03-24 00:04:08 +01:00
|
|
|
#define IDC_MOVEBUTTON 1
|
2002-09-17 20:30:07 +02:00
|
|
|
|
|
|
|
/* HOTKEY internal strings */
|
|
|
|
#define HKY_NONE 2048
|
|
|
|
|
2002-06-01 01:06:46 +02:00
|
|
|
typedef struct
|
2002-04-05 23:14:05 +02:00
|
|
|
{
|
|
|
|
COLORREF clrBtnHighlight; /* COLOR_BTNHIGHLIGHT */
|
|
|
|
COLORREF clrBtnShadow; /* COLOR_BTNSHADOW */
|
|
|
|
COLORREF clrBtnText; /* COLOR_BTNTEXT */
|
|
|
|
COLORREF clrBtnFace; /* COLOR_BTNFACE */
|
|
|
|
COLORREF clrHighlight; /* COLOR_HIGHLIGHT */
|
|
|
|
COLORREF clrHighlightText; /* COLOR_HIGHLIGHTTEXT */
|
|
|
|
COLORREF clr3dHilight; /* COLOR_3DHILIGHT */
|
|
|
|
COLORREF clr3dShadow; /* COLOR_3DSHADOW */
|
|
|
|
COLORREF clr3dDkShadow; /* COLOR_3DDKSHADOW */
|
|
|
|
COLORREF clr3dFace; /* COLOR_3DFACE */
|
|
|
|
COLORREF clrWindow; /* COLOR_WINDOW */
|
|
|
|
COLORREF clrWindowText; /* COLOR_WINDOWTEXT */
|
|
|
|
COLORREF clrGrayText; /* COLOR_GREYTEXT */
|
|
|
|
COLORREF clrActiveCaption; /* COLOR_ACTIVECAPTION */
|
|
|
|
COLORREF clrInfoBk; /* COLOR_INFOBK */
|
|
|
|
COLORREF clrInfoText; /* COLOR_INFOTEXT */
|
|
|
|
} COMCTL32_SysColor;
|
|
|
|
|
|
|
|
extern COMCTL32_SysColor comctl32_color;
|
2000-11-09 21:26:34 +01:00
|
|
|
|
2000-09-13 22:27:30 +02:00
|
|
|
/* Internal function */
|
|
|
|
HWND COMCTL32_CreateToolTip (HWND);
|
2002-04-05 23:14:05 +02:00
|
|
|
VOID COMCTL32_RefreshSysColors(void);
|
2000-11-15 23:14:43 +01:00
|
|
|
INT Str_GetPtrWtoA (LPCWSTR lpSrc, LPSTR lpDest, INT nMaxLen);
|
|
|
|
BOOL Str_SetPtrAtoW (LPWSTR *lppDest, LPCSTR lpSrc);
|
|
|
|
|
2003-09-04 02:04:16 +02:00
|
|
|
#define COMCTL32_VERSION_MINOR 80
|
2001-03-16 17:50:24 +01:00
|
|
|
#define WINE_FILEVERSION 5, COMCTL32_VERSION_MINOR, 0, 0
|
2003-09-04 02:04:16 +02:00
|
|
|
#define WINE_FILEVERSIONSTR "5.80"
|
2000-09-13 22:27:30 +02:00
|
|
|
|
2002-10-02 22:01:01 +02:00
|
|
|
/* Our internal stack structure of the window procedures to subclass */
|
|
|
|
typedef struct
|
|
|
|
{
|
|
|
|
struct {
|
|
|
|
SUBCLASSPROC subproc;
|
|
|
|
UINT_PTR id;
|
|
|
|
DWORD_PTR ref;
|
|
|
|
} SubclassProcs[31];
|
|
|
|
int stackpos;
|
|
|
|
int stacknum;
|
|
|
|
int stacknew;
|
|
|
|
WNDPROC origproc;
|
|
|
|
} SUBCLASS_INFO, *LPSUBCLASS_INFO;
|
|
|
|
|
2003-09-18 00:42:04 +02:00
|
|
|
/* undocumented functions */
|
2003-09-17 22:15:21 +02:00
|
|
|
|
2003-09-18 00:42:04 +02:00
|
|
|
LPVOID WINAPI Alloc (DWORD);
|
|
|
|
LPVOID WINAPI ReAlloc (LPVOID, DWORD);
|
|
|
|
BOOL WINAPI Free (LPVOID);
|
|
|
|
DWORD WINAPI GetSize (LPVOID);
|
2003-09-17 22:15:21 +02:00
|
|
|
|
|
|
|
INT WINAPI Str_GetPtrA (LPCSTR, LPSTR, INT);
|
|
|
|
INT WINAPI Str_GetPtrW (LPCWSTR, LPWSTR, INT);
|
|
|
|
|
|
|
|
INT WINAPI DPA_GetPtrIndex (const HDPA, LPVOID);
|
|
|
|
BOOL WINAPI DPA_Grow (const HDPA, INT);
|
|
|
|
|
|
|
|
#define DPAM_NOSORT 0x0001
|
|
|
|
#define DPAM_INSERT 0x0004
|
|
|
|
#define DPAM_DELETE 0x0008
|
|
|
|
|
|
|
|
typedef PVOID (CALLBACK *PFNDPAMERGE)(DWORD,PVOID,PVOID,LPARAM);
|
|
|
|
BOOL WINAPI DPA_Merge (const HDPA, const HDPA, DWORD, PFNDPACOMPARE, PFNDPAMERGE, LPARAM);
|
|
|
|
|
|
|
|
#define DPA_GetPtrCount(hdpa) (*(INT*)(hdpa))
|
|
|
|
|
2000-09-13 22:27:30 +02:00
|
|
|
#endif /* __WINE_COMCTL32_H */
|