Include wx/msw/wrap*.h according to pch support (with other minor cleaning).

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41054 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Włodzimierz Skiba
2006-09-07 19:01:45 +00:00
parent 8383c11698
commit 57bd4c6031
64 changed files with 185 additions and 246 deletions

View File

@@ -34,6 +34,8 @@
#define _WIN32_IE 0x0600 #define _WIN32_IE 0x0600
#endif // !defined(_WIN32_IE) #endif // !defined(_WIN32_IE)
#include "wx/msw/wrapwin.h"
#include <commctrl.h> #include <commctrl.h>
// define things which might be missing from our commctrl.h // define things which might be missing from our commctrl.h

View File

@@ -25,6 +25,9 @@
#endif #endif
#ifndef WX_PRECOMP #ifndef WX_PRECOMP
#ifdef __WXMSW__
#include "wx/msw/wrapwin.h" // includes windows.h for MessageBox()
#endif
#include "wx/list.h" #include "wx/list.h"
#include "wx/app.h" #include "wx/app.h"
#include "wx/intl.h" #include "wx/intl.h"
@@ -43,10 +46,6 @@
#include <signal.h> // for SIGTRAP used by wxTrap() #include <signal.h> // for SIGTRAP used by wxTrap()
#endif //Win/Unix #endif //Win/Unix
#if defined(__WXMSW__)
#include "wx/msw/wrapwin.h" // includes windows.h for MessageBox()
#endif
#if wxUSE_FONTMAP #if wxUSE_FONTMAP
#include "wx/fontmap.h" #include "wx/fontmap.h"
#endif // wxUSE_FONTMAP #endif // wxUSE_FONTMAP

View File

@@ -27,6 +27,9 @@
#include "wx/cmndata.h" #include "wx/cmndata.h"
#ifndef WX_PRECOMP #ifndef WX_PRECOMP
#if defined(__WXMSW__)
#include "wx/msw/wrapcdlg.h"
#endif // MSW
#include <stdio.h> #include <stdio.h>
#include "wx/string.h" #include "wx/string.h"
#include "wx/utils.h" #include "wx/utils.h"
@@ -43,26 +46,21 @@
#endif // wxUSE_FONTDLG #endif // wxUSE_FONTDLG
#if wxUSE_PRINTING_ARCHITECTURE #if wxUSE_PRINTING_ARCHITECTURE
#include "wx/paper.h"
#endif // wxUSE_PRINTING_ARCHITECTURE
#if defined(__WXMSW__) #include "wx/paper.h"
#include "wx/msw/wrapcdlg.h"
#endif // MSW
#if wxUSE_PRINTING_ARCHITECTURE
#if defined(__WXMAC__) #if defined(__WXMAC__)
#include "wx/mac/private/print.h" #include "wx/mac/private/print.h"
#endif #endif
IMPLEMENT_DYNAMIC_CLASS(wxPrintData, wxObject) IMPLEMENT_DYNAMIC_CLASS(wxPrintData, wxObject)
IMPLEMENT_DYNAMIC_CLASS(wxPrintDialogData, wxObject) IMPLEMENT_DYNAMIC_CLASS(wxPrintDialogData, wxObject)
IMPLEMENT_DYNAMIC_CLASS(wxPageSetupDialogData, wxObject) IMPLEMENT_DYNAMIC_CLASS(wxPageSetupDialogData, wxObject)
#endif // wxUSE_PRINTING_ARCHITECTURE
IMPLEMENT_DYNAMIC_CLASS(wxFontData, wxObject) #endif // wxUSE_PRINTING_ARCHITECTURE
IMPLEMENT_DYNAMIC_CLASS(wxColourData, wxObject)
IMPLEMENT_DYNAMIC_CLASS(wxFontData, wxObject)
IMPLEMENT_DYNAMIC_CLASS(wxColourData, wxObject)
// ============================================================================ // ============================================================================
// implementation // implementation

View File

@@ -66,6 +66,9 @@
#if !defined(wxUSE_DATETIME) || wxUSE_DATETIME #if !defined(wxUSE_DATETIME) || wxUSE_DATETIME
#ifndef WX_PRECOMP #ifndef WX_PRECOMP
#ifdef __WXMSW__
#include "wx/msw/wrapwin.h"
#endif
#include "wx/string.h" #include "wx/string.h"
#include "wx/log.h" #include "wx/log.h"
#include "wx/intl.h" #include "wx/intl.h"
@@ -79,7 +82,6 @@
#include <ctype.h> #include <ctype.h>
#ifdef __WINDOWS__ #ifdef __WINDOWS__
#include "wx/msw/wrapwin.h"
#include <winnls.h> #include <winnls.h>
#ifndef __WXWINCE__ #ifndef __WXWINCE__
#include <locale.h> #include <locale.h>

View File

@@ -68,6 +68,9 @@
#endif #endif
#ifndef WX_PRECOMP #ifndef WX_PRECOMP
#ifdef __WXMSW__
#include "wx/msw/wrapwin.h" // For GetShort/LongPathName
#endif
#include "wx/dynarray.h" #include "wx/dynarray.h"
#include "wx/intl.h" #include "wx/intl.h"
#include "wx/log.h" #include "wx/log.h"
@@ -81,12 +84,8 @@
#include "wx/file.h" #include "wx/file.h"
#include "wx/dynlib.h" #include "wx/dynlib.h"
// For GetShort/LongPathName #if defined(__WIN32__) && defined(__MINGW32__)
#ifdef __WIN32__ #include "wx/msw/gccpriv.h"
#include "wx/msw/wrapwin.h"
#if defined(__MINGW32__)
#include "wx/msw/gccpriv.h"
#endif
#endif #endif
#ifdef __WXWINCE__ #ifdef __WXWINCE__

View File

@@ -17,6 +17,9 @@
#if wxUSE_IMAGE #if wxUSE_IMAGE
#ifndef WX_PRECOMP #ifndef WX_PRECOMP
#ifdef __WXMSW__
#include "wx/msw/wrapwin.h"
#endif
#include "wx/log.h" #include "wx/log.h"
#include "wx/app.h" #include "wx/app.h"
#include "wx/bitmap.h" #include "wx/bitmap.h"
@@ -38,10 +41,6 @@
#endif #endif
#endif #endif
#ifdef __WXMSW__
#include "wx/msw/wrapwin.h"
#endif
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
// wxBMPHandler // wxBMPHandler
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------

View File

@@ -21,6 +21,9 @@
#include "wx/memory.h" #include "wx/memory.h"
#ifndef WX_PRECOMP #ifndef WX_PRECOMP
#ifdef __WXMSW__
#include "wx/msw/wrapwin.h"
#endif
#include "wx/utils.h" #include "wx/utils.h"
#include "wx/app.h" #include "wx/app.h"
#include "wx/hash.h" #include "wx/hash.h"
@@ -43,19 +46,6 @@
#include <stdarg.h> #include <stdarg.h>
#include <string.h> #include <string.h>
#ifdef __WXMSW__
#include "wx/msw/wrapwin.h"
#ifdef GetClassInfo
#undef GetClassInfo
#endif
#ifdef GetClassName
#undef GetClassName
#endif
#endif
#if wxUSE_THREADS && defined(__WXDEBUG__) #if wxUSE_THREADS && defined(__WXDEBUG__)
#define USE_THREADSAFE_MEMORY_ALLOCATION 1 #define USE_THREADSAFE_MEMORY_ALLOCATION 1
#else #else

View File

@@ -18,8 +18,10 @@
#if wxUSE_PRINTING_ARCHITECTURE #if wxUSE_PRINTING_ARCHITECTURE
#ifndef WX_PRECOMP #ifndef WX_PRECOMP
#if defined(__WXMSW__)
#include "wx/msw/wrapcdlg.h"
#endif // MSW
#include "wx/utils.h" #include "wx/utils.h"
#include "wx/settings.h" #include "wx/settings.h"
#include "wx/intl.h" #include "wx/intl.h"
@@ -32,7 +34,6 @@
#include <string.h> #include <string.h>
#ifdef __WXMSW__ #ifdef __WXMSW__
#include "wx/msw/wrapcdlg.h"
#ifndef __WIN32__ #ifndef __WIN32__
#include <print.h> #include <print.h>
#endif #endif

View File

@@ -21,6 +21,9 @@
#include "wx/dcprint.h" #include "wx/dcprint.h"
#ifndef WX_PRECOMP #ifndef WX_PRECOMP
#if defined(__WXMSW__)
#include "wx/msw/wrapcdlg.h"
#endif // MSW
#include "wx/utils.h" #include "wx/utils.h"
#include "wx/dc.h" #include "wx/dc.h"
#include "wx/app.h" #include "wx/app.h"
@@ -54,7 +57,6 @@
#endif #endif
#ifdef __WXMSW__ #ifdef __WXMSW__
#include "wx/msw/wrapcdlg.h"
#ifndef __WIN32__ #ifndef __WIN32__
#include <print.h> #include <print.h>
#endif #endif

