1999-05-22 10:52:31 +00:00
|
|
|
/******************************************************************************
|
2002-05-31 23:06:46 +00:00
|
|
|
*
|
1999-05-22 10:52:31 +00:00
|
|
|
* Common definitions (resource ids and global variables)
|
|
|
|
*
|
|
|
|
* Copyright 1999 Thuy Nguyen
|
|
|
|
* Copyright 1999 Eric Kohl
|
2002-09-06 18:33:18 +00:00
|
|
|
* Copyright 2002 Dimitrie O. Paun
|
1999-05-22 10:52:31 +00:00
|
|
|
*
|
2002-03-09 23:29:33 +00: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
|
2006-05-18 12:49:52 +00:00
|
|
|
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
1999-05-22 10:52:31 +00:00
|
|
|
*/
|
|
|
|
|
2000-09-13 20:27:30 +00:00
|
|
|
#ifndef __WINE_COMCTL32_H
|
|
|
|
#define __WINE_COMCTL32_H
|
|
|
|
|
2003-09-05 23:08:26 +00: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 18:33:18 +00:00
|
|
|
#include "commctrl.h"
|
|
|
|
|
2011-05-13 14:34:26 +00:00
|
|
|
extern HMODULE COMCTL32_hModule DECLSPEC_HIDDEN;
|
|
|
|
extern HBRUSH COMCTL32_hPattern55AABrush DECLSPEC_HIDDEN;
|
1999-05-22 10:52:31 +00:00
|
|
|
|
|
|
|
/* Property sheet / Wizard */
|
|
|
|
#define IDD_PROPSHEET 1006
|
|
|
|
#define IDD_WIZARD 1020
|
|
|
|
|
|
|
|
#define IDC_TABCONTROL 12320
|
|
|
|
#define IDC_APPLY_BUTTON 12321
|
1999-09-19 12:14:38 +00:00
|
|
|
#define IDC_BACK_BUTTON 12323
|
|
|
|
#define IDC_NEXT_BUTTON 12324
|
|
|
|
#define IDC_FINISH_BUTTON 12325
|
|
|
|
#define IDC_SUNKEN_LINE 12326
|
2004-05-10 21:26:04 +00:00
|
|
|
#define IDC_SUNKEN_LINEHEADER 12327
|
1999-05-22 10:52:31 +00:00
|
|
|
|
1999-11-28 21:01:47 +00:00
|
|
|
#define IDS_CLOSE 4160
|
1999-05-22 10:52:31 +00: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 20:30:11 +00:00
|
|
|
#define IDS_SEPARATOR 1024
|
|
|
|
|
1999-07-31 13:10:46 +00: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
|
|
|
|
|
2000-10-15 00:24:48 +00:00
|
|
|
#define IDM_TODAY 4163
|
|
|
|
#define IDM_GOTODAY 4164
|
|
|
|
|
2002-09-17 18:30:07 +00:00
|
|
|
/* Treeview Checkboxes */
|
1999-11-28 19:50:01 +00:00
|
|
|
|
|
|
|
#define IDT_CHECK 401
|
|
|
|
|
2000-11-09 20:26:34 +00:00
|
|
|
|
2010-10-12 18:22:18 +00:00
|
|
|
/* Cursors */
|
|
|
|
#define IDC_MOVEBUTTON 102
|
|
|
|
#define IDC_COPY 104
|
2000-11-09 20:26:34 +00:00
|
|
|
#define IDC_DIVIDER 106
|
|
|
|
#define IDC_DIVIDEROPEN 107
|
|
|
|
|
|
|
|
|
2004-03-09 23:26:44 +00:00
|
|
|
/* DragList resources */
|
|
|
|
#define IDI_DRAGARROW 501
|
2002-09-17 18:30:07 +00:00
|
|
|
|
|
|
|
/* HOTKEY internal strings */
|
|
|
|
#define HKY_NONE 2048
|
|
|
|
|
2004-09-07 20:43:30 +00:00
|
|
|
/* Tooltip icons */
|
|
|
|
#define IDI_TT_INFO_SM 22
|
|
|
|
#define IDI_TT_WARN_SM 25
|
|
|
|
#define IDI_TT_ERROR_SM 28
|
|
|
|
|
2002-05-31 23:06:46 +00:00
|
|
|
typedef struct
|
2002-04-05 21:14:05 +00: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 */
|
2008-03-25 16:15:59 +00:00
|
|
|
COLORREF clrHotTrackingColor; /* COLOR_HOTLIGHT */
|
2002-04-05 21:14:05 +00:00
|
|
|
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;
|
|
|
|
|
2011-05-13 14:34:26 +00:00
|
|
|
extern COMCTL32_SysColor comctl32_color DECLSPEC_HIDDEN;
|
2000-11-09 20:26:34 +00:00
|
|
|
|
2000-09-13 20:27:30 +00:00
|
|
|
/* Internal function */
|
2011-05-13 14:34:26 +00:00
|
|
|
HWND COMCTL32_CreateToolTip (HWND) DECLSPEC_HIDDEN;
|
|
|
|
VOID COMCTL32_RefreshSysColors(void) DECLSPEC_HIDDEN;
|
|
|
|
void COMCTL32_DrawInsertMark(HDC hDC, const RECT *lpRect, COLORREF clrInsertMark, BOOL bHorizontal) DECLSPEC_HIDDEN;
|
|
|
|
void COMCTL32_EnsureBitmapSize(HBITMAP *pBitmap, int cxMinWidth, int cyMinHeight, COLORREF crBackground) DECLSPEC_HIDDEN;
|
|
|
|
void COMCTL32_GetFontMetrics(HFONT hFont, TEXTMETRICW *ptm) DECLSPEC_HIDDEN;
|
|
|
|
BOOL COMCTL32_IsReflectedMessage(UINT uMsg) DECLSPEC_HIDDEN;
|
|
|
|
INT Str_GetPtrWtoA (LPCWSTR lpSrc, LPSTR lpDest, INT nMaxLen) DECLSPEC_HIDDEN;
|
|
|
|
INT Str_GetPtrAtoW (LPCSTR lpSrc, LPWSTR lpDest, INT nMaxLen) DECLSPEC_HIDDEN;
|
|
|
|
BOOL Str_SetPtrAtoW (LPWSTR *lppDest, LPCSTR lpSrc) DECLSPEC_HIDDEN;
|
|
|
|
BOOL Str_SetPtrWtoA (LPSTR *lppDest, LPCWSTR lpSrc) DECLSPEC_HIDDEN;
|
2000-11-15 22:14:43 +00:00
|
|
|
|
2006-05-07 21:42:31 +00:00
|
|
|
#define COMCTL32_VERSION_MINOR 81
|
2000-09-13 20:27:30 +00:00
|
|
|
|
2002-10-02 20:01:01 +00:00
|
|
|
/* Our internal stack structure of the window procedures to subclass */
|
2004-08-22 22:29:37 +00:00
|
|
|
typedef struct _SUBCLASSPROCS {
|
|
|
|
SUBCLASSPROC subproc;
|
|
|
|
UINT_PTR id;
|
|
|
|
DWORD_PTR ref;
|
|
|
|
struct _SUBCLASSPROCS *next;
|
|
|
|
} SUBCLASSPROCS, *LPSUBCLASSPROCS;
|
|
|
|
|
2002-10-02 20:01:01 +00:00
|
|
|
typedef struct
|
|
|
|
{
|
2004-08-22 22:29:37 +00:00
|
|
|
SUBCLASSPROCS *SubclassProcs;
|
|
|
|
SUBCLASSPROCS *stackpos;
|
2002-10-02 20:01:01 +00:00
|
|
|
WNDPROC origproc;
|
2004-09-06 20:26:04 +00:00
|
|
|
int running;
|
2002-10-02 20:01:01 +00:00
|
|
|
} SUBCLASS_INFO, *LPSUBCLASS_INFO;
|
|
|
|
|
2003-09-17 22:42:04 +00:00
|
|
|
/* undocumented functions */
|
2003-09-17 20:15:21 +00:00
|
|
|
|
2008-09-04 11:39:58 +00:00
|
|
|
LPVOID WINAPI Alloc (DWORD) __WINE_ALLOC_SIZE(1);
|
|
|
|
LPVOID WINAPI ReAlloc (LPVOID, DWORD) __WINE_ALLOC_SIZE(2);
|
2003-09-17 22:42:04 +00:00
|
|
|
BOOL WINAPI Free (LPVOID);
|
|
|
|
DWORD WINAPI GetSize (LPVOID);
|
2003-09-17 20:15:21 +00:00
|
|
|
|
|
|
|
INT WINAPI Str_GetPtrA (LPCSTR, LPSTR, INT);
|
|
|
|
INT WINAPI Str_GetPtrW (LPCWSTR, LPWSTR, INT);
|
|
|
|
|
2004-10-19 22:59:59 +00:00
|
|
|
LRESULT WINAPI SetPathWordBreakProc(HWND hwnd, BOOL bSet);
|
|
|
|
BOOL WINAPI MirrorIcon(HICON *phicon1, HICON *phicon2);
|
|
|
|
|
2011-05-13 14:34:26 +00:00
|
|
|
extern void ANIMATE_Register(void) DECLSPEC_HIDDEN;
|
|
|
|
extern void ANIMATE_Unregister(void) DECLSPEC_HIDDEN;
|
|
|
|
extern void COMBOEX_Register(void) DECLSPEC_HIDDEN;
|
|
|
|
extern void COMBOEX_Unregister(void) DECLSPEC_HIDDEN;
|
|
|
|
extern void DATETIME_Register(void) DECLSPEC_HIDDEN;
|
|
|
|
extern void DATETIME_Unregister(void) DECLSPEC_HIDDEN;
|
|
|
|
extern void FLATSB_Register(void) DECLSPEC_HIDDEN;
|
|
|
|
extern void FLATSB_Unregister(void) DECLSPEC_HIDDEN;
|
|
|
|
extern void HEADER_Register(void) DECLSPEC_HIDDEN;
|
|
|
|
extern void HEADER_Unregister(void) DECLSPEC_HIDDEN;
|
|
|
|
extern void HOTKEY_Register(void) DECLSPEC_HIDDEN;
|
|
|
|
extern void HOTKEY_Unregister(void) DECLSPEC_HIDDEN;
|
|
|
|
extern void IPADDRESS_Register(void) DECLSPEC_HIDDEN;
|
|
|
|
extern void IPADDRESS_Unregister(void) DECLSPEC_HIDDEN;
|
|
|
|
extern void LISTVIEW_Register(void) DECLSPEC_HIDDEN;
|
|
|
|
extern void LISTVIEW_Unregister(void) DECLSPEC_HIDDEN;
|
|
|
|
extern void MONTHCAL_Register(void) DECLSPEC_HIDDEN;
|
|
|
|
extern void MONTHCAL_Unregister(void) DECLSPEC_HIDDEN;
|
|
|
|
extern void NATIVEFONT_Register(void) DECLSPEC_HIDDEN;
|
|
|
|
extern void NATIVEFONT_Unregister(void) DECLSPEC_HIDDEN;
|
|
|
|
extern void PAGER_Register(void) DECLSPEC_HIDDEN;
|
|
|
|
extern void PAGER_Unregister(void) DECLSPEC_HIDDEN;
|
|
|
|
extern void PROGRESS_Register(void) DECLSPEC_HIDDEN;
|
|
|
|
extern void PROGRESS_Unregister(void) DECLSPEC_HIDDEN;
|
|
|
|
extern void REBAR_Register(void) DECLSPEC_HIDDEN;
|
|
|
|
extern void REBAR_Unregister(void) DECLSPEC_HIDDEN;
|
|
|
|
extern void STATUS_Register(void) DECLSPEC_HIDDEN;
|
|
|
|
extern void STATUS_Unregister(void) DECLSPEC_HIDDEN;
|
|
|
|
extern void SYSLINK_Register(void) DECLSPEC_HIDDEN;
|
|
|
|
extern void SYSLINK_Unregister(void) DECLSPEC_HIDDEN;
|
|
|
|
extern void TAB_Register(void) DECLSPEC_HIDDEN;
|
|
|
|
extern void TAB_Unregister(void) DECLSPEC_HIDDEN;
|
|
|
|
extern void TOOLBAR_Register(void) DECLSPEC_HIDDEN;
|
|
|
|
extern void TOOLBAR_Unregister(void) DECLSPEC_HIDDEN;
|
|
|
|
extern void TOOLTIPS_Register(void) DECLSPEC_HIDDEN;
|
|
|
|
extern void TOOLTIPS_Unregister(void) DECLSPEC_HIDDEN;
|
|
|
|
extern void TRACKBAR_Register(void) DECLSPEC_HIDDEN;
|
|
|
|
extern void TRACKBAR_Unregister(void) DECLSPEC_HIDDEN;
|
|
|
|
extern void TREEVIEW_Register(void) DECLSPEC_HIDDEN;
|
|
|
|
extern void TREEVIEW_Unregister(void) DECLSPEC_HIDDEN;
|
|
|
|
extern void UPDOWN_Register(void) DECLSPEC_HIDDEN;
|
|
|
|
extern void UPDOWN_Unregister(void) DECLSPEC_HIDDEN;
|
|
|
|
|
|
|
|
|
|
|
|
int MONTHCAL_MonthLength(int month, int year) DECLSPEC_HIDDEN;
|
|
|
|
int MONTHCAL_CalculateDayOfWeek(SYSTEMTIME *date, BOOL inplace) DECLSPEC_HIDDEN;
|
2012-03-08 11:34:13 +00:00
|
|
|
LONG MONTHCAL_CompareSystemTime(const SYSTEMTIME *first, const SYSTEMTIME *second) DECLSPEC_HIDDEN;
|
2011-05-13 14:34:26 +00:00
|
|
|
|
|
|
|
extern void THEMING_Initialize(void) DECLSPEC_HIDDEN;
|
|
|
|
extern void THEMING_Uninitialize(void) DECLSPEC_HIDDEN;
|
|
|
|
extern LRESULT THEMING_CallOriginalClass(HWND, UINT, WPARAM, LPARAM) DECLSPEC_HIDDEN;
|
|
|
|
extern void THEMING_SetSubclassData(HWND, ULONG_PTR) DECLSPEC_HIDDEN;
|
2005-07-27 10:54:49 +00:00
|
|
|
|
2000-09-13 20:27:30 +00:00
|
|
|
#endif /* __WINE_COMCTL32_H */
|