WinCE Standard SDK improvements including adding close button

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27460 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Julian Smart
2004-05-27 11:31:12 +00:00
parent 0cfc2a92dc
commit a9928e9d1a
17 changed files with 142 additions and 76 deletions

View File

@@ -109,6 +109,7 @@ protected:
// override base class virtuals
virtual void DoGetClientSize(int *width, int *height) const;
virtual void DoSetClientSize(int width, int height);
virtual wxPoint GetClientAreaOrigin() const;
#if wxUSE_MENUS_NATIVE
// perform MSW-specific action when menubar is changed

View File

@@ -172,14 +172,15 @@ public:
virtual void Detach();
virtual void Attach(wxFrame *frame);
#if wxUSE_TOOLBAR && defined(__WXWINCE__) && (_WIN32_WCE < 400 || defined(WIN32_PLATFORM_PSPC) || defined(WIN32_PLATFORM_WFSP))
#if wxUSE_TOOLBAR && defined(__WXWINCE__) && (_WIN32_WCE < 400 || defined(__POCKETPC__) || defined(__SMARTPHONE__))
// Under WinCE, a menubar is owned by the frame's toolbar
void SetToolBar(wxToolBar* toolBar) { m_toolBar = toolBar; }
wxToolBar* GetToolBar() const { return m_toolBar; }
#endif
#if defined(__WXWINCE__) && (_WIN32_WCE >= 400 && !defined(WIN32_PLATFORM_PSPC) && !defined(WIN32_PLATFORM_WFSP))
#if defined(__WXWINCE__) && (_WIN32_WCE >= 400 && !defined(__POCKETPC__) && !defined(__SMARTPHONE__))
WXHWND GetCommandBar() const { return m_commandBar; }
bool AddAdornments(long style);
#endif
#if wxUSE_ACCEL
@@ -224,8 +225,9 @@ protected:
// Not using a combined wxToolBar/wxMenuBar? then use
// a commandbar in WinCE .NET to implement the
// menubar, since there is no ::SetMenu function.
#if defined(__WXWINCE__) && (_WIN32_WCE >= 400 && !defined(WIN32_PLATFORM_PSPC) && !defined(WIN32_PLATFORM_WFSP))
#if defined(__WXWINCE__) && (_WIN32_WCE >= 400 && !defined(__POCKETPC__) && !defined(__SMARTPHONE__))
WXHWND m_commandBar;
bool m_adornmentsAdded;
#endif
private:

View File

@@ -27,16 +27,16 @@
#pragma comment(lib,"commdlg.lib")
#endif
#if defined(WCE_PLATFORM_STANDARDSDK)
#if defined(__WINCE_STANDARDSDK__)
// DoDragDrop:
#pragma comment(lib,"olece400.lib")
#elif defined(WIN32_PLATFORM_PSPC)
#elif defined(__POCKETPC__)
// PocketPC build:
// DoDragDrop:
#pragma comment(lib,"ceshell.lib")
#pragma comment(lib,"aygshell.lib")
#elif defined(WIN32_PLATFORM_WFSP)
#elif defined(__SMARTPHONE__)
// Smartphone build:
#pragma comment(lib,"ceshell.lib")
#pragma comment(lib,"aygshell.lib")

View File

@@ -25,7 +25,7 @@ inline BOOL IsIconic( HWND WXUNUSED(hWnd) )
return FALSE;
}
#ifdef WIN32_PLATFORM_PSPC
#ifdef __POCKETPC__
#define SM_CXCURSOR 13
#define SM_CYCURSOR 14
#endif

View File

@@ -1070,27 +1070,6 @@
// (notably, wxNotebook pages)
#define wxUSE_UXTHEME_AUTO 0
// Set to 1 if you want to maintain a PocketPC-style UI on
// Windows CE .NET. If 0, wxWidgets will use a commandbar
// for the menubar, and a normal separate toolbar as per the
// desktop implementation. If 1, wxWidgets will combine
// the toolbar and menubar as per the PocketPC implementation.
//
// Note that at present, the dynamic loading of PocketPC
// shell functions on WinCE .NET is not yet done, and a
// simple commandbar implementation is used instead of the
// PocketPC one. The intention is to use the PocketPC style
// when available (when wxUSE_POCKETPC_UI is 1).
//
// So if you're using WinCE .NET, and wxUSE_POCKETPC_UI is 0,
// you will be able to create separate toolbars and menubars,
// but _not_ the combined toolbar/menubar.
// NOW OBSOLETE: we test WIN32_PLATFORM_PSPC and WIN32_PLATFORM_WFSP
// instead
// #define wxUSE_POCKETPC_UI 1
// ----------------------------------------------------------------------------
// obsolete settings
// ----------------------------------------------------------------------------