#define _WIN32_IE 0x0600
#endif // !defined(_WIN32_IE)
+#include "wx/msw/wrapwin.h"
+
#include <commctrl.h>
// define things which might be missing from our commctrl.h
#endif
#ifndef WX_PRECOMP
+ #ifdef __WXMSW__
+ #include "wx/msw/wrapwin.h" // includes windows.h for MessageBox()
+ #endif
#include "wx/list.h"
#include "wx/app.h"
#include "wx/intl.h"
#include <signal.h> // for SIGTRAP used by wxTrap()
#endif //Win/Unix
-#if defined(__WXMSW__)
- #include "wx/msw/wrapwin.h" // includes windows.h for MessageBox()
-#endif
-
#if wxUSE_FONTMAP
#include "wx/fontmap.h"
#endif // wxUSE_FONTMAP
#include "wx/cmndata.h"
#ifndef WX_PRECOMP
+ #if defined(__WXMSW__)
+ #include "wx/msw/wrapcdlg.h"
+ #endif // MSW
#include <stdio.h>
#include "wx/string.h"
#include "wx/utils.h"
#endif // wxUSE_FONTDLG
#if wxUSE_PRINTING_ARCHITECTURE
- #include "wx/paper.h"
-#endif // wxUSE_PRINTING_ARCHITECTURE
-
-#if defined(__WXMSW__)
- #include "wx/msw/wrapcdlg.h"
-#endif // MSW
- #if wxUSE_PRINTING_ARCHITECTURE
+#include "wx/paper.h"
#if defined(__WXMAC__)
#include "wx/mac/private/print.h"
#endif
- IMPLEMENT_DYNAMIC_CLASS(wxPrintData, wxObject)
- IMPLEMENT_DYNAMIC_CLASS(wxPrintDialogData, wxObject)
- IMPLEMENT_DYNAMIC_CLASS(wxPageSetupDialogData, wxObject)
- #endif // wxUSE_PRINTING_ARCHITECTURE
+IMPLEMENT_DYNAMIC_CLASS(wxPrintData, wxObject)
+IMPLEMENT_DYNAMIC_CLASS(wxPrintDialogData, wxObject)
+IMPLEMENT_DYNAMIC_CLASS(wxPageSetupDialogData, wxObject)
+
+#endif // wxUSE_PRINTING_ARCHITECTURE
- IMPLEMENT_DYNAMIC_CLASS(wxFontData, wxObject)
- IMPLEMENT_DYNAMIC_CLASS(wxColourData, wxObject)
+IMPLEMENT_DYNAMIC_CLASS(wxFontData, wxObject)
+IMPLEMENT_DYNAMIC_CLASS(wxColourData, wxObject)
// ============================================================================
// implementation
#if !defined(wxUSE_DATETIME) || wxUSE_DATETIME
#ifndef WX_PRECOMP
+ #ifdef __WXMSW__
+ #include "wx/msw/wrapwin.h"
+ #endif
#include "wx/string.h"
#include "wx/log.h"
#include "wx/intl.h"
#include <ctype.h>
#ifdef __WINDOWS__
- #include "wx/msw/wrapwin.h"
#include <winnls.h>
#ifndef __WXWINCE__
#include <locale.h>
#endif
#ifndef WX_PRECOMP
+ #ifdef __WXMSW__
+ #include "wx/msw/wrapwin.h" // For GetShort/LongPathName
+ #endif
#include "wx/dynarray.h"
#include "wx/intl.h"
#include "wx/log.h"
#include "wx/file.h"
#include "wx/dynlib.h"
-// For GetShort/LongPathName
-#ifdef __WIN32__
-#include "wx/msw/wrapwin.h"
-#if defined(__MINGW32__)
-#include "wx/msw/gccpriv.h"
-#endif
+#if defined(__WIN32__) && defined(__MINGW32__)
+ #include "wx/msw/gccpriv.h"
#endif
#ifdef __WXWINCE__
#if wxUSE_IMAGE
#ifndef WX_PRECOMP
+ #ifdef __WXMSW__
+ #include "wx/msw/wrapwin.h"
+ #endif
#include "wx/log.h"
#include "wx/app.h"
#include "wx/bitmap.h"
#endif
#endif
-#ifdef __WXMSW__
-#include "wx/msw/wrapwin.h"
-#endif
-
//-----------------------------------------------------------------------------
// wxBMPHandler
//-----------------------------------------------------------------------------
#include "wx/memory.h"
#ifndef WX_PRECOMP
+ #ifdef __WXMSW__
+ #include "wx/msw/wrapwin.h"
+ #endif
#include "wx/utils.h"
#include "wx/app.h"
#include "wx/hash.h"
#include <stdarg.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__)
#define USE_THREADSAFE_MEMORY_ALLOCATION 1
#else
#if wxUSE_PRINTING_ARCHITECTURE
-
#ifndef WX_PRECOMP
+ #if defined(__WXMSW__)
+ #include "wx/msw/wrapcdlg.h"
+ #endif // MSW
#include "wx/utils.h"
#include "wx/settings.h"
#include "wx/intl.h"
#include <string.h>
#ifdef __WXMSW__
- #include "wx/msw/wrapcdlg.h"
#ifndef __WIN32__
#include <print.h>
#endif
#include "wx/dcprint.h"
#ifndef WX_PRECOMP
+ #if defined(__WXMSW__)
+ #include "wx/msw/wrapcdlg.h"
+ #endif // MSW
#include "wx/utils.h"
#include "wx/dc.h"
#include "wx/app.h"
#endif
#ifdef __WXMSW__
- #include "wx/msw/wrapcdlg.h"
#ifndef __WIN32__
#include <print.h>
#endif
///////////////////////////////////////////////////////////////////////////////
-// Name: common/stopwatch.cpp
+// Name: src/common/stopwatch.cpp
// Purpose: wxStopWatch and other non-GUI stuff from wx/timer.h
// Author:
// Original version by Julian Smart
#include "wx/stopwatch.h"
#ifndef WX_PRECOMP
+ #ifdef __WXMSW__
+ #include "wx/msw/wrapwin.h"
+ #endif
#include "wx/intl.h"
#include "wx/log.h"
#endif //WX_PRECOMP
// System headers
// ----------------------------------------------------------------------------
-#if defined(__WIN32__)
- #include "wx/msw/wrapwin.h"
-#endif
-
#if defined(__WIN32__) && !defined(HAVE_FTIME) && !defined(__MWERKS__) && !defined(__WXWINCE__)
#define HAVE_FTIME
#endif
}
#endif // wxUSE_LONGLONG/!wxUSE_LONGLONG
-
-
#include "wx/wxprec.h"
#ifndef WX_PRECOMP
+ #ifdef __WXMSW__
+ #include "wx/msw/missing.h"
+ #endif
#include "wx/intl.h"
#include "wx/log.h"
#include "wx/utils.h"
#ifdef __WINDOWS__
#include "wx/msw/private.h"
- #include "wx/msw/missing.h"
#endif
#ifndef __WXWINCE__
wxASSERT_MSG( status == noErr , _("Unable to create TextEncodingConverter")) ;
}
}
-
+
size_t MB2WC(wchar_t *buf, const char *psz, size_t n) const
{
CreateIfNeeded() ;
virtual wxMBConv *Clone() const { return new wxMBConv_mac(*this); }
bool IsOk() const
- {
+ {
CreateIfNeeded() ;
- return m_MB2WC_converter != NULL && m_WC2MB_converter != NULL;
+ return m_MB2WC_converter != NULL && m_WC2MB_converter != NULL;
}
protected :
class wxMBConv_macUTF8D : public wxMBConv_mac
{
public :
- wxMBConv_macUTF8D()
+ wxMBConv_macUTF8D()
{
Init( kTextEncodingUnicodeDefault , kUnicodeNoSubset , kUnicodeUTF8Format ) ;
m_uni = NULL;
m_uniBack = NULL ;
}
-
+
virtual ~wxMBConv_macUTF8D()
{
if (m_uni!=NULL)
if (m_uniBack!=NULL)
DisposeUnicodeToTextInfo(&m_uniBack);
}
-
+
size_t WC2MB(char *buf, const wchar_t *psz, size_t n) const
{
CreateIfNeeded() ;
ubuf = (UniChar*) psz ;
#endif
- // ubuf is a non-decomposed UniChar buffer
-
+ // ubuf is a non-decomposed UniChar buffer
+
ByteCount dcubuflen = byteInLen * 2 + 2 ;
ByteCount dcubufread , dcubufwritten ;
- UniChar *dcubuf = (UniChar*) malloc( dcubuflen ) ;
-
- ConvertFromUnicodeToText( m_uni , byteInLen , ubuf ,
+ UniChar *dcubuf = (UniChar*) malloc( dcubuflen ) ;
+
+ ConvertFromUnicodeToText( m_uni , byteInLen , ubuf ,
kUnicodeDefaultDirectionMask, 0, NULL, NULL, NULL, dcubuflen , &dcubufread , &dcubufwritten , dcubuf ) ;
-
+
// we now convert that decomposed buffer into UTF8
status = TECConvertText(
return res ;
}
-
+
size_t MB2WC(wchar_t *buf, const char *psz, size_t n) const
{
CreateIfNeeded() ;
wchar_t *tbuf = NULL ;
UniChar* ubuf = NULL ;
size_t res = 0 ;
-
+
if (buf == NULL)
{
// Apple specs say at least 32
n = wxMax( 32, byteInLen ) ;
tbuf = (wchar_t*) malloc( n * SIZEOF_WCHAR_T ) ;
}
-
+
ByteCount byteBufferLen = n * sizeof( UniChar ) ;
-
+
#if SIZEOF_WCHAR_T == 4
ubuf = (UniChar*) malloc( byteBufferLen + 2 ) ;
#else
ubuf = (UniChar*) (buf ? buf : tbuf) ;
#endif
-
+
ByteCount dcubuflen = byteBufferLen * 2 + 2 ;
ByteCount dcubufread , dcubufwritten ;
- UniChar *dcubuf = (UniChar*) malloc( dcubuflen ) ;
+ UniChar *dcubuf = (UniChar*) malloc( dcubuflen ) ;
status = TECConvertText(
m_MB2WC_converter, (ConstTextPtr) psz, byteInLen, &byteInLen,
// 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
dcubuf[byteOutLen / sizeof( UniChar ) ] = 0 ;
-
+
// 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 ) ;
free( dcubuf );
byteOutLen = dcubufwritten ;
ubuf[byteOutLen / sizeof( UniChar ) ] = 0 ;
-
-
+
+
#if SIZEOF_WCHAR_T == 4
wxMBConvUTF16 converter ;
res = converter.MB2WC( (buf ? buf : tbuf), (const char*)ubuf, n ) ;
#else
res = byteOutLen / sizeof( UniChar ) ;
#endif
-
+
if ( buf == NULL )
free(tbuf) ;
-
+
if ( buf && res < n)
buf[res] = 0;
-
+
return res ;
}
m_map.otherEncoding = CreateTextEncoding(kTextEncodingUnicodeDefault,
kUnicodeCanonicalDecompVariant, kTextEncodingDefaultFormat);
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")) ;
-
+
m_map.unicodeEncoding = CreateTextEncoding(kTextEncodingUnicodeDefault,
kUnicodeNoSubset, kTextEncodingDefaultFormat);
m_map.otherEncoding = CreateTextEncoding(kTextEncodingUnicodeDefault,
kUnicodeCanonicalCompVariant, kTextEncodingDefaultFormat);
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")) ;
}
}
mutable UnicodeToTextInfo m_uni;
mutable UnicodeToTextInfo m_uniBack;
mutable UnicodeMapping m_map;
-};
+};
#endif // defined(__WXMAC__) && defined(TARGET_CARBON)
// ============================================================================
const wxChar** names = wxFontMapperBase::GetAllEncodingNames(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
// attempts (or perhaps we shoulnd't do this at all ?)
if ( names[0] != NULL )
#ifdef wxUSE_GENERICDATAVIEWCTRL
#ifndef WX_PRECOMP
+ #ifdef __WXMSW__
+ #include "wx/msw/wrapwin.h"
+ #endif
#include "wx/sizer.h"
#include "wx/log.h"
#include "wx/dcclient.h"
#include "wx/popupwin.h"
#include "wx/renderer.h"
-#ifdef __WXMSW__
- #include "wx/msw/wrapwin.h"
-#endif
-
//-----------------------------------------------------------------------------
// classes
//-----------------------------------------------------------------------------
#endif
#ifndef WX_PRECOMP
+ #ifdef __WXMSW__
+ #include "wx/msw/wrapwin.h"
+ #endif
#include "wx/hash.h"
#include "wx/intl.h"
#include "wx/settings.h"
#endif
#ifdef __WINDOWS__
- #include "wx/msw/wrapwin.h"
#include "wx/msw/mslu.h"
#endif
#endif
#ifndef WX_PRECOMP
+ #include "wx/msw/wrapcctl.h"
#include "wx/dynarray.h"
#include "wx/frame.h"
#include "wx/app.h"
#include <string.h>
#include <ctype.h>
-#include "wx/msw/wrapcctl.h"
-
// For MB_TASKMODAL
#ifdef __WXWINCE__
#include "wx/msw/wince/missing.h"
#include "wx/checklst.h"
#ifndef WX_PRECOMP
+ #include "wx/msw/wrapwin.h"
#include "wx/object.h"
#include "wx/colour.h"
#include "wx/font.h"
#include "wx/window.h"
#include "wx/listbox.h"
#include "wx/dcmemory.h"
-
#include "wx/settings.h"
-
#include "wx/log.h"
#endif
#include "wx/ownerdrw.h"
-#include "wx/msw/wrapwin.h"
#include <windowsx.h>
#include "wx/msw/private.h"
#include "wx/colordlg.h"
#ifndef WX_PRECOMP
+ #include "wx/msw/wrapcdlg.h"
#include <stdio.h>
#include "wx/colour.h"
#include "wx/gdicmn.h"
#endif
#include "wx/msw/private.h"
-#include "wx/msw/wrapcdlg.h"
#include <stdlib.h>
#include <string.h>
#include "wx/combobox.h"
#ifndef WX_PRECOMP
+ #include "wx/msw/wrapcctl.h" // include <commctrl.h> "properly"
#include "wx/settings.h"
#include "wx/log.h"
// for wxEVT_COMMAND_TEXT_ENTER
#include "wx/clipbrd.h"
#include "wx/msw/private.h"
-// include <commctrl.h> "properly"
-#include "wx/msw/wrapcctl.h"
-
#if wxUSE_TOOLTIPS
#include "wx/tooltip.h"
#endif // wxUSE_TOOLTIPS
#include "wx/control.h"
#ifndef WX_PRECOMP
+ #include "wx/msw/wrapcctl.h" // include <commctrl.h> "properly"
#include "wx/event.h"
#include "wx/app.h"
#include "wx/dcclient.h"
#include "wx/msw/private.h"
#include "wx/msw/uxtheme.h"
-// include <commctrl.h> "properly"
-#include "wx/msw/wrapcctl.h"
-
// ----------------------------------------------------------------------------
// wxWin macros
// ----------------------------------------------------------------------------
#include "wx/cursor.h"
#ifndef WX_PRECOMP
+ #include "wx/msw/missing.h" // IDC_HAND
#include "wx/utils.h"
#include "wx/app.h"
#include "wx/bitmap.h"
#endif
#include "wx/msw/private.h"
-#include "wx/msw/missing.h" // IDC_HAND
// define functions missing in MicroWin
#ifdef __WXMICROWIN__
#if wxUSE_DATEPICKCTRL
#ifndef WX_PRECOMP
+ #include "wx/msw/wrapwin.h"
+ #include "wx/msw/wrapcctl.h" // include <commctrl.h> "properly"
#include "wx/app.h"
#include "wx/intl.h"
#include "wx/dcclient.h"
- #include "wx/msw/wrapwin.h"
- #include "wx/msw/wrapcctl.h"
#include "wx/msw/private.h"
#endif
#endif
#ifndef WX_PRECOMP
+ #include "wx/msw/wrapcdlg.h"
#include "wx/image.h"
#include "wx/window.h"
#include "wx/dc.h"
#include <string.h>
-#include "wx/msw/wrapcdlg.h"
#ifndef __WIN32__
#include <print.h>
#endif
#include "wx/dcprint.h"
#ifndef WX_PRECOMP
+ #include "wx/msw/wrapcdlg.h"
#include "wx/string.h"
#include "wx/log.h"
#include "wx/window.h"
#include "wx/printdlg.h"
#include "wx/msw/printdlg.h"
-#include "wx/msw/wrapcdlg.h"
#ifndef __WIN32__
#include <print.h>
#endif
#include "wx/dialog.h"
#ifndef WX_PRECOMP
+ #include "wx/msw/wrapcdlg.h"
#include "wx/utils.h"
#include "wx/frame.h"
#include "wx/app.h"
#include "wx/evtloop.h"
#include "wx/ptr_scpd.h"
-#include "wx/msw/wrapcdlg.h"
-
#if defined(__SMARTPHONE__) && defined(__WXWINCE__)
#include "wx/msw/wince/resources.h"
#endif // __SMARTPHONE__ && __WXWINCE__
#if wxUSE_DISPLAY
#ifndef WX_PRECOMP
+ #include "wx/msw/missing.h"
#include "wx/dynarray.h"
#include "wx/app.h"
#include "wx/frame.h"
#endif
-#include "wx/msw/missing.h"
-
#include "wx/dynload.h"
#include "wx/sysopt.h"
wxString wxDisplayImplWin32Base::GetName() const
{
- if ( m_info.m_devName.IsEmpty() )
+ if ( m_info.m_devName.empty() )
m_info.Initialize();
return m_info.m_devName;
#if wxUSE_DRAGIMAGE
#ifndef WX_PRECOMP
+ #include "wx/msw/wrapcctl.h" // include <commctrl.h> "properly"
#include <stdio.h>
#include "wx/window.h"
#include "wx/dcclient.h"
#include "wx/msw/wince/missing.h"
#endif // __WXWINCE__
-// include <commctrl.h> "properly"
-#include "wx/msw/wrapcctl.h"
-
// Wine doesn't have this yet
#ifndef ListView_CreateDragImage
#define ListView_CreateDragImage(hwnd, i, lpptUpLeft) \
// Author: Markus Greither and Vadim Zeitlin
// Modified by:
// Created: 23/03/2001
-// RCS-ID:
+// RCS-ID: $Id$
// Copyright: (c) Markus Greither
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
#if wxUSE_FINDREPLDLG
#ifndef WX_PRECOMP
+ #include "wx/msw/wrapcdlg.h"
#include "wx/intl.h"
#include "wx/log.h"
#endif
-#include "wx/msw/wrapcdlg.h"
#include "wx/fdrepdlg.h"
// ----------------------------------------------------------------------------
}
#endif // wxUSE_FINDREPLDLG
-
#include "wx/filedlg.h"
#ifndef WX_PRECOMP
+ #include "wx/msw/wrapcdlg.h"
+ #include "wx/msw/missing.h"
#include "wx/utils.h"
#include "wx/msgdlg.h"
#include "wx/filefn.h"
#include "wx/math.h"
#endif
-#include "wx/msw/wrapcdlg.h"
-
#include <stdlib.h>
#include <string.h>
#include "wx/filename.h"
#include "wx/tokenzr.h"
-#include "wx/msw/missing.h"
-
// ----------------------------------------------------------------------------
// constants
// ----------------------------------------------------------------------------
#include "wx/fontdlg.h"
#ifndef WX_PRECOMP
+ #include "wx/msw/wrapcdlg.h"
#include "wx/utils.h"
#include "wx/dialog.h"
#include "wx/log.h"
#include "wx/math.h"
#endif
-#include "wx/msw/wrapcdlg.h"
-
#include <stdlib.h>
#include <string.h>
#include "wx/frame.h"
#ifndef WX_PRECOMP
+ #include "wx/msw/wrapcctl.h" // include <commctrl.h> "properly"
#include "wx/app.h"
#include "wx/menu.h"
#include "wx/utils.h"
#include "wx/msw/private.h"
-// include <commctrl.h> "properly"
-#include "wx/msw/wrapcctl.h"
-
#if defined(__POCKETPC__) || defined(__SMARTPHONE__)
#include <ole2.h>
#include <aygshell.h>
#include "wx/gauge.h"
#ifndef WX_PRECOMP
+ #include "wx/msw/wrapcctl.h" // include <commctrl.h> "properly"
#endif
#include "wx/msw/private.h"
-// include <commctrl.h> "properly"
-#include "wx/msw/wrapcctl.h"
-
// ----------------------------------------------------------------------------
// constants
// ----------------------------------------------------------------------------
#endif
#ifndef WX_PRECOMP
+ #include "wx/msw/wrapcctl.h" // include <commctrl.h> "properly"
#include "wx/window.h"
#include "wx/icon.h"
#include "wx/dc.h"
#include "wx/msw/imaglist.h"
#include "wx/msw/private.h"
-// include <commctrl.h> "properly"
-#include "wx/msw/wrapcctl.h"
-
// ----------------------------------------------------------------------------
// wxWin macros
// ----------------------------------------------------------------------------
#if wxUSE_CONFIG && !wxUSE_UNICODE
#ifndef WX_PRECOMP
- #include "wx/dynarray.h"
- #include "wx/string.h"
- #include "wx/intl.h"
- #include "wx/event.h"
- #include "wx/app.h"
- #include "wx/utils.h"
- #include "wx/log.h"
+ #include "wx/msw/wrapwin.h"
+ #include "wx/dynarray.h"
+ #include "wx/string.h"
+ #include "wx/intl.h"
+ #include "wx/event.h"
+ #include "wx/app.h"
+ #include "wx/utils.h"
+ #include "wx/log.h"
#endif //WX_PRECOMP
#include "wx/config.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
// ----------------------------------------------------------------------------
#if wxUSE_LISTCTRL
#ifndef WX_PRECOMP
+ #include "wx/msw/wrapcctl.h" // include <commctrl.h> "properly"
#include "wx/app.h"
#include "wx/intl.h"
#include "wx/log.h"
#endif
#endif
-// include <commctrl.h> "properly"
-#include "wx/msw/wrapcctl.h"
-
// Currently gcc and watcom don't define NMLVFINDITEM, and DMC only defines
// it by its old name NM_FINDTIEM.
//
#include "wx/menu.h"
#ifndef WX_PRECOMP
+ #include "wx/msw/wrapcctl.h" // include <commctrl.h> "properly"
#include "wx/frame.h"
#include "wx/utils.h"
#include "wx/intl.h"
#include "wx/msw/private.h"
-// include <commctrl.h> "properly"
-#include "wx/msw/wrapcctl.h"
-
#ifdef __WXWINCE__
#include <windows.h>
#include <windowsx.h>
#if wxUSE_NOTEBOOK
-#include "wx/notebook.h"
+#include "wx/notebook.h"
#ifndef WX_PRECOMP
- #include "wx/string.h"
- #include "wx/dc.h"
- #include "wx/log.h"
- #include "wx/event.h"
- #include "wx/app.h"
- #include "wx/dcclient.h"
- #include "wx/dcmemory.h"
- #include "wx/control.h"
+ #include "wx/msw/wrapcctl.h" // include <commctrl.h> "properly"
+ #include "wx/string.h"
+ #include "wx/dc.h"
+ #include "wx/log.h"
+ #include "wx/event.h"
+ #include "wx/app.h"
+ #include "wx/dcclient.h"
+ #include "wx/dcmemory.h"
+ #include "wx/control.h"
#endif // WX_PRECOMP
-#include "wx/imaglist.h"
-#include "wx/sysopt.h"
+#include "wx/imaglist.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 <commctrl.h> "properly"
-#include "wx/msw/wrapcctl.h"
-
#if wxUSE_UXTHEME
#include "wx/msw/uxtheme.h"
#endif
#include "wx/access.h"
#ifndef WX_PRECOMP
+ #include "wx/msw/wrapwin.h"
#include "wx/window.h"
#include "wx/log.h"
#endif
-#include "wx/msw/wrapwin.h"
-
// for some compilers, the entire ole2.h must be included, not only oleauto.h
#if wxUSE_NORLANDER_HEADERS || defined(__WATCOMC__)
#include <ole2.h>
#if wxUSE_OLE && wxUSE_DRAG_AND_DROP
#ifndef WX_PRECOMP
+ #include "wx/msw/wrapwin.h"
#include "wx/log.h"
#endif
#ifdef __WIN32__
#if !defined(__GNUWIN32__) || wxUSE_NORLANDER_HEADERS
- #if wxCHECK_W32API_VERSION( 1, 0 )
- #include "wx/msw/wrapwin.h"
- #endif
#include <shlobj.h> // for DROPFILES structure
#endif
#else
#if wxUSE_OLE && ( wxUSE_DRAG_AND_DROP || (defined(__WXDEBUG__) && wxUSE_DATAOBJ) )
-// standard headers
-#if wxCHECK_W32API_VERSION( 1, 0 )
+#ifndef WX_PRECOMP
#include "wx/msw/wrapwin.h"
#endif
+
#include <rpc.h> // UUID related functions
#include "wx/msw/ole/uuid.h"
#if wxUSE_PRINTING_ARCHITECTURE && (!defined(__WXUNIVERSAL__) || !wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW)
#ifndef WX_PRECOMP
+ #include "wx/msw/wrapcdlg.h"
#include "wx/app.h"
#include "wx/dcprint.h"
#include "wx/cmndata.h"
#include <stdlib.h>
-#include "wx/msw/wrapcdlg.h"
-
#ifndef __WIN32__
#include <print.h>
#endif
#if wxUSE_PRINTING_ARCHITECTURE && (!defined(__WXUNIVERSAL__) || !wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW)
#ifndef WX_PRECOMP
+ #include "wx/msw/wrapcdlg.h"
#include "wx/window.h"
#include "wx/msw/private.h"
#include "wx/utils.h"
#include <stdlib.h>
-#include "wx/msw/wrapcdlg.h"
#ifndef __WIN32__
#include <print.h>
#endif
#endif
#ifndef WX_PRECOMP
+ #include "wx/msw/wrapwin.h"
#include "wx/string.h"
- #include "wx/intl.h"
- #include "wx/log.h"
+ #include "wx/intl.h"
+ #include "wx/log.h"
#endif
-#include "wx/file.h"
-#include "wx/wfstream.h"
+#include "wx/file.h"
+#include "wx/wfstream.h"
// Windows headers
-#include "wx/msw/wrapwin.h"
-
#ifdef __WXWINCE__
#include "wx/msw/private.h"
#include <winbase.h>
#include "wx/settings.h"
#ifndef WX_PRECOMP
+ #include "wx/msw/missing.h" // for SM_CXCURSOR, SM_CYCURSOR, SM_TABLETPC
#include "wx/utils.h"
#include "wx/gdicmn.h"
#include "wx/module.h"
#include "wx/fontutil.h"
-// for SM_CXCURSOR, SM_CYCURSOR, SM_TABLETPC
-#include "wx/msw/missing.h"
-
// ----------------------------------------------------------------------------
// private classes
// ----------------------------------------------------------------------------
#include "wx/slider.h"
#ifndef WX_PRECOMP
+ #include "wx/msw/wrapcctl.h" // include <commctrl.h> "properly"
#include "wx/brush.h"
#endif
#include "wx/msw/subwin.h"
-// include <commctrl.h> "properly"
-#include "wx/msw/wrapcctl.h"
-
// ----------------------------------------------------------------------------
// constants
// ----------------------------------------------------------------------------
#endif
#ifndef WX_PRECOMP
+ #include "wx/msw/wrapcctl.h" // include <commctrl.h> "properly"
#include "wx/app.h"
#endif
IMPLEMENT_DYNAMIC_CLASS(wxSpinEvent, wxNotifyEvent)
#include "wx/msw/private.h"
-#include "wx/msw/wrapcctl.h"
#ifndef UDM_SETRANGE32
#define UDM_SETRANGE32 (WM_USER+111)
#include "wx/spinctrl.h"
#ifndef WX_PRECOMP
+ #include "wx/msw/wrapcctl.h" // include <commctrl.h> "properly"
#include "wx/event.h"
#include "wx/textctrl.h"
#endif
#include "wx/msw/private.h"
-#include "wx/msw/wrapcctl.h"
#if wxUSE_TOOLTIPS
#include "wx/tooltip.h"
#include "wx/statbox.h"
#ifndef WX_PRECOMP
+ #include "wx/msw/missing.h"
#include "wx/app.h"
#include "wx/dcclient.h"
#include "wx/dcmemory.h"
#include "wx/msw/uxtheme.h"
#include "wx/msw/private.h"
-#include "wx/msw/missing.h"
// ----------------------------------------------------------------------------
// wxWin macros
#include "wx/statusbr.h"
#ifndef WX_PRECOMP
+ #include "wx/msw/wrapcctl.h" // include <commctrl.h> "properly"
#include "wx/frame.h"
#include "wx/settings.h"
#include "wx/dcclient.h"
#include "wx/msw/private.h"
#include <windowsx.h>
-// include <commctrl.h> "properly"
-#include "wx/msw/wrapcctl.h"
-
#if wxUSE_UXTHEME
#include "wx/msw/uxtheme.h"
#endif
/////////////////////////////////////////////////////////////////////////////
-// Name: msw/statline.cpp
+// Name: src/msw/statline.cpp
// Purpose: MSW version of wxStaticLine class
// Author: Vadim Zeitlin
// Created: 28.06.99
#if wxUSE_STATLINE
-#include "wx/msw/private.h"
-#include "wx/msw/missing.h"
+#ifndef WX_PRECOMP
+ #include "wx/msw/private.h"
+ #include "wx/msw/missing.h"
+#endif
// ============================================================================
// implementation
}
#endif // wxUSE_STATLINE
-
#if wxUSE_TAB_DIALOG
#ifndef WX_PRECOMP
+ #include "wx/msw/wrapcctl.h" // include <commctrl.h> "properly"
#include "wx/wx.h"
#include "wx/app.h"
#endif
#include "wx/msw/private.h"
-// include <commctrl.h> "properly"
-#include "wx/msw/wrapcctl.h"
-
#include "wx/tabctrl.h"
#include "wx/msw/imaglist.h"
#include "wx/toolbar.h"
#ifndef WX_PRECOMP
+ #include "wx/msw/wrapcctl.h" // include <commctrl.h> "properly"
#include "wx/dynarray.h"
#include "wx/frame.h"
#include "wx/log.h"
#include "wx/msw/uxtheme.h"
#endif
-// include <commctrl.h> "properly"
-#include "wx/msw/wrapcctl.h"
-
// 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
// for CE where it doesn't compile (and is probably not needed anyhow) and may
#if wxUSE_TEXTCTRL && !(defined(__SMARTPHONE__) && defined(__WXWINCE__))
#ifndef WX_PRECOMP
+ #include "wx/msw/missing.h"
#include "wx/textctrl.h"
#include "wx/settings.h"
#include "wx/brush.h"
#include <richedit.h>
#endif
-#include "wx/msw/missing.h"
-
#endif // wxUSE_RICHEDIT
// ----------------------------------------------------------------------------
#include "wx/thread.h"
#ifndef WX_PRECOMP
+ #include "wx/msw/missing.h"
#include "wx/intl.h"
#include "wx/app.h"
#include "wx/module.h"
#include "wx/scopeguard.h"
#include "wx/msw/private.h"
-#include "wx/msw/missing.h"
#include "wx/msw/seh.h"
#include "wx/except.h"
#include "wx/tooltip.h"
#ifndef WX_PRECOMP
+ #include "wx/msw/wrapcctl.h" // include <commctrl.h> "properly"
#include "wx/app.h"
#include "wx/control.h"
#include "wx/combobox.h"
#include "wx/tokenzr.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
// 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.
}
if ( sz.cx > max )
max = sz.cx;
-
+
token = tokenizer.GetNextToken();
}
#include "wx/toplevel.h"
#ifndef WX_PRECOMP
+ #include "wx/msw/missing.h"
#include "wx/app.h"
#include "wx/dialog.h"
#include "wx/string.h"
#include "wx/msw/wince/missing.h"
#endif
-#include "wx/msw/missing.h"
#include "wx/msw/winundef.h"
#include "wx/display.h"
#include "wx/treectrl.h"
#ifndef WX_PRECOMP
+ #include "wx/msw/wrapcctl.h" // include <commctrl.h> "properly"
+ #include "wx/msw/missing.h"
#include "wx/dynarray.h"
#include "wx/log.h"
#include "wx/app.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
// comctl32.dll versions
#define wxUSE_COMCTL32_SAFELY 0
#endif
#ifndef WX_PRECOMP
+ #include "wx/msw/missing.h" // CHARSET_HANGUL
#include "wx/utils.h"
#include "wx/app.h"
#include "wx/intl.h"
#include "wx/confbase.h" // for wxExpandEnvVars()
#include "wx/msw/private.h" // includes <windows.h>
-#include "wx/msw/missing.h" // CHARSET_HANGUL
#if defined(__CYGWIN__)
//CYGWIN gives annoying warning about runtime stuff if we don't do this
#if wxUSE_FSVOLUME
#ifndef WX_PRECOMP
+ #include "wx/msw/missing.h"
#if wxUSE_GUI
#include "wx/icon.h"
#endif
#include <shellapi.h>
#include <shlobj.h>
-#include "wx/msw/missing.h"
#if wxUSE_BASE
#include "wx/checklst.h"
#ifndef WX_PRECOMP
+ #include "wx/msw/wrapcctl.h" // include <commctrl.h> "properly"
#endif
-// include <commctrl.h> "properly"
-#include "wx/msw/wrapcctl.h"
-
// ============================================================================
// implementation
// ============================================================================
#include "wx/choice.h"
#ifndef WX_PRECOMP
+ #include "wx/msw/wrapcctl.h" // include <commctrl.h> "properly"
#endif
-// include <commctrl.h> "properly"
-#include "wx/msw/wrapcctl.h"
-
#include "wx/spinbutt.h" // for wxSpinnerBestSize
#if wxUSE_EXTENDED_RTTI
/////////////////////////////////////////////////////////////////////////////
-// Name: helpwce.h
+// Name: src/msw/wince/helpwce.cpp
// Purpose: Help system: Windows CE help implementation
// Author: Julian Smart
// Modified by:
#include "wx/msw/wince/helpwce.h"
#ifndef WX_PRECOMP
+ #include "wx/msw/missing.h"
#include "wx/intl.h"
#endif
#include "wx/msw/private.h"
-#include "wx/msw/missing.h"
IMPLEMENT_DYNAMIC_CLASS(wxWinceHelpController, wxHelpControllerBase)
bool wxWinceHelpController::LoadFile(const wxString& file)
{
- if (!file.IsEmpty())
+ if (!file.empty())
m_helpFile = file;
return true;
}
wxSplitPath(file, & path, & name, & ext);
wxString fullName;
- if (path.IsEmpty())
+ if (path.empty())
fullName = name + wxT(".htm");
else if (path.Last() == wxT('\\'))
fullName = path + name + wxT(".htm");
// View URL
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) );
- if (!topic.IsEmpty())
+ if (!topic.empty())
url = url + wxT("#") + topic;
return CreateProcess(wxT("peghelp.exe"),
}
#endif // wxUSE_HELP
-
-// 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
#pragma hdrstop
#endif
-#include "wx/msw/wrapwin.h"
+#ifndef WX_PRECOMP
+ #include "wx/msw/wrapwin.h"
+#endif
+
#include <tchar.h>
#include <winsock.h>
#include <string.h>
++pr;
} return NULL;
}
-
#include "wx/toolbar.h"
#ifndef WX_PRECOMP
+ #include "wx/msw/wrapcctl.h" // include <commctrl.h> "properly"
#include "wx/dynarray.h"
#include "wx/frame.h"
#include "wx/log.h"
#include "malloc.h"
#endif
-// include <commctrl.h> "properly"
-#include "wx/msw/wrapcctl.h"
-
#include "wx/msw/private.h"
#include <windows.h>
#include <windowsx.h>
#include "wx/textctrl.h"
#ifndef WX_PRECOMP
+ #include "wx/msw/wrapcctl.h" // include <commctrl.h> "properly"
#endif
-// include <commctrl.h> "properly"
-#include "wx/msw/wrapcctl.h"
-
#include "wx/spinbutt.h"
#include "wx/textfile.h"
#ifndef WX_PRECOMP
#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/menu.h"
#include "wx/dc.h"
#include <windowsx.h>
#endif
-// include <commctrl.h> "properly"
-#include "wx/msw/wrapcctl.h"
-
#if !defined __WXWINCE__ && !defined NEED_PBT_H
#include <pbt.h>
#endif
-#include "wx/msw/missing.h"
-
#if defined(__WXWINCE__)
#include "wx/msw/wince/missing.h"
#ifdef __POCKETPC__