View File

@@ -1,5 +1,5 @@
/////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////
// Name: common/stopwatch.cpp // Name: src/common/stopwatch.cpp
// Purpose: wxStopWatch and other non-GUI stuff from wx/timer.h // Purpose: wxStopWatch and other non-GUI stuff from wx/timer.h
// Author: // Author:
// Original version by Julian Smart // Original version by Julian Smart
@@ -31,6 +31,9 @@
#include "wx/stopwatch.h" #include "wx/stopwatch.h"
#ifndef WX_PRECOMP #ifndef WX_PRECOMP
#ifdef __WXMSW__
#include "wx/msw/wrapwin.h"
#endif
#include "wx/intl.h" #include "wx/intl.h"
#include "wx/log.h" #include "wx/log.h"
#endif //WX_PRECOMP #endif //WX_PRECOMP
@@ -39,10 +42,6 @@
// System headers // System headers
// ---------------------------------------------------------------------------- // ----------------------------------------------------------------------------
#if defined(__WIN32__)
#include "wx/msw/wrapwin.h"
#endif
#if defined(__WIN32__) && !defined(HAVE_FTIME) && !defined(__MWERKS__) && !defined(__WXWINCE__) #if defined(__WIN32__) && !defined(HAVE_FTIME) && !defined(__MWERKS__) && !defined(__WXWINCE__)
#define HAVE_FTIME #define HAVE_FTIME
#endif #endif
@@ -371,5 +370,3 @@ double wxGetLocalTimeMillis(void)
} }
#endif // wxUSE_LONGLONG/!wxUSE_LONGLONG #endif // wxUSE_LONGLONG/!wxUSE_LONGLONG

View File

