added wx/msw/missing.h

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15245 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Václav Slavík
2002-04-23 16:18:26 +00:00
parent f2a10cdc48
commit 7391216edc
16 changed files with 214 additions and 160 deletions

View File

@@ -1281,6 +1281,7 @@ menuitem.h MSWH
metafile.h MSWH metafile.h MSWH
mimetype.h MSWH Win32Only,Base mimetype.h MSWH Win32Only,Base
minifram.h MSWH minifram.h MSWH
missing.h MSWH
msgdlg.h MSWH msgdlg.h MSWH
mslu.h MSWH mslu.h MSWH
msvcrt.h MSWH msvcrt.h MSWH

184
include/wx/msw/missing.h Normal file
View File

@@ -0,0 +1,184 @@
/////////////////////////////////////////////////////////////////////////////
// Name: missing.h
// Purpose: Declarations for parts of the Win32 SDK that are missing in
// the version that comes with some compilers
// Created: 2002/04/23
// RCS-ID: $Id$
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
#ifndef _WX_MISSING_H_
#define _WX_MISSING_H_
// ----------------------------------------------------------------------------
// ListView common control
// ----------------------------------------------------------------------------
#ifndef LVHT_ONITEM
#define LVHT_ONITEM \
(LVHT_ONITEMICON | LVHT_ONITEMLABEL | LVHT_ONITEMSTATEICON)
#endif
#ifndef LVM_SETEXTENDEDLISTVIEWSTYLE
#define LVM_SETEXTENDEDLISTVIEWSTYLE (0x1000 + 54)
#endif
#ifndef LVS_EX_FULLROWSELECT
#define LVS_EX_FULLROWSELECT 0x00000020
#endif
#ifndef LVS_OWNERDATA
#define LVS_OWNERDATA 0x1000
#endif
#ifndef LVM_FIRST
#define LVM_FIRST 0x1000
#endif
#ifndef HDM_FIRST
#define HDM_FIRST 0x1200
#endif
// mingw32/cygwin don't have declarations for comctl32.dll 4.70+ stuff
#ifndef NM_CACHEHINT
typedef struct tagNMLVCACHEHINT
{
NMHDR hdr;
int iFrom;
int iTo;
} NMLVCACHEHINT;
#define NM_CACHEHINT NMLVCACHEHINT
#endif
#ifndef LVN_ODCACHEHINT
#define LVN_ODCACHEHINT (-113)
#endif
#ifndef ListView_GetHeader
#define ListView_GetHeader(w) (HWND)SendMessage((w),LVM_GETHEADER,0,0)
#endif
#ifndef LVM_GETHEADER
#define LVM_GETHEADER (LVM_FIRST+31)
#endif
#ifndef Header_GetItemRect
#define Header_GetItemRect(w,i,r) \
(BOOL)SendMessage((w),HDM_GETITEMRECT,(WPARAM)(i),(LPARAM)(r))
#endif
#ifndef HDM_GETITEMRECT
#define HDM_GETITEMRECT (HDM_FIRST+7)
#endif
#ifndef LVCF_IMAGE
#define LVCF_IMAGE 0x0010
#endif
#ifndef LVCFMT_BITMAP_ON_RIGHT
#define LVCFMT_BITMAP_ON_RIGHT 0x1000
#endif
#if defined(__GNUWIN32__) && !defined(LV_ITEM) \
&& !wxCHECK_W32API_VERSION( 0, 5 )
typedef struct _LVITEMW {
UINT mask;
int iItem;
int iSubItem;
UINT state;
UINT stateMask;
LPWSTR pszText;
int cchTextMax;
int iImage;
LPARAM lParam;
#if (_WIN32_IE >= 0x0300)
int iIndent;
#endif
} LV_ITEMW;
typedef LV_ITEM LV_ITEMA;
#endif
#if defined(__GNUWIN32__) && !wxCHECK_W32API_VERSION( 0, 5 )
#ifndef LV_DISPINFOA
typedef struct tagNMLVDISPINFOA {
NMHDR hdr;
LV_ITEMA item;
} NMLVDISPINFOA, FAR *LPNMLVDISPINFOA;
#define _LV_DISPINFOA tagNMLVDISPINFOA
#define LV_DISPINFOA NMLVDISPINFOA
#endif
#ifndef LV_DISPINFOW
typedef struct tagNMLVDISPINFOW {
NMHDR hdr;
LV_ITEMW item;
} NMLVDISPINFOW, FAR *LPNMLVDISPINFOW;
#define _LV_DISPINFOW tagNMLVDISPINFOW
#define LV_DISPINFOW NMLVDISPINFOW
#endif
#endif
// ----------------------------------------------------------------------------
// MS HTML Help
// ----------------------------------------------------------------------------
// instead of including htmlhelp.h, duplicate the things from it we need here:
enum
{
HH_DISPLAY_TOPIC,
HH_DISPLAY_TOC,
HH_DISPLAY_INDEX,
HH_DISPLAY_SEARCH,
HH_SET_WIN_TYPE,
HH_GET_WIN_TYPE,
HH_GET_WIN_HANDLE,
HH_ENUM_INFO_TYPE,
HH_SET_INFO_TYPE,
HH_SYNC,
HH_RESERVED1,
HH_RESERVED2,
HH_RESERVED3,
HH_KEYWORD_LOOKUP,
HH_DISPLAY_TEXT_POPUP,
HH_HELP_CONTEXT,
HH_TP_HELP_CONTEXTMENU,
HH_TP_HELP_WM_HELP,
HH_CLOSE_ALL,
HH_ALINK_LOOKUP,
HH_GET_LAST_ERROR,
HH_ENUM_CATEGORY,
HH_ENUM_CATEGORY_IT,
HH_RESET_IT_FILTER,
HH_SET_INCLUSIVE_FILTER,
HH_SET_EXCLUSIVE_FILTER
};
struct HH_POPUP
{
int cbStruct;
HINSTANCE hinst;
UINT idString;
LPCTSTR pszText;
POINT pt;
COLORREF clrForeground;
COLORREF clrBackground;
RECT rcMargins;
LPCTSTR pszFont;
};
struct HH_AKLINK
{
int cbStruct;
BOOL fReserved;
LPCTSTR pszKeywords;
LPCTSTR pszUrl;
LPCTSTR pszMsgText;
LPCTSTR pszMsgTitle;
LPCTSTR pszWindow;
BOOL fIndexOnFail;
};
#endif
// _WX_MISSING_H_

