Include wx/scrolwin.h and wx/dirdlg.h according to precompiled headers of wx/wx.h (with other minor cleaning).

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39613 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Włodzimierz Skiba 2006-06-07 11:44:19 +00:00
parent 55193d61ae
commit 1ab440bc20
8 changed files with 40 additions and 44 deletions

View File

@ -22,10 +22,11 @@
#if wxUSE_DIRDLG
#include "wx/dirdlg.h"
#ifndef WX_PRECOMP
#include "wx/msgdlg.h"
#include "wx/filedlg.h"
#include "wx/dirdlg.h"
#include "wx/app.h"
#endif

View File

@ -24,12 +24,12 @@
#pragma hdrstop
#endif
#ifndef WX_PRECOMP
#endif //WX_PRECOMP
#if wxUSE_DIRDLG
#include "wx/dirdlg.h"
#if wxUSE_DIRDLG
#ifndef WX_PRECOMP
#endif //WX_PRECOMP
// ============================================================================
// implementation
@ -53,4 +53,3 @@ wxString wxDirSelector(const wxString& message,
}
#endif // wxUSE_DIRDLG

View File

@ -37,10 +37,10 @@
#include "wx/button.h"
#include "wx/menu.h"
#include "wx/settings.h"
#include "wx/scrolwin.h"
#endif
#include "wx/layout.h"
#include "wx/scrolwin.h"
#include "wx/module.h"
#include "wx/menuitem.h"
#include "wx/evtloop.h"

View File

@ -29,10 +29,11 @@
#if wxUSE_OLE && !defined(__GNUWIN32_OLD__) && (!defined(__WXWINCE__) || \
(defined(__HANDHELDPC__) && (_WIN32_WCE >= 500)))
#include "wx/dirdlg.h"
#ifndef WX_PRECOMP
#include "wx/utils.h"
#include "wx/dialog.h"
#include "wx/dirdlg.h"
#include "wx/log.h"
#include "wx/app.h" // for GetComCtl32Version()
#endif
@ -248,4 +249,3 @@ BrowseCallbackProc(HWND hwnd, UINT uMsg, LPARAM lp, LPARAM pData)
#endif // compiler/platform on which the code here compiles
#endif // wxUSE_DIRDLG

View File

@ -17,10 +17,10 @@
#endif
#ifndef WX_PRECOMP
#include <stdio.h>
#include "wx/utils.h"
#include "wx/brush.h"
#include "wx/scrolwin.h"
#include <stdio.h>
#include "wx/utils.h"
#include "wx/brush.h"
#include "wx/scrolwin.h"
#endif
#if wxUSE_SLIDER
@ -232,7 +232,7 @@ bool wxSlider::Create(
m_windowStyle = lStyle;
m_nTickFreq = 0;
if (vId == -1)
if (vId == wxID_ANY)
m_windowId = (int)NewControlId();
else
m_windowId = vId;
@ -464,27 +464,25 @@ bool wxSlider::Create(
return true;
} // end of wxSlider::Create
void wxSlider::DoSetSize(
int nX
, int nY
, int nWidth
, int nHeight
, int nSizeFlags
)
void wxSlider::DoSetSize( int nX,
int nY,
int nWidth,
int nHeight,
int nSizeFlags )
{
int nX1 = nX;
int nY1 = nY;
int nWidth1 = nWidth;
int nHeight1 = nHeight;
int nXOffset = nX;
int nYOffset = nY;
int nCx; // slider,min,max sizes
int nCy;
int nCyf;
int nCurrentX;
int nCurrentY;
wxChar zBuf[300];
wxFont vFont = this->GetFont();
int nX1 = nX;
int nY1 = nY;
int nWidth1 = nWidth;
int nHeight1 = nHeight;
int nXOffset = nX;
int nYOffset = nY;
int nCx; // slider,min,max sizes
int nCy;
int nCyf;
int nCurrentX;
int nCurrentY;
wxChar zBuf[300];
wxFont vFont = this->GetFont();
//
// Adjust for OS/2's reverse coordinate system
@ -499,26 +497,24 @@ void wxSlider::DoSetSize(
if (pParent)
{
int nOS2ParentHeight = GetOS2ParentHeight(pParent);
int nOS2ParentHeight = GetOS2ParentHeight(pParent);
nYOffset = nOS2ParentHeight - (nYOffset + nOS2Height);
if (nY != -1)
if (nY != wxDefaultCoord)
nY1 = nOS2ParentHeight - (nY1 + nOS2Height);
}
else
{
RECTL vRect;
RECTL vRect;
::WinQueryWindowRect(HWND_DESKTOP, &vRect);
nYOffset = vRect.yTop - (nYOffset + nOS2Height);
if (nY != -1)
if (nY != wxDefaultCoord)
nY1 = vRect.yTop - (nY1 + nOS2Height);
}
m_nSizeFlags = nSizeFlags;
GetPosition( &nCurrentX
,&nCurrentY
);
GetPosition( &nCurrentX, &nCurrentY );
if (nX == -1 && !(nSizeFlags & wxSIZE_ALLOW_MINUS_ONE))
nX1 = nCurrentX;
if (nY == -1 && !(nSizeFlags & wxSIZE_ALLOW_MINUS_ONE))

View File

@ -28,10 +28,11 @@
#if defined(__WIN95__) && !defined(__GNUWIN32_OLD__) && wxUSE_OLE
#include "wx/dirdlg.h"
#ifndef WX_PRECOMP
#include "wx/utils.h"
#include "wx/dialog.h"
#include "wx/dirdlg.h"
#include "wx/log.h"
#include "wx/app.h" // for GetComCtl32Version()
#endif

View File

@ -43,10 +43,10 @@
#include "wx/msgdlg.h"
#include "wx/scrolbar.h"
#include "wx/listbox.h"
#include "wx/scrolwin.h"
#endif
#include "wx/layout.h"
#include "wx/scrolwin.h"
#include "wx/module.h"
#include "wx/menuitem.h"
#include "wx/fontutil.h"

View File

@ -21,10 +21,9 @@
#ifndef WX_PRECOMP
#include "wx/frame.h"
#include "wx/scrolwin.h"
#endif
#include "wx/scrolwin.h"
IMPLEMENT_DYNAMIC_CLASS(wxScrolledWindowXmlHandler, wxXmlResourceHandler)
wxScrolledWindowXmlHandler::wxScrolledWindowXmlHandler()