@@ -16,6 +16,9 @@
#include "wx/wxprec.h" #include "wx/wxprec.h"
#ifndef WX_PRECOMP #ifndef WX_PRECOMP
#ifdef __WXMSW__
#include "wx/msw/missing.h"
#endif
#include "wx/intl.h" #include "wx/intl.h"
#include "wx/log.h" #include "wx/log.h"
#include "wx/utils.h" #include "wx/utils.h"
@@ -28,7 +31,6 @@
#ifdef __WINDOWS__ #ifdef __WINDOWS__
#include "wx/msw/private.h" #include "wx/msw/private.h"
#include "wx/msw/missing.h"
#endif #endif
#ifndef __WXWINCE__ #ifndef __WXWINCE__
@@ -2773,7 +2775,7 @@ public:
wxASSERT_MSG( status == noErr , _("Unable to create TextEncodingConverter")) ; wxASSERT_MSG( status == noErr , _("Unable to create TextEncodingConverter")) ;
} }
} }
size_t MB2WC(wchar_t *buf, const char *psz, size_t n) const size_t MB2WC(wchar_t *buf, const char *psz, size_t n) const
{ {
CreateIfNeeded() ; CreateIfNeeded() ;
@@ -2888,9 +2890,9 @@ public:
virtual wxMBConv *Clone() const { return new wxMBConv_mac(*this); } virtual wxMBConv *Clone() const { return new wxMBConv_mac(*this); }
bool IsOk() const bool IsOk() const
{ {
CreateIfNeeded() ; CreateIfNeeded() ;
return m_MB2WC_converter != NULL && m_WC2MB_converter != NULL; return m_MB2WC_converter != NULL && m_WC2MB_converter != NULL;
} }
protected : protected :
@@ -2906,13 +2908,13 @@ protected :
class wxMBConv_macUTF8D : public wxMBConv_mac class wxMBConv_macUTF8D : public wxMBConv_mac
{ {
public : public :
wxMBConv_macUTF8D() wxMBConv_macUTF8D()
{ {
Init( kTextEncodingUnicodeDefault , kUnicodeNoSubset , kUnicodeUTF8Format ) ; Init( kTextEncodingUnicodeDefault , kUnicodeNoSubset , kUnicodeUTF8Format ) ;
m_uni = NULL; m_uni = NULL;
m_uniBack = NULL ; m_uniBack = NULL ;
} }
virtual ~wxMBConv_macUTF8D() virtual ~wxMBConv_macUTF8D()
{ {
if (m_uni!=NULL) if (m_uni!=NULL)
@@ -2920,7 +2922,7 @@ public :
if (m_uniBack!=NULL) if (m_uniBack!=NULL)
DisposeUnicodeToTextInfo(&m_uniBack); DisposeUnicodeToTextInfo(&m_uniBack);
} }
size_t WC2MB(char *buf, const wchar_t *psz, size_t n) const size_t WC2MB(char *buf, const wchar_t *psz, size_t n) const
{ {
CreateIfNeeded() ; CreateIfNeeded() ;
@@ -2950,15 +2952,15 @@ public :
ubuf = (UniChar*) psz ; ubuf = (UniChar*) psz ;
#endif #endif
// ubuf is a non-decomposed UniChar buffer // ubuf is a non-decomposed UniChar buffer
ByteCount dcubuflen = byteInLen * 2 + 2 ; ByteCount dcubuflen = byteInLen * 2 + 2 ;
ByteCount dcubufread , dcubufwritten ; ByteCount dcubufread , dcubufwritten ;
UniChar *dcubuf = (UniChar*) malloc( dcubuflen ) ; UniChar *dcubuf = (UniChar*) malloc( dcubuflen ) ;
ConvertFromUnicodeToText( m_uni , byteInLen , ubuf , ConvertFromUnicodeToText( m_uni , byteInLen , ubuf ,
kUnicodeDefaultDirectionMask, 0, NULL, NULL, NULL, dcubuflen , &dcubufread , &dcubufwritten , dcubuf ) ; kUnicodeDefaultDirectionMask, 0, NULL, NULL, NULL, dcubuflen , &dcubufread , &dcubufwritten , dcubuf ) ;
// we now convert that decomposed buffer into UTF8 // we now convert that decomposed buffer into UTF8
status = TECConvertText( status = TECConvertText(
@@ -2983,7 +2985,7 @@ public :
return res ; return res ;
} }
size_t MB2WC(wchar_t *buf, const char *psz, size_t n) const size_t MB2WC(wchar_t *buf, const char *psz, size_t n) const
{ {
CreateIfNeeded() ; CreateIfNeeded() ;
@@ -2993,25 +2995,25 @@ public :
wchar_t *tbuf = NULL ; wchar_t *tbuf = NULL ;
UniChar* ubuf = NULL ; UniChar* ubuf = NULL ;
size_t res = 0 ; size_t res = 0 ;
if (buf == NULL) if (buf == NULL)
{ {
// Apple specs say at least 32 // Apple specs say at least 32
n = wxMax( 32, byteInLen ) ; n = wxMax( 32, byteInLen ) ;
tbuf = (wchar_t*) malloc( n * SIZEOF_WCHAR_T ) ; tbuf = (wchar_t*) malloc( n * SIZEOF_WCHAR_T ) ;
} }
ByteCount byteBufferLen = n * sizeof( UniChar ) ; ByteCount byteBufferLen = n * sizeof( UniChar ) ;
#if SIZEOF_WCHAR_T == 4 #if SIZEOF_WCHAR_T == 4
ubuf = (UniChar*) malloc( byteBufferLen + 2 ) ; ubuf = (UniChar*) malloc( byteBufferLen + 2 ) ;
#else #else
ubuf = (UniChar*) (buf ? buf : tbuf) ; ubuf = (UniChar*) (buf ? buf : tbuf) ;
#endif #endif
ByteCount dcubuflen = byteBufferLen * 2 + 2 ; ByteCount dcubuflen = byteBufferLen * 2 + 2 ;
ByteCount dcubufread , dcubufwritten ; ByteCount dcubufread , dcubufwritten ;
UniChar *dcubuf = (UniChar*) malloc( dcubuflen ) ; UniChar *dcubuf = (UniChar*) malloc( dcubuflen ) ;
status = TECConvertText( status = TECConvertText(
m_MB2WC_converter, (ConstTextPtr) psz, byteInLen, &byteInLen, m_MB2WC_converter, (ConstTextPtr) psz, byteInLen, &byteInLen,
@@ -3019,16 +3021,16 @@ public :
// we have to terminate here, because n might be larger for the trailing zero, and if UniChar // we have to terminate here, because n might be larger for the trailing zero, and if UniChar
// is not properly terminated we get random characters at the end // is not properly terminated we get random characters at the end
dcubuf[byteOutLen / sizeof( UniChar ) ] = 0 ; dcubuf[byteOutLen / sizeof( UniChar ) ] = 0 ;
// now from the decomposed UniChar to properly composed uniChar // now from the decomposed UniChar to properly composed uniChar
ConvertFromUnicodeToText( m_uniBack , byteOutLen , dcubuf , ConvertFromUnicodeToText( m_uniBack , byteOutLen , dcubuf ,
kUnicodeDefaultDirectionMask, 0, NULL, NULL, NULL, dcubuflen , &dcubufread , &dcubufwritten , ubuf ) ; kUnicodeDefaultDirectionMask, 0, NULL, NULL, NULL, dcubuflen , &dcubufread , &dcubufwritten , ubuf ) ;
free( dcubuf ); free( dcubuf );
byteOutLen = dcubufwritten ; byteOutLen = dcubufwritten ;
ubuf[byteOutLen / sizeof( UniChar ) ] = 0 ; ubuf[byteOutLen / sizeof( UniChar ) ] = 0 ;
#if SIZEOF_WCHAR_T == 4 #if SIZEOF_WCHAR_T == 4
wxMBConvUTF16 converter ; wxMBConvUTF16 converter ;
res = converter.MB2WC( (buf ? buf : tbuf), (const char*)ubuf, n ) ; res = converter.MB2WC( (buf ? buf : tbuf), (const char*)ubuf, n ) ;
@@ -3036,13 +3038,13 @@ public :
#else #else
res = byteOutLen / sizeof( UniChar ) ; res = byteOutLen / sizeof( UniChar ) ;
#endif #endif
if ( buf == NULL ) if ( buf == NULL )
free(tbuf) ; free(tbuf) ;
if ( buf && res < n) if ( buf && res < n)
buf[res] = 0; buf[res] = 0;
return res ; return res ;
} }
@@ -3056,16 +3058,16 @@ public :
m_map.otherEncoding = CreateTextEncoding(kTextEncodingUnicodeDefault, m_map.otherEncoding = CreateTextEncoding(kTextEncodingUnicodeDefault,
kUnicodeCanonicalDecompVariant, kTextEncodingDefaultFormat); kUnicodeCanonicalDecompVariant, kTextEncodingDefaultFormat);
m_map.mappingVersion = kUnicodeUseLatestMapping; m_map.mappingVersion = kUnicodeUseLatestMapping;
OSStatus err = CreateUnicodeToTextInfo(&m_map, &m_uni); OSStatus err = CreateUnicodeToTextInfo(&m_map, &m_uni);
wxASSERT_MSG( err == noErr , _(" Couldn't create the UnicodeConverter")) ; wxASSERT_MSG( err == noErr , _(" Couldn't create the UnicodeConverter")) ;
m_map.unicodeEncoding = CreateTextEncoding(kTextEncodingUnicodeDefault, m_map.unicodeEncoding = CreateTextEncoding(kTextEncodingUnicodeDefault,
kUnicodeNoSubset, kTextEncodingDefaultFormat); kUnicodeNoSubset, kTextEncodingDefaultFormat);
m_map.otherEncoding = CreateTextEncoding(kTextEncodingUnicodeDefault, m_map.otherEncoding = CreateTextEncoding(kTextEncodingUnicodeDefault,
kUnicodeCanonicalCompVariant, kTextEncodingDefaultFormat); kUnicodeCanonicalCompVariant, kTextEncodingDefaultFormat);
m_map.mappingVersion = kUnicodeUseLatestMapping; m_map.mappingVersion = kUnicodeUseLatestMapping;
err = CreateUnicodeToTextInfo(&m_map, &m_uniBack); err = CreateUnicodeToTextInfo(&m_map, &m_uniBack);
wxASSERT_MSG( err == noErr , _(" Couldn't create the UnicodeConverter")) ; wxASSERT_MSG( err == noErr , _(" Couldn't create the UnicodeConverter")) ;
} }
} }
@@ -3073,7 +3075,7 @@ protected :
mutable UnicodeToTextInfo m_uni; mutable UnicodeToTextInfo m_uni;
mutable UnicodeToTextInfo m_uniBack; mutable UnicodeToTextInfo m_uniBack;
mutable UnicodeMapping m_map; mutable UnicodeMapping m_map;
}; };
#endif // defined(__WXMAC__) && defined(TARGET_CARBON) #endif // defined(__WXMAC__) && defined(TARGET_CARBON)
// ============================================================================ // ============================================================================
@@ -3340,7 +3342,7 @@ wxMBConv *wxCSConv::DoCreate() const
const wxChar** names = wxFontMapperBase::GetAllEncodingNames(encoding); const wxChar** names = wxFontMapperBase::GetAllEncodingNames(encoding);
// CS : in case this does not return valid names (eg for MacRoman) encoding // CS : in case this does not return valid names (eg for MacRoman) encoding
// got a 'failure' entry in the cache all the same, although it just has to // got a 'failure' entry in the cache all the same, although it just has to
// be created using a different method, so only store failed iconv creation // be created using a different method, so only store failed iconv creation
// attempts (or perhaps we shoulnd't do this at all ?) // attempts (or perhaps we shoulnd't do this at all ?)
if ( names[0] != NULL ) if ( names[0] != NULL )

View File

@@ -21,6 +21,9 @@
#ifdef wxUSE_GENERICDATAVIEWCTRL #ifdef wxUSE_GENERICDATAVIEWCTRL
#ifndef WX_PRECOMP #ifndef WX_PRECOMP
#ifdef __WXMSW__
#include "wx/msw/wrapwin.h"
#endif
#include "wx/sizer.h" #include "wx/sizer.h"
#include "wx/log.h" #include "wx/log.h"
#include "wx/dcclient.h" #include "wx/dcclient.h"
@@ -33,10 +36,6 @@
#include "wx/popupwin.h" #include "wx/popupwin.h"
#include "wx/renderer.h" #include "wx/renderer.h"
#ifdef __WXMSW__
#include "wx/msw/wrapwin.h"
#endif
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
// classes // classes
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------

View File

@@ -24,6 +24,9 @@
#endif #endif
#ifndef WX_PRECOMP #ifndef WX_PRECOMP
#ifdef __WXMSW__
#include "wx/msw/wrapwin.h"
#endif
#include "wx/hash.h" #include "wx/hash.h"
#include "wx/intl.h" #include "wx/intl.h"
#include "wx/settings.h" #include "wx/settings.h"
@@ -67,7 +70,6 @@
#endif #endif
#ifdef __WINDOWS__ #ifdef __WINDOWS__
#include "wx/msw/wrapwin.h"
#include "wx/msw/mslu.h" #include "wx/msw/mslu.h"
#endif #endif

View File

@@ -25,6 +25,7 @@
#endif #endif
#ifndef WX_PRECOMP #ifndef WX_PRECOMP
#include "wx/msw/wrapcctl.h"
#include "wx/dynarray.h" #include "wx/dynarray.h"
#include "wx/frame.h" #include "wx/frame.h"
#include "wx/app.h" #include "wx/app.h"
@@ -76,8 +77,6 @@
#include <string.h> #include <string.h>
#include <ctype.h> #include <ctype.h>
#include "wx/msw/wrapcctl.h"
// For MB_TASKMODAL // For MB_TASKMODAL
#ifdef __WXWINCE__ #ifdef __WXWINCE__
#include "wx/msw/wince/missing.h" #include "wx/msw/wince/missing.h"

View File

@@ -29,6 +29,7 @@
#include "wx/checklst.h" #include "wx/checklst.h"
#ifndef WX_PRECOMP #ifndef WX_PRECOMP
#include "wx/msw/wrapwin.h"
#include "wx/object.h" #include "wx/object.h"
#include "wx/colour.h" #include "wx/colour.h"
#include "wx/font.h" #include "wx/font.h"
@@ -36,15 +37,12 @@
#include "wx/window.h" #include "wx/window.h"
#include "wx/listbox.h" #include "wx/listbox.h"
#include "wx/dcmemory.h" #include "wx/dcmemory.h"
#include "wx/settings.h" #include "wx/settings.h"
#include "wx/log.h" #include "wx/log.h"
#endif #endif
#include "wx/ownerdrw.h" #include "wx/ownerdrw.h"
#include "wx/msw/wrapwin.h"
#include <windowsx.h> #include <windowsx.h>
#include "wx/msw/private.h" #include "wx/msw/private.h"

View File

@@ -29,6 +29,7 @@
#include "wx/colordlg.h" #include "wx/colordlg.h"
#ifndef WX_PRECOMP #ifndef WX_PRECOMP
#include "wx/msw/wrapcdlg.h"
#include <stdio.h> #include <stdio.h>
#include "wx/colour.h" #include "wx/colour.h"
#include "wx/gdicmn.h" #include "wx/gdicmn.h"
@@ -39,7 +40,6 @@
#endif #endif
#include "wx/msw/private.h" #include "wx/msw/private.h"
#include "wx/msw/wrapcdlg.h"
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>

View File

@@ -29,6 +29,7 @@
#include "wx/combobox.h" #include "wx/combobox.h"
#ifndef WX_PRECOMP #ifndef WX_PRECOMP
#include "wx/msw/wrapcctl.h" // include <commctrl.h> "properly"
#include "wx/settings.h" #include "wx/settings.h"
#include "wx/log.h" #include "wx/log.h"
// for wxEVT_COMMAND_TEXT_ENTER // for wxEVT_COMMAND_TEXT_ENTER
@@ -40,9 +41,6 @@
#include "wx/clipbrd.h" #include "wx/clipbrd.h"
#include "wx/msw/private.h" #include "wx/msw/private.h"
// include <commctrl.h> "properly"
#include "wx/msw/wrapcctl.h"
#if wxUSE_TOOLTIPS #if wxUSE_TOOLTIPS
#include "wx/tooltip.h" #include "wx/tooltip.h"
#endif // wxUSE_TOOLTIPS #endif // wxUSE_TOOLTIPS

View File

@@ -29,6 +29,7 @@
#include "wx/control.h" #include "wx/control.h"
#ifndef WX_PRECOMP #ifndef WX_PRECOMP
#include "wx/msw/wrapcctl.h" // include <commctrl.h> "properly"
#include "wx/event.h" #include "wx/event.h"
#include "wx/app.h" #include "wx/app.h"
#include "wx/dcclient.h" #include "wx/dcclient.h"
@@ -47,9 +48,6 @@
#include "wx/msw/private.h" #include "wx/msw/private.h"
#include "wx/msw/uxtheme.h" #include "wx/msw/uxtheme.h"
// include <commctrl.h> "properly"
#include "wx/msw/wrapcctl.h"
// ---------------------------------------------------------------------------- // ----------------------------------------------------------------------------
// wxWin macros // wxWin macros
// ---------------------------------------------------------------------------- // ----------------------------------------------------------------------------

View File

@@ -27,6 +27,7 @@
#include "wx/cursor.h" #include "wx/cursor.h"
#ifndef WX_PRECOMP #ifndef WX_PRECOMP
#include "wx/msw/missing.h" // IDC_HAND
#include "wx/utils.h" #include "wx/utils.h"
#include "wx/app.h" #include "wx/app.h"
#include "wx/bitmap.h" #include "wx/bitmap.h"
@@ -38,7 +39,6 @@
#endif #endif
#include "wx/msw/private.h" #include "wx/msw/private.h"
#include "wx/msw/missing.h" // IDC_HAND
// define functions missing in MicroWin // define functions missing in MicroWin
#ifdef __WXMICROWIN__ #ifdef __WXMICROWIN__

View File

@@ -26,11 +26,11 @@
#if wxUSE_DATEPICKCTRL #if wxUSE_DATEPICKCTRL
#ifndef WX_PRECOMP #ifndef WX_PRECOMP
#include "wx/msw/wrapwin.h"
#include "wx/msw/wrapcctl.h" // include <commctrl.h> "properly"
#include "wx/app.h" #include "wx/app.h"
#include "wx/intl.h" #include "wx/intl.h"
#include "wx/dcclient.h" #include "wx/dcclient.h"
#include "wx/msw/wrapwin.h"
#include "wx/msw/wrapcctl.h"
#include "wx/msw/private.h" #include "wx/msw/private.h"
#endif #endif

View File

@@ -25,6 +25,7 @@
#endif #endif
#ifndef WX_PRECOMP #ifndef WX_PRECOMP
#include "wx/msw/wrapcdlg.h"
#include "wx/image.h" #include "wx/image.h"
#include "wx/window.h" #include "wx/window.h"
#include "wx/dc.h" #include "wx/dc.h"
@@ -48,7 +49,6 @@
#include <string.h> #include <string.h>
#include "wx/msw/wrapcdlg.h"
#ifndef __WIN32__ #ifndef __WIN32__
#include <print.h> #include <print.h>
#endif #endif

View File

@@ -29,6 +29,7 @@
#include "wx/dcprint.h" #include "wx/dcprint.h"
#ifndef WX_PRECOMP #ifndef WX_PRECOMP
#include "wx/msw/wrapcdlg.h"
#include "wx/string.h" #include "wx/string.h"
#include "wx/log.h" #include "wx/log.h"
#include "wx/window.h" #include "wx/window.h"
@@ -45,7 +46,6 @@
#include "wx/printdlg.h" #include "wx/printdlg.h"
#include "wx/msw/printdlg.h" #include "wx/msw/printdlg.h"
#include "wx/msw/wrapcdlg.h"
#ifndef __WIN32__ #ifndef __WIN32__
#include <print.h> #include <print.h>
#endif #endif

View File

@@ -27,6 +27,7 @@
#include "wx/dialog.h" #include "wx/dialog.h"
#ifndef WX_PRECOMP #ifndef WX_PRECOMP
#include "wx/msw/wrapcdlg.h"
#include "wx/utils.h" #include "wx/utils.h"
#include "wx/frame.h" #include "wx/frame.h"
#include "wx/app.h" #include "wx/app.h"
@@ -41,8 +42,6 @@
#include "wx/evtloop.h" #include "wx/evtloop.h"
#include "wx/ptr_scpd.h" #include "wx/ptr_scpd.h"
#include "wx/msw/wrapcdlg.h"
#if defined(__SMARTPHONE__) && defined(__WXWINCE__) #if defined(__SMARTPHONE__) && defined(__WXWINCE__)
#include "wx/msw/wince/resources.h" #include "wx/msw/wince/resources.h"
#endif // __SMARTPHONE__ && __WXWINCE__ #endif // __SMARTPHONE__ && __WXWINCE__

View File

@@ -28,13 +28,12 @@
#if wxUSE_DISPLAY #if wxUSE_DISPLAY
#ifndef WX_PRECOMP #ifndef WX_PRECOMP
#include "wx/msw/missing.h"
#include "wx/dynarray.h" #include "wx/dynarray.h"
#include "wx/app.h" #include "wx/app.h"
#include "wx/frame.h" #include "wx/frame.h"
#endif #endif
#include "wx/msw/missing.h"
#include "wx/dynload.h" #include "wx/dynload.h"
#include "wx/sysopt.h" #include "wx/sysopt.h"
@@ -459,7 +458,7 @@ wxRect wxDisplayImplWin32Base::GetClientArea() const
wxString wxDisplayImplWin32Base::GetName() const wxString wxDisplayImplWin32Base::GetName() const
{ {
if ( m_info.m_devName.IsEmpty() ) if ( m_info.m_devName.empty() )
m_info.Initialize(); m_info.Initialize();
return m_info.m_devName; return m_info.m_devName;

View File

@@ -27,6 +27,7 @@
#if wxUSE_DRAGIMAGE #if wxUSE_DRAGIMAGE
#ifndef WX_PRECOMP #ifndef WX_PRECOMP
#include "wx/msw/wrapcctl.h" // include <commctrl.h> "properly"
#include <stdio.h> #include <stdio.h>
#include "wx/window.h" #include "wx/window.h"
#include "wx/dcclient.h" #include "wx/dcclient.h"
@@ -48,9 +49,6 @@
#include "wx/msw/wince/missing.h" #include "wx/msw/wince/missing.h"
#endif // __WXWINCE__ #endif // __WXWINCE__
// include <commctrl.h> "properly"
#include "wx/msw/wrapcctl.h"
// Wine doesn't have this yet // Wine doesn't have this yet
#ifndef ListView_CreateDragImage #ifndef ListView_CreateDragImage
#define ListView_CreateDragImage(hwnd, i, lpptUpLeft) \ #define ListView_CreateDragImage(hwnd, i, lpptUpLeft) \

View File

@@ -4,7 +4,7 @@
// Author: Markus Greither and Vadim Zeitlin // Author: Markus Greither and Vadim Zeitlin
// Modified by: // Modified by:
// Created: 23/03/2001 // Created: 23/03/2001
// RCS-ID: // RCS-ID: $Id$
// Copyright: (c) Markus Greither // Copyright: (c) Markus Greither
// Licence: wxWindows licence // Licence: wxWindows licence
///////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////
@@ -27,11 +27,11 @@
#if wxUSE_FINDREPLDLG #if wxUSE_FINDREPLDLG
#ifndef WX_PRECOMP #ifndef WX_PRECOMP
#include "wx/msw/wrapcdlg.h"
#include "wx/intl.h" #include "wx/intl.h"
#include "wx/log.h" #include "wx/log.h"
#endif #endif
#include "wx/msw/wrapcdlg.h"
#include "wx/fdrepdlg.h" #include "wx/fdrepdlg.h"
// ---------------------------------------------------------------------------- // ----------------------------------------------------------------------------
@@ -539,4 +539,3 @@ void wxFindReplaceDialog::DoGetClientSize(int *width, int *height) const
} }
#endif // wxUSE_FINDREPLDLG #endif // wxUSE_FINDREPLDLG

View File

@@ -29,6 +29,8 @@
#include "wx/filedlg.h" #include "wx/filedlg.h"
#ifndef WX_PRECOMP #ifndef WX_PRECOMP
#include "wx/msw/wrapcdlg.h"
#include "wx/msw/missing.h"
#include "wx/utils.h" #include "wx/utils.h"
#include "wx/msgdlg.h" #include "wx/msgdlg.h"
#include "wx/filefn.h" #include "wx/filefn.h"
@@ -38,16 +40,12 @@
#include "wx/math.h" #include "wx/math.h"
#endif #endif
#include "wx/msw/wrapcdlg.h"
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
#include "wx/filename.h" #include "wx/filename.h"
#include "wx/tokenzr.h" #include "wx/tokenzr.h"
#include "wx/msw/missing.h"
// ---------------------------------------------------------------------------- // ----------------------------------------------------------------------------
// constants // constants
// ---------------------------------------------------------------------------- // ----------------------------------------------------------------------------

View File

@@ -29,6 +29,7 @@
#include "wx/fontdlg.h" #include "wx/fontdlg.h"
#ifndef WX_PRECOMP #ifndef WX_PRECOMP
#include "wx/msw/wrapcdlg.h"
#include "wx/utils.h" #include "wx/utils.h"
#include "wx/dialog.h" #include "wx/dialog.h"
#include "wx/log.h" #include "wx/log.h"
@@ -36,8 +37,6 @@
#include "wx/math.h" #include "wx/math.h"
#endif #endif
#include "wx/msw/wrapcdlg.h"
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>

View File

@@ -27,6 +27,7 @@
#include "wx/frame.h" #include "wx/frame.h"
#ifndef WX_PRECOMP #ifndef WX_PRECOMP
#include "wx/msw/wrapcctl.h" // include <commctrl.h> "properly"
#include "wx/app.h" #include "wx/app.h"
#include "wx/menu.h" #include "wx/menu.h"
#include "wx/utils.h" #include "wx/utils.h"
@@ -43,9 +44,6 @@
#include "wx/msw/private.h" #include "wx/msw/private.h"
// include <commctrl.h> "properly"
#include "wx/msw/wrapcctl.h"
#if defined(__POCKETPC__) || defined(__SMARTPHONE__) #if defined(__POCKETPC__) || defined(__SMARTPHONE__)
#include <ole2.h> #include <ole2.h>
#include <aygshell.h> #include <aygshell.h>

View File

@@ -29,13 +29,11 @@
#include "wx/gauge.h" #include "wx/gauge.h"
#ifndef WX_PRECOMP #ifndef WX_PRECOMP
#include "wx/msw/wrapcctl.h" // include <commctrl.h> "properly"
#endif #endif
#include "wx/msw/private.h" #include "wx/msw/private.h"
// include <commctrl.h> "properly"
#include "wx/msw/wrapcctl.h"
// ---------------------------------------------------------------------------- // ----------------------------------------------------------------------------
// constants // constants
// ---------------------------------------------------------------------------- // ----------------------------------------------------------------------------

View File

@@ -25,6 +25,7 @@
#endif #endif
#ifndef WX_PRECOMP #ifndef WX_PRECOMP
#include "wx/msw/wrapcctl.h" // include <commctrl.h> "properly"
#include "wx/window.h" #include "wx/window.h"
#include "wx/icon.h" #include "wx/icon.h"
#include "wx/dc.h" #include "wx/dc.h"
@@ -39,9 +40,6 @@
#include "wx/msw/imaglist.h" #include "wx/msw/imaglist.h"
#include "wx/msw/private.h" #include "wx/msw/private.h"
// include <commctrl.h> "properly"
#include "wx/msw/wrapcctl.h"
// ---------------------------------------------------------------------------- // ----------------------------------------------------------------------------
// wxWin macros // wxWin macros
// ---------------------------------------------------------------------------- // ----------------------------------------------------------------------------

View File

@@ -21,13 +21,14 @@
#if wxUSE_CONFIG && !wxUSE_UNICODE #if wxUSE_CONFIG && !wxUSE_UNICODE
#ifndef WX_PRECOMP #ifndef WX_PRECOMP
#include "wx/dynarray.h" #include "wx/msw/wrapwin.h"
#include "wx/string.h" #include "wx/dynarray.h"
#include "wx/intl.h" #include "wx/string.h"
#include "wx/event.h" #include "wx/intl.h"
#include "wx/app.h" #include "wx/event.h"
#include "wx/utils.h" #include "wx/app.h"
#include "wx/log.h" #include "wx/utils.h"
#include "wx/log.h"
#endif //WX_PRECOMP #endif //WX_PRECOMP
#include "wx/config.h" #include "wx/config.h"
@@ -35,12 +36,6 @@
#include "wx/msw/iniconf.h" #include "wx/msw/iniconf.h"
// _WINDOWS_ is defined when windows.h is included,
// __WXMSW__ is defined for MS Windows compilation
#if defined(__WXMSW__) && !defined(_WINDOWS_)
#include "wx/msw/wrapwin.h"
#endif //windows.h
// ---------------------------------------------------------------------------- // ----------------------------------------------------------------------------
// constants // constants
// ---------------------------------------------------------------------------- // ----------------------------------------------------------------------------

View File

@@ -27,6 +27,7 @@
#if wxUSE_LISTCTRL #if wxUSE_LISTCTRL
#ifndef WX_PRECOMP #ifndef WX_PRECOMP
#include "wx/msw/wrapcctl.h" // include <commctrl.h> "properly"
#include "wx/app.h" #include "wx/app.h"
#include "wx/intl.h" #include "wx/intl.h"
#include "wx/log.h" #include "wx/log.h"
@@ -48,9 +49,6 @@
#endif #endif
#endif #endif
// include <commctrl.h> "properly"
#include "wx/msw/wrapcctl.h"
// Currently gcc and watcom don't define NMLVFINDITEM, and DMC only defines // Currently gcc and watcom don't define NMLVFINDITEM, and DMC only defines
// it by its old name NM_FINDTIEM. // it by its old name NM_FINDTIEM.
// //

View File

@@ -29,6 +29,7 @@
#include "wx/menu.h" #include "wx/menu.h"
#ifndef WX_PRECOMP #ifndef WX_PRECOMP
#include "wx/msw/wrapcctl.h" // include <commctrl.h> "properly"
#include "wx/frame.h" #include "wx/frame.h"
#include "wx/utils.h" #include "wx/utils.h"
#include "wx/intl.h" #include "wx/intl.h"
@@ -41,9 +42,6 @@
#include "wx/msw/private.h" #include "wx/msw/private.h"
// include <commctrl.h> "properly"
#include "wx/msw/wrapcctl.h"
#ifdef __WXWINCE__ #ifdef __WXWINCE__
#include <windows.h> #include <windows.h>
#include <windowsx.h> #include <windowsx.h>

View File

@@ -18,30 +18,28 @@
#if wxUSE_NOTEBOOK #if wxUSE_NOTEBOOK
#include "wx/notebook.h" #include "wx/notebook.h"
#ifndef WX_PRECOMP #ifndef WX_PRECOMP
#include "wx/string.h" #include "wx/msw/wrapcctl.h" // include <commctrl.h> "properly"
#include "wx/dc.h" #include "wx/string.h"
#include "wx/log.h" #include "wx/dc.h"
#include "wx/event.h" #include "wx/log.h"
#include "wx/app.h" #include "wx/event.h"
#include "wx/dcclient.h" #include "wx/app.h"
#include "wx/dcmemory.h" #include "wx/dcclient.h"
#include "wx/control.h" #include "wx/dcmemory.h"
#include "wx/control.h"
#endif // WX_PRECOMP #endif // WX_PRECOMP
#include "wx/imaglist.h" #include "wx/imaglist.h"
#include "wx/sysopt.h" #include "wx/sysopt.h"
#include "wx/msw/private.h" #include "wx/msw/private.h"
#include <windowsx.h> #include <windowsx.h>
#include "wx/msw/winundef.h" #include "wx/msw/winundef.h"
// include <commctrl.h> "properly"
#include "wx/msw/wrapcctl.h"
#if wxUSE_UXTHEME #if wxUSE_UXTHEME
#include "wx/msw/uxtheme.h" #include "wx/msw/uxtheme.h"
#endif #endif

View File

@@ -29,12 +29,11 @@
#include "wx/access.h" #include "wx/access.h"
#ifndef WX_PRECOMP #ifndef WX_PRECOMP
#include "wx/msw/wrapwin.h"
#include "wx/window.h" #include "wx/window.h"
#include "wx/log.h" #include "wx/log.h"
#endif #endif
#include "wx/msw/wrapwin.h"
// for some compilers, the entire ole2.h must be included, not only oleauto.h // for some compilers, the entire ole2.h must be included, not only oleauto.h
#if wxUSE_NORLANDER_HEADERS || defined(__WATCOMC__) #if wxUSE_NORLANDER_HEADERS || defined(__WATCOMC__)
#include <ole2.h> #include <ole2.h>

View File

@@ -27,6 +27,7 @@
#if wxUSE_OLE && wxUSE_DRAG_AND_DROP #if wxUSE_OLE && wxUSE_DRAG_AND_DROP
#ifndef WX_PRECOMP #ifndef WX_PRECOMP
#include "wx/msw/wrapwin.h"
#include "wx/log.h" #include "wx/log.h"
#endif #endif
@@ -39,9 +40,6 @@
#ifdef __WIN32__ #ifdef __WIN32__
#if !defined(__GNUWIN32__) || wxUSE_NORLANDER_HEADERS #if !defined(__GNUWIN32__) || wxUSE_NORLANDER_HEADERS
#if wxCHECK_W32API_VERSION( 1, 0 )
#include "wx/msw/wrapwin.h"
#endif
#include <shlobj.h> // for DROPFILES structure #include <shlobj.h> // for DROPFILES structure
#endif #endif
#else #else

View File

@@ -22,10 +22,10 @@
#if wxUSE_OLE && ( wxUSE_DRAG_AND_DROP || (defined(__WXDEBUG__) && wxUSE_DATAOBJ) ) #if wxUSE_OLE && ( wxUSE_DRAG_AND_DROP || (defined(__WXDEBUG__) && wxUSE_DATAOBJ) )
// standard headers #ifndef WX_PRECOMP
#if wxCHECK_W32API_VERSION( 1, 0 )
#include "wx/msw/wrapwin.h" #include "wx/msw/wrapwin.h"
#endif #endif
#include <rpc.h> // UUID related functions #include <rpc.h> // UUID related functions
#include "wx/msw/ole/uuid.h" #include "wx/msw/ole/uuid.h"

View File

@@ -29,6 +29,7 @@
#if wxUSE_PRINTING_ARCHITECTURE && (!defined(__WXUNIVERSAL__) || !wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW) #if wxUSE_PRINTING_ARCHITECTURE && (!defined(__WXUNIVERSAL__) || !wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW)
#ifndef WX_PRECOMP #ifndef WX_PRECOMP
#include "wx/msw/wrapcdlg.h"
#include "wx/app.h" #include "wx/app.h"
#include "wx/dcprint.h" #include "wx/dcprint.h"
#include "wx/cmndata.h" #include "wx/cmndata.h"
@@ -40,8 +41,6 @@
#include <stdlib.h> #include <stdlib.h>
#include "wx/msw/wrapcdlg.h"
#ifndef __WIN32__ #ifndef __WIN32__
#include <print.h> #include <print.h>
#endif #endif

View File

@@ -29,6 +29,7 @@
#if wxUSE_PRINTING_ARCHITECTURE && (!defined(__WXUNIVERSAL__) || !wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW) #if wxUSE_PRINTING_ARCHITECTURE && (!defined(__WXUNIVERSAL__) || !wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW)
#ifndef WX_PRECOMP #ifndef WX_PRECOMP
#include "wx/msw/wrapcdlg.h"
#include "wx/window.h" #include "wx/window.h"
#include "wx/msw/private.h" #include "wx/msw/private.h"
#include "wx/utils.h" #include "wx/utils.h"
@@ -46,7 +47,6 @@
#include <stdlib.h> #include <stdlib.h>
#include "wx/msw/wrapcdlg.h"
#ifndef __WIN32__ #ifndef __WIN32__
#include <print.h> #include <print.h>
#endif #endif

View File

@@ -20,17 +20,16 @@
#endif #endif
#ifndef WX_PRECOMP #ifndef WX_PRECOMP
#include "wx/msw/wrapwin.h"
#include "wx/string.h" #include "wx/string.h"
#include "wx/intl.h" #include "wx/intl.h"
#include "wx/log.h" #include "wx/log.h"
#endif #endif
#include "wx/file.h" #include "wx/file.h"
#include "wx/wfstream.h" #include "wx/wfstream.h"
// Windows headers // Windows headers
#include "wx/msw/wrapwin.h"
#ifdef __WXWINCE__ #ifdef __WXWINCE__
#include "wx/msw/private.h" #include "wx/msw/private.h"
#include <winbase.h> #include <winbase.h>

View File

@@ -27,6 +27,7 @@
#include "wx/settings.h" #include "wx/settings.h"
#ifndef WX_PRECOMP #ifndef WX_PRECOMP
#include "wx/msw/missing.h" // for SM_CXCURSOR, SM_CYCURSOR, SM_TABLETPC
#include "wx/utils.h" #include "wx/utils.h"
#include "wx/gdicmn.h" #include "wx/gdicmn.h"
#include "wx/module.h" #include "wx/module.h"
@@ -40,9 +41,6 @@
#include "wx/fontutil.h" #include "wx/fontutil.h"
// for SM_CXCURSOR, SM_CYCURSOR, SM_TABLETPC
#include "wx/msw/missing.h"
// ---------------------------------------------------------------------------- // ----------------------------------------------------------------------------
// private classes // private classes
// ---------------------------------------------------------------------------- // ----------------------------------------------------------------------------

View File

@@ -30,14 +30,12 @@
#include "wx/slider.h" #include "wx/slider.h"
#ifndef WX_PRECOMP #ifndef WX_PRECOMP
#include "wx/msw/wrapcctl.h" // include <commctrl.h> "properly"
#include "wx/brush.h" #include "wx/brush.h"
#endif #endif
#include "wx/msw/subwin.h" #include "wx/msw/subwin.h"
// include <commctrl.h> "properly"
#include "wx/msw/wrapcctl.h"
// ---------------------------------------------------------------------------- // ----------------------------------------------------------------------------
// constants // constants
// ---------------------------------------------------------------------------- // ----------------------------------------------------------------------------

View File

@@ -25,6 +25,7 @@
#endif #endif
#ifndef WX_PRECOMP #ifndef WX_PRECOMP
#include "wx/msw/wrapcctl.h" // include <commctrl.h> "properly"
#include "wx/app.h" #include "wx/app.h"
#endif #endif
@@ -35,7 +36,6 @@
IMPLEMENT_DYNAMIC_CLASS(wxSpinEvent, wxNotifyEvent) IMPLEMENT_DYNAMIC_CLASS(wxSpinEvent, wxNotifyEvent)
#include "wx/msw/private.h" #include "wx/msw/private.h"
#include "wx/msw/wrapcctl.h"
#ifndef UDM_SETRANGE32 #ifndef UDM_SETRANGE32
#define UDM_SETRANGE32 (WM_USER+111) #define UDM_SETRANGE32 (WM_USER+111)

View File

@@ -29,12 +29,12 @@
#include "wx/spinctrl.h" #include "wx/spinctrl.h"
#ifndef WX_PRECOMP #ifndef WX_PRECOMP
#include "wx/msw/wrapcctl.h" // include <commctrl.h> "properly"
#include "wx/event.h" #include "wx/event.h"
#include "wx/textctrl.h" #include "wx/textctrl.h"
#endif #endif
#include "wx/msw/private.h" #include "wx/msw/private.h"
#include "wx/msw/wrapcctl.h"
#if wxUSE_TOOLTIPS #if wxUSE_TOOLTIPS
#include "wx/tooltip.h" #include "wx/tooltip.h"

View File

@@ -29,6 +29,7 @@
#include "wx/statbox.h" #include "wx/statbox.h"
#ifndef WX_PRECOMP #ifndef WX_PRECOMP
#include "wx/msw/missing.h"
#include "wx/app.h" #include "wx/app.h"
#include "wx/dcclient.h" #include "wx/dcclient.h"
#include "wx/dcmemory.h" #include "wx/dcmemory.h"
@@ -40,7 +41,6 @@
#include "wx/msw/uxtheme.h" #include "wx/msw/uxtheme.h"
#include "wx/msw/private.h" #include "wx/msw/private.h"
#include "wx/msw/missing.h"
// ---------------------------------------------------------------------------- // ----------------------------------------------------------------------------
// wxWin macros // wxWin macros

View File

@@ -21,6 +21,7 @@
#include "wx/statusbr.h" #include "wx/statusbr.h"
#ifndef WX_PRECOMP #ifndef WX_PRECOMP
#include "wx/msw/wrapcctl.h" // include <commctrl.h> "properly"
#include "wx/frame.h" #include "wx/frame.h"
#include "wx/settings.h" #include "wx/settings.h"
#include "wx/dcclient.h" #include "wx/dcclient.h"
@@ -31,9 +32,6 @@
#include "wx/msw/private.h" #include "wx/msw/private.h"
#include <windowsx.h> #include <windowsx.h>
// include <commctrl.h> "properly"
#include "wx/msw/wrapcctl.h"
#if wxUSE_UXTHEME #if wxUSE_UXTHEME
#include "wx/msw/uxtheme.h" #include "wx/msw/uxtheme.h"
#endif #endif

View File

@@ -1,5 +1,5 @@
///////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////
// Name: msw/statline.cpp // Name: src/msw/statline.cpp
// Purpose: MSW version of wxStaticLine class // Purpose: MSW version of wxStaticLine class
// Author: Vadim Zeitlin // Author: Vadim Zeitlin
// Created: 28.06.99 // Created: 28.06.99
@@ -27,8 +27,10 @@
#if wxUSE_STATLINE #if wxUSE_STATLINE
#include "wx/msw/private.h" #ifndef WX_PRECOMP
#include "wx/msw/missing.h" #include "wx/msw/private.h"
#include "wx/msw/missing.h"
#endif
// ============================================================================ // ============================================================================
// implementation // implementation
@@ -127,4 +129,3 @@ WXDWORD wxStaticLine::MSWGetStyle(long style, WXDWORD *exstyle) const
} }
#endif // wxUSE_STATLINE #endif // wxUSE_STATLINE

