Hardware defines spec.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29505 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Włodzimierz Skiba
2004-09-28 18:17:07 +00:00
parent 8300f815fa
commit 3180bc0e63
10 changed files with 25 additions and 25 deletions

View File

@@ -28,7 +28,7 @@
#pragma hdrstop #pragma hdrstop
#endif #endif
#if wxUSE_CHOICE && !defined(__SMARTPHONE__) #if wxUSE_CHOICE && !(defined(__SMARTPHONE__) && defined(__WXWINCE__))
#ifndef WX_PRECOMP #ifndef WX_PRECOMP
#include "wx/choice.h" #include "wx/choice.h"
@@ -620,4 +620,4 @@ WXHBRUSH wxChoice::OnCtlColor(WXHDC pDC, WXHWND WXUNUSED(pWnd), WXUINT WXUNUSED(
return (WXHBRUSH)brush->GetResourceHandle(); return (WXHBRUSH)brush->GetResourceHandle();
} }
#endif // wxUSE_CHOICE && !__SMARTPHONE__ #endif // wxUSE_CHOICE && !(__SMARTPHONE__ && __WXWINCE__)

View File

@@ -42,7 +42,7 @@
#include "wx/msgdlg.h" #include "wx/msgdlg.h"
#endif #endif
#if wxUSE_COLOURDLG && !defined(__SMARTPHONE__) #if wxUSE_COLOURDLG && !(defined(__SMARTPHONE__) && defined(__WXWINCE__))
#include "wx/msw/private.h" #include "wx/msw/private.h"
#include "wx/colordlg.h" #include "wx/colordlg.h"
@@ -231,4 +231,4 @@ void wxColourDialog::DoGetClientSize(int *width, int *height) const
*height = 299; *height = 299;
} }
#endif #endif // wxUSE_COLOURDLG && !(__SMARTPHONE__ && __WXWINCE__)

View File