View File

@@ -384,6 +384,7 @@ ALL_HEADERS = \
imagxpm.h \ imagxpm.h \
intl.h \ intl.h \
ioswrap.h \ ioswrap.h \
ipc.h \
ipcbase.h \ ipcbase.h \
isql.h \ isql.h \
isqlext.h \ isqlext.h \

View File

@@ -384,6 +384,7 @@ ALL_HEADERS = \
imagxpm.h \ imagxpm.h \
intl.h \ intl.h \
ioswrap.h \ ioswrap.h \
ipc.h \
ipcbase.h \ ipcbase.h \
isql.h \ isql.h \
isqlext.h \ isqlext.h \

View File

@@ -390,6 +390,7 @@ ALL_HEADERS = \
imagxpm.h \ imagxpm.h \
intl.h \ intl.h \
ioswrap.h \ ioswrap.h \
ipc.h \
ipcbase.h \ ipcbase.h \
isql.h \ isql.h \
isqlext.h \ isqlext.h \

View File

@@ -390,6 +390,7 @@ ALL_HEADERS = \
imagxpm.h \ imagxpm.h \
intl.h \ intl.h \
ioswrap.h \ ioswrap.h \
ipc.h \
ipcbase.h \ ipcbase.h \
isql.h \ isql.h \
isqlext.h \ isqlext.h \

View File

@@ -345,6 +345,7 @@ ALL_HEADERS = \
imagxpm.h \ imagxpm.h \
intl.h \ intl.h \
ioswrap.h \ ioswrap.h \
ipc.h \
ipcbase.h \ ipcbase.h \
isql.h \ isql.h \
isqlext.h \ isqlext.h \

View File

@@ -345,6 +345,7 @@ ALL_HEADERS = \
imagxpm.h \ imagxpm.h \
intl.h \ intl.h \
ioswrap.h \ ioswrap.h \
ipc.h \
ipcbase.h \ ipcbase.h \
isql.h \ isql.h \
isqlext.h \ isqlext.h \
@@ -521,6 +522,7 @@ ALL_HEADERS = \
msw/metafile.h \ msw/metafile.h \
msw/mimetype.h \ msw/mimetype.h \
msw/minifram.h \ msw/minifram.h \
msw/missing.h \
msw/msgdlg.h \ msw/msgdlg.h \
msw/mslu.h \ msw/mslu.h \
msw/msvcrt.h \ msw/msvcrt.h \