View File

@@ -19,15 +19,13 @@
#if wxUSE_TAB_DIALOG #if wxUSE_TAB_DIALOG
#ifndef WX_PRECOMP #ifndef WX_PRECOMP
#include "wx/msw/wrapcctl.h" // include <commctrl.h> "properly"
#include "wx/wx.h" #include "wx/wx.h"
#include "wx/app.h" #include "wx/app.h"
#endif #endif
#include "wx/msw/private.h" #include "wx/msw/private.h"
// include <commctrl.h> "properly"
#include "wx/msw/wrapcctl.h"
#include "wx/tabctrl.h" #include "wx/tabctrl.h"
#include "wx/msw/imaglist.h" #include "wx/msw/imaglist.h"

View File

@@ -29,6 +29,7 @@
#include "wx/toolbar.h" #include "wx/toolbar.h"
#ifndef WX_PRECOMP #ifndef WX_PRECOMP
#include "wx/msw/wrapcctl.h" // include <commctrl.h> "properly"
#include "wx/dynarray.h" #include "wx/dynarray.h"
#include "wx/frame.h" #include "wx/frame.h"
#include "wx/log.h" #include "wx/log.h"
@@ -49,9 +50,6 @@
#include "wx/msw/uxtheme.h" #include "wx/msw/uxtheme.h"
#endif #endif
// include <commctrl.h> "properly"
#include "wx/msw/wrapcctl.h"
// this define controls whether the code for button colours remapping (only // this define controls whether the code for button colours remapping (only
// useful for 16 or 256 colour images) is active at all, it's always turned off // useful for 16 or 256 colour images) is active at all, it's always turned off
// for CE where it doesn't compile (and is probably not needed anyhow) and may // for CE where it doesn't compile (and is probably not needed anyhow) and may

