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:
parent
8300f815fa
commit
3180bc0e63
@ -28,7 +28,7 @@
|
||||
#pragma hdrstop
|
||||
#endif
|
||||
|
||||
#if wxUSE_CHOICE && !defined(__SMARTPHONE__)
|
||||
#if wxUSE_CHOICE && !(defined(__SMARTPHONE__) && defined(__WXWINCE__))
|
||||
|
||||
#ifndef WX_PRECOMP
|
||||
#include "wx/choice.h"
|
||||
@ -620,4 +620,4 @@ WXHBRUSH wxChoice::OnCtlColor(WXHDC pDC, WXHWND WXUNUSED(pWnd), WXUINT WXUNUSED(
|
||||
return (WXHBRUSH)brush->GetResourceHandle();
|
||||
}
|
||||
|
||||
#endif // wxUSE_CHOICE && !__SMARTPHONE__
|
||||
#endif // wxUSE_CHOICE && !(__SMARTPHONE__ && __WXWINCE__)
|
||||
|
@ -42,7 +42,7 @@
|
||||
#include "wx/msgdlg.h"
|
||||
#endif
|
||||
|
||||
#if wxUSE_COLOURDLG && !defined(__SMARTPHONE__)
|
||||
#if wxUSE_COLOURDLG && !(defined(__SMARTPHONE__) && defined(__WXWINCE__))
|
||||
|
||||
#include "wx/msw/private.h"
|
||||
#include "wx/colordlg.h"
|
||||
@ -231,4 +231,4 @@ void wxColourDialog::DoGetClientSize(int *width, int *height) const
|
||||
*height = 299;
|
||||
}
|
||||
|
||||
#endif
|
||||
#endif // wxUSE_COLOURDLG && !(__SMARTPHONE__ && __WXWINCE__)
|
||||
|
@ -214,12 +214,12 @@ wxSize wxControl::GetBestSpinerSize(const bool is_vertical) const
|
||||
{
|
||||
// take size according to layout
|
||||
wxSize bestSize(
|
||||
#ifdef __SMARTPHONE__
|
||||
#ifdef defined(__SMARTPHONE__) && defined(__WXWINCE__)
|
||||
0,GetCharHeight()
|
||||
#else // !__SMARTPHONE__
|
||||
#else
|
||||
GetSystemMetrics(is_vertical ? SM_CXVSCROLL : SM_CXHSCROLL),
|
||||
GetSystemMetrics(is_vertical ? SM_CYVSCROLL : SM_CYHSCROLL)
|
||||
#endif // __SMARTPHONE__/!__SMARTPHONE__
|
||||
#endif
|
||||
);
|
||||
|
||||
// correct size as for undocumented MSW variants cases (WinCE and perhaps others)
|
||||
|
@ -47,9 +47,9 @@
|
||||
#include <commdlg.h>
|
||||
#endif
|
||||
|
||||
#ifdef __SMARTPHONE__
|
||||
#if defined(__SMARTPHONE__) && defined(__WXWINCE__)
|
||||
#include "wx/msw/wince/resources.h"
|
||||
#endif // __SMARTPHONE__
|
||||
#endif // __SMARTPHONE__ && __WXWINCE__
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
// wxWin macros
|
||||
@ -186,7 +186,7 @@ bool wxDialog::Create(wxWindow *parent,
|
||||
|
||||
SetBackgroundColour(wxSystemSettings::GetColour(wxSYS_COLOUR_3DFACE));
|
||||
|
||||
#ifdef __SMARTPHONE__
|
||||
#if defined(__SMARTPHONE__) && defined(__WXWINCE__)
|
||||
SetLeftMenu(wxID_OK, _("OK"));
|
||||
#endif
|
||||
|
||||
|
@ -28,7 +28,7 @@
|
||||
#pragma hdrstop
|
||||
#endif
|
||||
|
||||
#if wxUSE_DIRDLG && !defined(__SMARTPHONE__)
|
||||
#if wxUSE_DIRDLG && !(defined(__SMARTPHONE__) && defined(__WXWINCE__))
|
||||
|
||||
#if defined(__WIN95__) && !defined(__GNUWIN32_OLD__) && wxUSE_OLE
|
||||
|
||||
@ -289,4 +289,4 @@ static void ItemListFree(LPITEMIDLIST pidl)
|
||||
#include "../generic/dirdlgg.cpp"
|
||||
#endif // compiler/platform on which the code here compiles
|
||||
|
||||
#endif // wxUSE_DIRDLG && !defined(__SMARTPHONE__)
|
||||
#endif // wxUSE_DIRDLG && !(__SMARTPHONE__ && __WXWINCE__)
|
||||
|
@ -28,7 +28,7 @@
|
||||
#pragma hdrstop
|
||||
#endif
|
||||
|
||||
#if wxUSE_FILEDLG && !defined(__SMARTPHONE__)
|
||||
#if wxUSE_FILEDLG && !(defined(__SMARTPHONE__) && defined(__WXWINCE__))
|
||||
|
||||
#ifndef WX_PRECOMP
|
||||
#include "wx/utils.h"
|
||||
@ -511,5 +511,5 @@ int wxFileDialog::ShowModal()
|
||||
|
||||
}
|
||||
|
||||
#endif // wxUSE_FILEDLG
|
||||
#endif // wxUSE_FILEDLG && !(__SMARTPHONE__ && __WXWINCE__)
|
||||
|
||||
|
@ -194,7 +194,7 @@ bool wxFrame::Create(wxWindow *parent,
|
||||
|
||||
SetBackgroundColour(wxSystemSettings::GetColour(wxSYS_COLOUR_APPWORKSPACE));
|
||||
|
||||
#ifdef __SMARTPHONE__
|
||||
#if defined(__SMARTPHONE__) && defined(__WXWINCE__)
|
||||
SetLeftMenu(wxID_EXIT, _("Done"));
|
||||
#endif
|
||||
|
||||
@ -322,7 +322,7 @@ void wxFrame::PositionStatusBar()
|
||||
|
||||
void wxFrame::AttachMenuBar(wxMenuBar *menubar)
|
||||
{
|
||||
#if defined(__SMARTPHONE__)
|
||||
#if defined(__SMARTPHONE__) && defined(__WXWINCE__)
|
||||
|
||||
wxMenu *autoMenu = NULL;
|
||||
|
||||
@ -872,13 +872,13 @@ bool wxFrame::HandleCommand(WXWORD id, WXWORD cmd, WXHWND control)
|
||||
}
|
||||
#endif // wxUSE_MENUS_NATIVE
|
||||
|
||||
#ifdef __SMARTPHONE__
|
||||
#if defined(__SMARTPHONE__) && defined(__WXWINCE__)
|
||||
// handle here commands from Smartphone menu bar
|
||||
if ( wxTopLevelWindow::HandleCommand(id, cmd, control ) )
|
||||
{
|
||||
return true;
|
||||
}
|
||||
#endif // __SMARTPHONE__
|
||||
#endif // __SMARTPHONE__ && __WXWINCE__
|
||||
|
||||
if ( ProcessCommand(id) )
|
||||
{
|
||||
|
@ -79,11 +79,11 @@ int wxMessageDialog::ShowModal()
|
||||
unsigned int msStyle = MB_OK;
|
||||
if (m_dialogStyle & wxYES_NO)
|
||||
{
|
||||
#if !defined(__SMARTPHONE__)
|
||||
#if !(defined(__SMARTPHONE__) && defined(__WXWINCE__))
|
||||
if (m_dialogStyle & wxCANCEL)
|
||||
msStyle = MB_YESNOCANCEL;
|
||||
else
|
||||
#endif // __SMARTPHONE__
|
||||
#endif // !(__SMARTPHONE__ && __WXWINCE__)
|
||||
msStyle = MB_YESNO;
|
||||
|
||||
if (m_dialogStyle & wxNO_DEFAULT)
|
||||
|
@ -28,7 +28,7 @@
|
||||
#pragma hdrstop
|
||||
#endif
|
||||
|
||||
#if wxUSE_TEXTCTRL && !defined(__SMARTPHONE__)
|
||||
#if wxUSE_TEXTCTRL && !(defined(__SMARTPHONE__) && defined(__WXWINCE__))
|
||||
|
||||
#ifndef WX_PRECOMP
|
||||
#include "wx/textctrl.h"
|
||||
@ -2642,4 +2642,4 @@ bool wxRichEditModule::Load(int version)
|
||||
|
||||
#endif // wxUSE_RICHEDIT
|
||||
|
||||
#endif // wxUSE_TEXTCTRL && !__SMARTPHONE__
|
||||
#endif // wxUSE_TEXTCTRL && !(__SMARTPHONE__ && __WXWINCE__)
|
||||
|
@ -145,7 +145,7 @@ void wxTopLevelWindowMSW::Init()
|
||||
|
||||
m_winLastFocused = (wxWindow *)NULL;
|
||||
|
||||
#ifdef __SMARTPHONE__
|
||||
#if defined(__SMARTPHONE__) && defined(__WXWINCE__)
|
||||
m_MenuBarHWND = 0;
|
||||
#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
|
||||
|
||||
#ifndef __SMARTPHONE__
|
||||
#if !(defined(__SMARTPHONE__) && defined(__WXWINCE__))
|
||||
// border and caption styles
|
||||
if ( style & wxRESIZE_BORDER )
|
||||
msflags |= WS_THICKFRAME;
|
||||
@ -529,7 +529,7 @@ bool wxTopLevelWindowMSW::Create(wxWindow *parent,
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef __SMARTPHONE__
|
||||
#if defined(__SMARTPHONE__) && defined(__WXWINCE__)
|
||||
SetRightMenu(); // to nothing for initialization
|
||||
#endif
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user