View File

@@ -375,6 +375,7 @@ ALL_HEADERS = \
imagxpm.h \ imagxpm.h \
intl.h \ intl.h \
ioswrap.h \ ioswrap.h \
ipc.h \
ipcbase.h \ ipcbase.h \
isql.h \ isql.h \
isqlext.h \ isqlext.h \

View File

@@ -406,6 +406,7 @@ ALL_HEADERS = \
imagxpm.h \ imagxpm.h \
intl.h \ intl.h \
ioswrap.h \ ioswrap.h \
ipc.h \
ipcbase.h \ ipcbase.h \
isql.h \ isql.h \
isqlext.h \ isqlext.h \
@@ -582,6 +583,7 @@ ALL_HEADERS = \
msw/metafile.h \ msw/metafile.h \
msw/mimetype.h \ msw/mimetype.h \
msw/minifram.h \ msw/minifram.h \
msw/missing.h \
msw/msgdlg.h \ msw/msgdlg.h \
msw/mslu.h \ msw/mslu.h \
msw/msvcrt.h \ msw/msvcrt.h \

View File

@@ -33,63 +33,7 @@
#endif #endif
#include "wx/msw/private.h" #include "wx/msw/private.h"
#include "wx/msw/missing.h"
// instead of including htmlhelp.h, duplicate the things from it we need here
enum
{
HH_DISPLAY_TOPIC,
HH_DISPLAY_TOC,
HH_DISPLAY_INDEX,
HH_DISPLAY_SEARCH,
HH_SET_WIN_TYPE,
HH_GET_WIN_TYPE,
HH_GET_WIN_HANDLE,
HH_ENUM_INFO_TYPE,
HH_SET_INFO_TYPE,
HH_SYNC,
HH_RESERVED1,
HH_RESERVED2,
HH_RESERVED3,
HH_KEYWORD_LOOKUP,
HH_DISPLAY_TEXT_POPUP,
HH_HELP_CONTEXT,
HH_TP_HELP_CONTEXTMENU,
HH_TP_HELP_WM_HELP,
HH_CLOSE_ALL,
HH_ALINK_LOOKUP,
HH_GET_LAST_ERROR,
HH_ENUM_CATEGORY,
HH_ENUM_CATEGORY_IT,
HH_RESET_IT_FILTER,
HH_SET_INCLUSIVE_FILTER,
HH_SET_EXCLUSIVE_FILTER
};
struct HH_POPUP
{
int cbStruct;
HINSTANCE hinst;
UINT idString;
LPCTSTR pszText;
POINT pt;
COLORREF clrForeground;
COLORREF clrBackground;
RECT rcMargins;
LPCTSTR pszFont;
};
struct HH_AKLINK
{
int cbStruct;
BOOL fReserved;
LPCTSTR pszKeywords;
LPCTSTR pszUrl;
LPCTSTR pszMsgText;
LPCTSTR pszMsgTitle;
LPCTSTR pszWindow;
BOOL fIndexOnFail;
};
// ---------------------------------------------------------------------------- // ----------------------------------------------------------------------------
// utility functions to manage the loading/unloading // utility functions to manage the loading/unloading

View File