View File

@@ -27,6 +27,7 @@
#if wxUSE_TEXTCTRL && !(defined(__SMARTPHONE__) && defined(__WXWINCE__)) #if wxUSE_TEXTCTRL && !(defined(__SMARTPHONE__) && defined(__WXWINCE__))
#ifndef WX_PRECOMP #ifndef WX_PRECOMP
#include "wx/msw/missing.h"
#include "wx/textctrl.h" #include "wx/textctrl.h"
#include "wx/settings.h" #include "wx/settings.h"
#include "wx/brush.h" #include "wx/brush.h"
@@ -71,8 +72,6 @@
#include <richedit.h> #include <richedit.h>
#endif #endif
#include "wx/msw/missing.h"
#endif // wxUSE_RICHEDIT #endif // wxUSE_RICHEDIT
// ---------------------------------------------------------------------------- // ----------------------------------------------------------------------------

View File

@@ -26,6 +26,7 @@
#include "wx/thread.h" #include "wx/thread.h"
#ifndef WX_PRECOMP #ifndef WX_PRECOMP
#include "wx/msw/missing.h"
#include "wx/intl.h" #include "wx/intl.h"
#include "wx/app.h" #include "wx/app.h"
#include "wx/module.h" #include "wx/module.h"
@@ -35,7 +36,6 @@
#include "wx/scopeguard.h" #include "wx/scopeguard.h"
#include "wx/msw/private.h" #include "wx/msw/private.h"
#include "wx/msw/missing.h"
#include "wx/msw/seh.h" #include "wx/msw/seh.h"
#include "wx/except.h" #include "wx/except.h"