@@ -214,12 +214,12 @@ wxSize wxControl::GetBestSpinerSize(const bool is_vertical) const
{ {
// take size according to layout // take size according to layout
wxSize bestSize( wxSize bestSize(
#ifdef __SMARTPHONE__ #ifdef defined(__SMARTPHONE__) && defined(__WXWINCE__)
0,GetCharHeight() 0,GetCharHeight()
#else // !__SMARTPHONE__ #else
GetSystemMetrics(is_vertical ? SM_CXVSCROLL : SM_CXHSCROLL), GetSystemMetrics(is_vertical ? SM_CXVSCROLL : SM_CXHSCROLL),
GetSystemMetrics(is_vertical ? SM_CYVSCROLL : SM_CYHSCROLL) GetSystemMetrics(is_vertical ? SM_CYVSCROLL : SM_CYHSCROLL)
#endif // __SMARTPHONE__/!__SMARTPHONE__ #endif
); );
// correct size as for undocumented MSW variants cases (WinCE and perhaps others) // correct size as for undocumented MSW variants cases (WinCE and perhaps others)

View File

@@ -47,9 +47,9 @@
#include <commdlg.h> #include <commdlg.h>
#endif #endif
#ifdef __SMARTPHONE__ #if defined(__SMARTPHONE__) && defined(__WXWINCE__)
#include "wx/msw/wince/resources.h" #include "wx/msw/wince/resources.h"
#endif // __SMARTPHONE__ #endif // __SMARTPHONE__ && __WXWINCE__
// ---------------------------------------------------------------------------- // ----------------------------------------------------------------------------
// wxWin macros // wxWin macros
@@ -186,7 +186,7 @@ bool wxDialog::Create(wxWindow *parent,
SetBackgroundColour(wxSystemSettings::GetColour(wxSYS_COLOUR_3DFACE)); SetBackgroundColour(wxSystemSettings::GetColour(wxSYS_COLOUR_3DFACE));
#ifdef __SMARTPHONE__ #if defined(__SMARTPHONE__) && defined(__WXWINCE__)
SetLeftMenu(wxID_OK, _("OK")); SetLeftMenu(wxID_OK, _("OK"));
#endif #endif

View File

@@ -28,7 +28,7 @@
#pragma hdrstop #pragma hdrstop
#endif #endif
#if wxUSE_DIRDLG && !defined(__SMARTPHONE__) #if wxUSE_DIRDLG && !(defined(__SMARTPHONE__) && defined(__WXWINCE__))
#if defined(__WIN95__) && !defined(__GNUWIN32_OLD__) && wxUSE_OLE #if defined(__WIN95__) && !defined(__GNUWIN32_OLD__) && wxUSE_OLE
@@ -289,4 +289,4 @@ static void ItemListFree(LPITEMIDLIST pidl)
#include "../generic/dirdlgg.cpp" #include "../generic/dirdlgg.cpp"
#endif // compiler/platform on which the code here compiles #endif // compiler/platform on which the code here compiles
#endif // wxUSE_DIRDLG && !defined(__SMARTPHONE__) #endif // wxUSE_DIRDLG && !(__SMARTPHONE__ && __WXWINCE__)

View File

@@ -28,7 +28,7 @@
#pragma hdrstop #pragma hdrstop
#endif #endif
#if wxUSE_FILEDLG && !defined(__SMARTPHONE__) #if wxUSE_FILEDLG && !(defined(__SMARTPHONE__) && defined(__WXWINCE__))
#ifndef WX_PRECOMP #ifndef WX_PRECOMP
#include "wx/utils.h" #include "wx/utils.h"
@@ -511,5 +511,5 @@ int wxFileDialog::ShowModal()
} }
#endif // wxUSE_FILEDLG #endif // wxUSE_FILEDLG && !(__SMARTPHONE__ && __WXWINCE__)

View File

@@ -194,7 +194,7 @@ bool wxFrame::Create(wxWindow *parent,
SetBackgroundColour(wxSystemSettings::GetColour(wxSYS_COLOUR_APPWORKSPACE)); SetBackgroundColour(wxSystemSettings::GetColour(wxSYS_COLOUR_APPWORKSPACE));
#ifdef __SMARTPHONE__ #if defined(__SMARTPHONE__) && defined(__WXWINCE__)
SetLeftMenu(wxID_EXIT, _("Done")); SetLeftMenu(wxID_EXIT, _("Done"));
#endif #endif
@@ -322,7 +322,7 @@ void wxFrame::PositionStatusBar()
void wxFrame::AttachMenuBar(wxMenuBar *menubar) void wxFrame::AttachMenuBar(wxMenuBar *menubar)
{ {
#if defined(__SMARTPHONE__) #if defined(__SMARTPHONE__) && defined(__WXWINCE__)
wxMenu *autoMenu = NULL; wxMenu *autoMenu = NULL;
@@ -872,13 +872,13 @@ bool wxFrame::HandleCommand(WXWORD id, WXWORD cmd, WXHWND control)
} }
#endif // wxUSE_MENUS_NATIVE #endif // wxUSE_MENUS_NATIVE
#ifdef __SMARTPHONE__ #if defined(__SMARTPHONE__) && defined(__WXWINCE__)
// handle here commands from Smartphone menu bar // handle here commands from Smartphone menu bar
if ( wxTopLevelWindow::HandleCommand(id, cmd, control ) ) if ( wxTopLevelWindow::HandleCommand(id, cmd, control ) )
{ {
return true; return true;
} }
#endif // __SMARTPHONE__ #endif // __SMARTPHONE__ && __WXWINCE__
if ( ProcessCommand(id) ) if ( ProcessCommand(id) )
{ {

View File

@@ -79,11 +79,11 @@ int wxMessageDialog::ShowModal()
unsigned int msStyle = MB_OK; unsigned int msStyle = MB_OK;
if (m_dialogStyle & wxYES_NO) if (m_dialogStyle & wxYES_NO)
{ {
#if !defined(__SMARTPHONE__) #if !(defined(__SMARTPHONE__) && defined(__WXWINCE__))
if (m_dialogStyle & wxCANCEL) if (m_dialogStyle & wxCANCEL)
msStyle = MB_YESNOCANCEL; msStyle = MB_YESNOCANCEL;
else else
#endif // __SMARTPHONE__ #endif // !(__SMARTPHONE__ && __WXWINCE__)
msStyle = MB_YESNO; msStyle = MB_YESNO;
if (m_dialogStyle & wxNO_DEFAULT) if (m_dialogStyle & wxNO_DEFAULT)

View File

@@ -28,7 +28,7 @@
#pragma hdrstop #pragma hdrstop
#endif #endif
#if wxUSE_TEXTCTRL && !defined(__SMARTPHONE__) #if wxUSE_TEXTCTRL && !(defined(__SMARTPHONE__) && defined(__WXWINCE__))
#ifndef WX_PRECOMP #ifndef WX_PRECOMP
#include "wx/textctrl.h" #include "wx/textctrl.h"
@@ -2642,4 +2642,4 @@ bool wxRichEditModule::Load(int version)
#endif // wxUSE_RICHEDIT #endif // wxUSE_RICHEDIT
#endif // wxUSE_TEXTCTRL && !__SMARTPHONE__ #endif // wxUSE_TEXTCTRL && !(__SMARTPHONE__ && __WXWINCE__)

View File

@@ -145,7 +145,7 @@ void wxTopLevelWindowMSW::Init()
m_winLastFocused = (wxWindow *)NULL; m_winLastFocused = (wxWindow *)NULL;
#ifdef __SMARTPHONE__ #if defined(__SMARTPHONE__) && defined(__WXWINCE__)
m_MenuBarHWND = 0; m_MenuBarHWND = 0;
#endif #endif
} }
@@ -174,7 +174,7 @@ WXDWORD wxTopLevelWindowMSW::MSWGetStyle(long style, WXDWORD *exflags) const
} }
//else: WS_OVERLAPPED is 0 anyhow, so it is on by default //else: WS_OVERLAPPED is 0 anyhow, so it is on by default
#ifndef __SMARTPHONE__ #if !(defined(__SMARTPHONE__) && defined(__WXWINCE__))
// border and caption styles // border and caption styles
if ( style & wxRESIZE_BORDER ) if ( style & wxRESIZE_BORDER )
msflags |= WS_THICKFRAME; msflags |= WS_THICKFRAME;
@@ -529,7 +529,7 @@ bool wxTopLevelWindowMSW::Create(wxWindow *parent,
} }
#endif #endif
#ifdef __SMARTPHONE__ #if defined(__SMARTPHONE__) && defined(__WXWINCE__)
SetRightMenu(); // to nothing for initialization SetRightMenu(); // to nothing for initialization
#endif #endif