Ignore:
Timestamp:
May 8, 2002, 1:26:30 PM (23 years ago)
Author:
sandervl
Message:

merge with latest Wine

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/comctl32/comctl32.h

    r7815 r8382  
    1 /* $Id: comctl32.h,v 1.21 2002-02-06 17:23:18 sandervl Exp $ */
    2 /*
    3  * Win32 common controls implementation
     1/******************************************************************************
     2 *
     3 * Common definitions (resource ids and global variables)
    44 *
    5  * Copyright (C) 1999 Achim Hasenmueller
     5 * Copyright 1999 Thuy Nguyen
     6 * Copyright 1999 Eric Kohl
    67 *
    7  * Based on the work of the WINE group (www.winehq.com)
     8 * This library is free software; you can redistribute it and/or
     9 * modify it under the terms of the GNU Lesser General Public
     10 * License as published by the Free Software Foundation; either
     11 * version 2.1 of the License, or (at your option) any later version.
    812 *
     13 * This library is distributed in the hope that it will be useful,
     14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
     15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
     16 * Lesser General Public License for more details.
    917 *
    10  * Project Odin Software License can be found in LICENSE.TXT
    11  *
     18 * You should have received a copy of the GNU Lesser General Public
     19 * License along with this library; if not, write to the Free Software
     20 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
    1221 */
    1322
    14 /* Status: Corel WINE 20000807 */
    15 
    16 #ifndef _H_COMCTL32
    17 #define _H_COMCTL32
    18 
    19 #include "winbase.h"
    20 #include "wingdi.h"
    21 #include "winuser.h"
    22 #include <win/commctrl.h>
    23 #include "unicode.h"
    24 
    25 #define _OS2WIN_H
    26 #define NO_ULONG
    27 #include <misc.h>
    28 
    29 #ifndef __cplusplus
    30 #undef inline
    31 #define inline
    32 #endif
    33 
    34 extern HBRUSH  COMCTL32_hPattern55AABrush;
    35 
    36 #ifdef __cplusplus
    37 extern "C" {
    38 #endif
    39 
    40 /* registers window classes inside this DLL */
    41 void CDECL RegisterCOMCTL32WindowClasses(unsigned long hinstDLL);
    42 void CDECL UnregisterCOMCTL32WindowClasses(void);
    43 #ifdef __cplusplus
    44 }
    45 #endif
    46 
    47 // string functions from kernel32
    48 LPWSTR WIN32API HEAP_strdupAtoW( HANDLE heap, DWORD flags, LPCSTR str );
    49 LPSTR  WIN32API HEAP_strdupWtoA( HANDLE heap, DWORD flags, LPCWSTR str );
    50 
    51 
    52 /**************************************************************************
    53  *  UNDOCUMENTED functions
    54  */
    55 
    56 /* private heap memory functions */
    57 
    58 LPVOID WINAPI COMCTL32_Alloc (DWORD);
    59 LPVOID WINAPI COMCTL32_ReAlloc (LPVOID, DWORD);
    60 BOOL WINAPI COMCTL32_Free (LPVOID);
    61 DWORD  WINAPI COMCTL32_GetSize (LPVOID);
    62 
     23#ifndef __WINE_COMCTL32_H
     24#define __WINE_COMCTL32_H
    6325
    6426extern HMODULE COMCTL32_hModule;
     27extern HBRUSH  COMCTL32_hPattern55AABrush;
    6528
    6629/* Property sheet / Wizard */
     
    7538#define IDC_SUNKEN_LINE   12326
    7639
    77 #define IDS_CLOSE 4160
     40#define IDS_CLOSE        4160
    7841
    7942/* Toolbar customization dialog */
     
    9861#define IDB_HIST_LARGE      131
    9962
    100 //direction bitmaps
    101 #define IDB_DIRECTION_ALL   132
    102 #define IDB_DIRECTION_NS    133
    103 #define IDB_DIRECTION WE    134
    104 
    105 //Header filter bitmap
    106 #define IDB_HEADER_FILTER   140
    107 
    108 //cursors
    109 #define IDC_COMCTL32_ERROR       20480
    110 #define IDC_COMCTL32_INFORMATION 20481
    111 #define IDC_COMCTL32_EXCLAMATION 20482
    112 
    113 #define IDC_COMCTL32_DRAGRECT      102
    114 #define IDC_COMCTL32_ARROW1        104
    115 #define IDC_COMCTL32_ARROW2        105
    116 #define IDC_COMCTL32_DRAGHLINE     106
    117 #define IDC_COMCTL32_SPLITHLINE    107
    118 #define IDC_COMCTL32_HAND          108
    119 #define IDC_COMCTL32_DIRECTION_NS  109
    120 #define IDC_COMCTL32_DIRECTION_WE  110
    121 #define IDC_COMCTL32_DIRECTION_ALL 111
    122 #define IDC_COMCTL32_DIRECTION_N   112
    123 #define IDC_COMCTL32_DIRECTION_S   113
    124 #define IDC_COMCTL32_DIRECTION_E   114
    125 #define IDC_COMCTL32_DIRECTION_W   115
    126 #define IDC_COMCTL32_DIRECTION_NE  116
    127 #define IDC_COMCTL32_DIRECTION_NW  117
    128 #define IDC_COMCTL32_DIRECTION_SE  118
    129 #define IDC_COMCTL32_DIRECTION_SW  119
    130 
    131 #define IDC_COMCTL32_SPLITVLINE    135
    132 #define IDC_COMCTL32_ENTER         150
    13363
    13464/* Month calendar month menu popup */
    13565#define IDD_MCMONTHMENU     300
    13666
    137 #define IDM_JAN                         301
    138 #define IDM_FEB                         302
    139 #define IDM_MAR                         303
    140 #define IDM_APR                         304
    141 #define IDM_MAY                         305
    142 #define IDM_JUN                         306
    143 #define IDM_JUL                         307
    144 #define IDM_AUG                         308
    145 #define IDM_SEP                         309
    146 #define IDM_OCT                         310
    147 #define IDM_NOV                         311
    148 #define IDM_DEC                         312
     67#define IDM_JAN                         301
     68#define IDM_FEB                         302
     69#define IDM_MAR                         303
     70#define IDM_APR                         304
     71#define IDM_MAY                         305
     72#define IDM_JUN                         306
     73#define IDM_JUL                         307
     74#define IDM_AUG                         308
     75#define IDM_SEP                         309
     76#define IDM_OCT                         310
     77#define IDM_NOV                         311
     78#define IDM_DEC                         312
    14979
    15080#define IDM_TODAY                      4163
     
    16090#define IDC_DIVIDEROPEN                 107
    16191
     92#ifdef __WIN32OS2__
     93/* Header filter bitmap */
     94#define IDB_HEADER_FILTER   140
     95
     96#define IDC_COMCTL32_DRAGHLINE     106
     97#define IDC_COMCTL32_SPLITHLINE    107
     98
     99#endif
    162100
    163101/* DragList icon */
    164102#define IDI_DRAGARROW                   150
     103
     104typedef struct
     105{
     106    COLORREF clrBtnHighlight;       /* COLOR_BTNHIGHLIGHT                  */
     107    COLORREF clrBtnShadow;          /* COLOR_BTNSHADOW                     */
     108    COLORREF clrBtnText;            /* COLOR_BTNTEXT                       */
     109    COLORREF clrBtnFace;            /* COLOR_BTNFACE                       */
     110    COLORREF clrHighlight;          /* COLOR_HIGHLIGHT                     */
     111    COLORREF clrHighlightText;      /* COLOR_HIGHLIGHTTEXT                 */
     112    COLORREF clr3dHilight;          /* COLOR_3DHILIGHT                     */
     113    COLORREF clr3dShadow;           /* COLOR_3DSHADOW                      */
     114    COLORREF clr3dDkShadow;         /* COLOR_3DDKSHADOW                    */
     115    COLORREF clr3dFace;             /* COLOR_3DFACE                        */
     116    COLORREF clrWindow;             /* COLOR_WINDOW                        */
     117    COLORREF clrWindowText;         /* COLOR_WINDOWTEXT                    */
     118    COLORREF clrGrayText;           /* COLOR_GREYTEXT                      */
     119    COLORREF clrActiveCaption;      /* COLOR_ACTIVECAPTION                 */
     120    COLORREF clrInfoBk;             /* COLOR_INFOBK                        */
     121    COLORREF clrInfoText;           /* COLOR_INFOTEXT                      */
     122} COMCTL32_SysColor;
     123
     124extern COMCTL32_SysColor  comctl32_color;
     125
     126/* Internal function */
     127HWND COMCTL32_CreateToolTip (HWND);
     128VOID COMCTL32_RefreshSysColors(void);
     129INT  Str_GetPtrWtoA (LPCWSTR lpSrc, LPSTR lpDest, INT nMaxLen);
     130BOOL Str_SetPtrAtoW (LPWSTR *lppDest, LPCSTR lpSrc);
    165131
    166132#define COMCTL32_VERSION_MINOR 0
     
    168134#define WINE_FILEVERSIONSTR "5.00"
    169135
    170 #define UINT_PTR DWORD
    171 
     136#ifdef __WIN32OS2__
     137#define swprintf   wsprintfW
    172138#ifdef __cplusplus
    173139extern "C" {
     
    216182
    217183
    218 INT  Str_GetPtrWtoA (LPCWSTR lpSrc, LPSTR lpDest, INT nMaxLen);
    219 BOOL Str_SetPtrAtoW (LPWSTR *lppDest, LPCSTR lpSrc);
    220 
    221184#ifdef __cplusplus
    222185}
    223186#endif
     187#endif
    224188
    225 #endif /* _H_COMCTL32 */
     189#endif  /* __WINE_COMCTL32_H */
Note: See TracChangeset for help on using the changeset viewer.