View File

@@ -28,6 +28,7 @@
#include "wx/tooltip.h" #include "wx/tooltip.h"
#ifndef WX_PRECOMP #ifndef WX_PRECOMP
#include "wx/msw/wrapcctl.h" // include <commctrl.h> "properly"
#include "wx/app.h" #include "wx/app.h"
#include "wx/control.h" #include "wx/control.h"
#include "wx/combobox.h" #include "wx/combobox.h"
@@ -36,9 +37,6 @@
#include "wx/tokenzr.h" #include "wx/tokenzr.h"
#include "wx/msw/private.h" #include "wx/msw/private.h"
// include <commctrl.h> "properly"
#include "wx/msw/wrapcctl.h"
// VZ: normally, the trick with subclassing the tooltip control and processing // VZ: normally, the trick with subclassing the tooltip control and processing
// TTM_WINDOWFROMPOINT should work but, somehow, it doesn't. I leave the // TTM_WINDOWFROMPOINT should work but, somehow, it doesn't. I leave the
// code here for now (but it's not compiled) in case we need it later. // code here for now (but it's not compiled) in case we need it later.
@@ -347,7 +345,7 @@ void wxToolTip::Add(WXHWND hWnd)
} }
if ( sz.cx > max ) if ( sz.cx > max )
max = sz.cx; max = sz.cx;
token = tokenizer.GetNextToken(); token = tokenizer.GetNextToken();
} }