@@ -51,109 +51,7 @@
#include <commctrl.h> #include <commctrl.h>
#endif #endif
#ifndef LVHT_ONITEM #include "wx/msw/missing.h"
#define LVHT_ONITEM \
(LVHT_ONITEMICON | LVHT_ONITEMLABEL | LVHT_ONITEMSTATEICON)
#endif
#ifndef LVM_SETEXTENDEDLISTVIEWSTYLE
#define LVM_SETEXTENDEDLISTVIEWSTYLE (0x1000 + 54)
#endif
#ifndef LVS_EX_FULLROWSELECT
#define LVS_EX_FULLROWSELECT 0x00000020
#endif
#ifndef LVS_OWNERDATA
#define LVS_OWNERDATA 0x1000
#endif
#ifndef LVM_FIRST
#define LVM_FIRST 0x1000
#endif
#ifndef HDM_FIRST
#define HDM_FIRST 0x1200
#endif
// mingw32/cygwin don't have declarations for comctl32.dll 4.70+ stuff
#ifndef NM_CACHEHINT
typedef struct tagNMLVCACHEHINT
{
NMHDR hdr;
int iFrom;
int iTo;
} NMLVCACHEHINT;
#define NM_CACHEHINT NMLVCACHEHINT
#endif
#ifndef LVN_ODCACHEHINT
#define LVN_ODCACHEHINT (-113)
#endif
#ifndef ListView_GetHeader
#define ListView_GetHeader(w) (HWND)SendMessage((w),LVM_GETHEADER,0,0)
#endif
#ifndef LVM_GETHEADER
#define LVM_GETHEADER (LVM_FIRST+31)
#endif
#ifndef Header_GetItemRect
#define Header_GetItemRect(w,i,r) \
(BOOL)SendMessage((w),HDM_GETITEMRECT,(WPARAM)(i),(LPARAM)(r))
#endif
#ifndef HDM_GETITEMRECT
#define HDM_GETITEMRECT (HDM_FIRST+7)
#endif
#ifndef LVCF_IMAGE
#define LVCF_IMAGE 0x0010
#endif
#ifndef LVCFMT_BITMAP_ON_RIGHT
#define LVCFMT_BITMAP_ON_RIGHT 0x1000
#endif
#if defined(__GNUWIN32__) && !defined(LV_ITEM) \
&& !wxCHECK_W32API_VERSION( 0, 5 )
typedef struct _LVITEMW {
UINT mask;
int iItem;
int iSubItem;
UINT state;
UINT stateMask;
LPWSTR pszText;
int cchTextMax;
int iImage;
LPARAM lParam;
#if (_WIN32_IE >= 0x0300)
int iIndent;
#endif
} LV_ITEMW;
typedef LV_ITEM LV_ITEMA;
#endif
#if defined(__GNUWIN32__) && !wxCHECK_W32API_VERSION( 0, 5 )
#ifndef LV_DISPINFOA
typedef struct tagNMLVDISPINFOA {
NMHDR hdr;
LV_ITEMA item;
} NMLVDISPINFOA, FAR *LPNMLVDISPINFOA;
#define _LV_DISPINFOA tagNMLVDISPINFOA
#define LV_DISPINFOA NMLVDISPINFOA
#endif
#ifndef LV_DISPINFOW
typedef struct tagNMLVDISPINFOW {
NMHDR hdr;
LV_ITEMW item;
} NMLVDISPINFOW, FAR *LPNMLVDISPINFOW;
#define _LV_DISPINFOW tagNMLVDISPINFOW
#define LV_DISPINFOW NMLVDISPINFOW
#endif
#endif
// ---------------------------------------------------------------------------- // ----------------------------------------------------------------------------
// private functions // private functions

View File

@@ -813,6 +813,10 @@ SOURCE=..\include\wx\ioswrap.h
# End Source File # End Source File
# Begin Source File # Begin Source File
SOURCE=..\include\wx\ipc.h
# End Source File
# Begin Source File
SOURCE=..\include\wx\ipcbase.h SOURCE=..\include\wx\ipcbase.h
# End Source File # End Source File
# Begin Source File # Begin Source File

View File

@@ -1694,6 +1694,10 @@ SOURCE=..\include\wx\ioswrap.h
# End Source File # End Source File
# Begin Source File # Begin Source File
SOURCE=..\include\wx\ipc.h
# End Source File
# Begin Source File
SOURCE=..\include\wx\ipcbase.h SOURCE=..\include\wx\ipcbase.h
# End Source File # End Source File
# Begin Source File # Begin Source File

View File

@@ -1974,6 +1974,10 @@ SOURCE=..\include\wx\ioswrap.h
# End Source File # End Source File
# Begin Source File # Begin Source File
SOURCE=..\include\wx\ipc.h
# End Source File
# Begin Source File
SOURCE=..\include\wx\ipcbase.h SOURCE=..\include\wx\ipcbase.h
# End Source File # End Source File
# Begin Source File # Begin Source File
@@ -2679,6 +2683,10 @@ SOURCE=..\include\wx\msw\minifram.h
# End Source File # End Source File
# Begin Source File # Begin Source File
SOURCE=..\include\wx\msw\missing.h
# End Source File
# Begin Source File
SOURCE=..\include\wx\msw\msgdlg.h SOURCE=..\include\wx\msw\msgdlg.h
# End Source File # End Source File
# Begin Source File # Begin Source File

View File

@@ -354,6 +354,7 @@ ALL_HEADERS = \
imagxpm.h \ imagxpm.h \
intl.h \ intl.h \
ioswrap.h \ ioswrap.h \
ipc.h \
ipcbase.h \ ipcbase.h \
isql.h \ isql.h \
isqlext.h \ isqlext.h \