View File

@@ -27,6 +27,7 @@
#include "wx/toplevel.h" #include "wx/toplevel.h"
#ifndef WX_PRECOMP #ifndef WX_PRECOMP
#include "wx/msw/missing.h"
#include "wx/app.h" #include "wx/app.h"
#include "wx/dialog.h" #include "wx/dialog.h"
#include "wx/string.h" #include "wx/string.h"
@@ -50,7 +51,6 @@
#include "wx/msw/wince/missing.h" #include "wx/msw/wince/missing.h"
#endif #endif
#include "wx/msw/missing.h"
#include "wx/msw/winundef.h" #include "wx/msw/winundef.h"
#include "wx/display.h" #include "wx/display.h"

View File

@@ -29,6 +29,8 @@
#include "wx/treectrl.h" #include "wx/treectrl.h"
#ifndef WX_PRECOMP #ifndef WX_PRECOMP
#include "wx/msw/wrapcctl.h" // include <commctrl.h> "properly"
#include "wx/msw/missing.h"
#include "wx/dynarray.h" #include "wx/dynarray.h"
#include "wx/log.h" #include "wx/log.h"
#include "wx/app.h" #include "wx/app.h"
@@ -37,11 +39,6 @@
#include "wx/msw/private.h" #include "wx/msw/private.h"
// include <commctrl.h> "properly"
#include "wx/msw/wrapcctl.h"
#include "wx/msw/missing.h"
// Set this to 1 to be _absolutely_ sure that repainting will work for all // Set this to 1 to be _absolutely_ sure that repainting will work for all
// comctl32.dll versions // comctl32.dll versions
#define wxUSE_COMCTL32_SAFELY 0 #define wxUSE_COMCTL32_SAFELY 0

View File

@@ -25,6 +25,7 @@
#endif #endif
#ifndef WX_PRECOMP #ifndef WX_PRECOMP
#include "wx/msw/missing.h" // CHARSET_HANGUL
#include "wx/utils.h" #include "wx/utils.h"
#include "wx/app.h" #include "wx/app.h"
#include "wx/intl.h" #include "wx/intl.h"
@@ -41,7 +42,6 @@
#include "wx/confbase.h" // for wxExpandEnvVars() #include "wx/confbase.h" // for wxExpandEnvVars()
#include "wx/msw/private.h" // includes <windows.h> #include "wx/msw/private.h" // includes <windows.h>
#include "wx/msw/missing.h" // CHARSET_HANGUL
#if defined(__CYGWIN__) #if defined(__CYGWIN__)
//CYGWIN gives annoying warning about runtime stuff if we don't do this //CYGWIN gives annoying warning about runtime stuff if we don't do this

View File

@@ -26,6 +26,7 @@
#if wxUSE_FSVOLUME #if wxUSE_FSVOLUME
#ifndef WX_PRECOMP #ifndef WX_PRECOMP
#include "wx/msw/missing.h"
#if wxUSE_GUI #if wxUSE_GUI
#include "wx/icon.h" #include "wx/icon.h"
#endif #endif
@@ -41,7 +42,6 @@
#include <shellapi.h> #include <shellapi.h>
#include <shlobj.h> #include <shlobj.h>
#include "wx/msw/missing.h"
#if wxUSE_BASE #if wxUSE_BASE

View File

@@ -29,11 +29,9 @@
#include "wx/checklst.h" #include "wx/checklst.h"
#ifndef WX_PRECOMP #ifndef WX_PRECOMP
#include "wx/msw/wrapcctl.h" // include <commctrl.h> "properly"
#endif #endif
// include <commctrl.h> "properly"
#include "wx/msw/wrapcctl.h"
// ============================================================================ // ============================================================================
// implementation // implementation
// ============================================================================ // ============================================================================

View File

@@ -29,11 +29,9 @@
#include "wx/choice.h" #include "wx/choice.h"
#ifndef WX_PRECOMP #ifndef WX_PRECOMP
#include "wx/msw/wrapcctl.h" // include <commctrl.h> "properly"
#endif #endif
// include <commctrl.h> "properly"
#include "wx/msw/wrapcctl.h"
#include "wx/spinbutt.h" // for wxSpinnerBestSize #include "wx/spinbutt.h" // for wxSpinnerBestSize
#if wxUSE_EXTENDED_RTTI #if wxUSE_EXTENDED_RTTI

View File

@@ -1,5 +1,5 @@
///////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////
// Name: helpwce.h // Name: src/msw/wince/helpwce.cpp
// Purpose: Help system: Windows CE help implementation // Purpose: Help system: Windows CE help implementation
// Author: Julian Smart // Author: Julian Smart
// Modified by: // Modified by:
@@ -22,11 +22,11 @@
#include "wx/msw/wince/helpwce.h" #include "wx/msw/wince/helpwce.h"
#ifndef WX_PRECOMP #ifndef WX_PRECOMP
#include "wx/msw/missing.h"
#include "wx/intl.h" #include "wx/intl.h"
#endif #endif
#include "wx/msw/private.h" #include "wx/msw/private.h"
#include "wx/msw/missing.h"
IMPLEMENT_DYNAMIC_CLASS(wxWinceHelpController, wxHelpControllerBase) IMPLEMENT_DYNAMIC_CLASS(wxWinceHelpController, wxHelpControllerBase)
@@ -38,7 +38,7 @@ bool wxWinceHelpController::Initialize(const wxString& filename)
bool wxWinceHelpController::LoadFile(const wxString& file) bool wxWinceHelpController::LoadFile(const wxString& file)
{ {
if (!file.IsEmpty()) if (!file.empty())
m_helpFile = file; m_helpFile = file;
return true; return true;
} }
@@ -93,7 +93,7 @@ wxString wxWinceHelpController::GetValidFilename(const wxString& file) const
wxSplitPath(file, & path, & name, & ext); wxSplitPath(file, & path, & name, & ext);
wxString fullName; wxString fullName;
if (path.IsEmpty()) if (path.empty())
fullName = name + wxT(".htm"); fullName = name + wxT(".htm");
else if (path.Last() == wxT('\\')) else if (path.Last() == wxT('\\'))
fullName = path + name + wxT(".htm"); fullName = path + name + wxT(".htm");
@@ -109,10 +109,10 @@ wxString wxWinceHelpController::GetValidFilename(const wxString& file) const
// View URL // View URL
bool wxWinceHelpController::ViewURL(const wxString& topic) bool wxWinceHelpController::ViewURL(const wxString& topic)
{ {
if (m_helpFile.IsEmpty()) return false; if (m_helpFile.empty()) return false;
wxString url( wxT("file:") + GetValidFilename(m_helpFile) ); wxString url( wxT("file:") + GetValidFilename(m_helpFile) );
if (!topic.IsEmpty()) if (!topic.empty())
url = url + wxT("#") + topic; url = url + wxT("#") + topic;
return CreateProcess(wxT("peghelp.exe"), return CreateProcess(wxT("peghelp.exe"),
@@ -121,4 +121,3 @@ bool wxWinceHelpController::ViewURL(const wxString& topic)
} }
#endif // wxUSE_HELP #endif // wxUSE_HELP

View File

@@ -1,4 +1,13 @@
// Copyright 1998, Ben Goetter. All rights reserved. ///////////////////////////////////////////////////////////////////////////////
// Name: src/msw/wince/net.cpp
// Purpose:
// Author:
// Modified by:
// Created:
// RCS-ID: $Id$
// Copyright: Copyright 1998, Ben Goetter. All rights reserved.
// Licence: wxWindows licence
///////////////////////////////////////////////////////////////////////////////
/* /*
patch holes in winsock patch holes in winsock
@@ -19,7 +28,10 @@
#pragma hdrstop #pragma hdrstop
#endif #endif
#include "wx/msw/wrapwin.h" #ifndef WX_PRECOMP
#include "wx/msw/wrapwin.h"
#endif
#include <tchar.h> #include <tchar.h>
#include <winsock.h> #include <winsock.h>
#include <string.h> #include <string.h>
@@ -171,4 +183,3 @@ struct protoent * WINSOCKAPI getprotobynumber(int proto)
++pr; ++pr;
} return NULL; } return NULL;
} }

View File

@@ -31,6 +31,7 @@
#include "wx/toolbar.h" #include "wx/toolbar.h"
#ifndef WX_PRECOMP #ifndef WX_PRECOMP
#include "wx/msw/wrapcctl.h" // include <commctrl.h> "properly"
#include "wx/dynarray.h" #include "wx/dynarray.h"
#include "wx/frame.h" #include "wx/frame.h"
#include "wx/log.h" #include "wx/log.h"
@@ -45,9 +46,6 @@
#include "malloc.h" #include "malloc.h"
#endif #endif
// include <commctrl.h> "properly"
#include "wx/msw/wrapcctl.h"
#include "wx/msw/private.h" #include "wx/msw/private.h"
#include <windows.h> #include <windows.h>
#include <windowsx.h> #include <windowsx.h>

View File

@@ -29,11 +29,9 @@
#include "wx/textctrl.h" #include "wx/textctrl.h"
#ifndef WX_PRECOMP #ifndef WX_PRECOMP
#include "wx/msw/wrapcctl.h" // include <commctrl.h> "properly"
#endif #endif
// include <commctrl.h> "properly"
#include "wx/msw/wrapcctl.h"
#include "wx/spinbutt.h" #include "wx/spinbutt.h"
#include "wx/textfile.h" #include "wx/textfile.h"

View File

@@ -28,6 +28,8 @@
#ifndef WX_PRECOMP #ifndef WX_PRECOMP
#include "wx/msw/wrapwin.h" #include "wx/msw/wrapwin.h"
#include "wx/msw/wrapcctl.h" // include <commctrl.h> "properly"
#include "wx/msw/missing.h"
#include "wx/accel.h" #include "wx/accel.h"
#include "wx/menu.h" #include "wx/menu.h"
#include "wx/dc.h" #include "wx/dc.h"
@@ -103,15 +105,10 @@
#include <windowsx.h> #include <windowsx.h>
#endif #endif
// include <commctrl.h> "properly"
#include "wx/msw/wrapcctl.h"
#if !defined __WXWINCE__ && !defined NEED_PBT_H #if !defined __WXWINCE__ && !defined NEED_PBT_H
#include <pbt.h> #include <pbt.h>
#endif #endif
#include "wx/msw/missing.h"
#if defined(__WXWINCE__) #if defined(__WXWINCE__)
#include "wx/msw/wince/missing.h" #include "wx/msw/wince/missing.h"
#ifdef __POCKETPC__ #ifdef __POCKETPC__