Added Marco's first WinCE files
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@18057 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
63
include/wx/msw/wince/gdiobj.h
Normal file
63
include/wx/msw/wince/gdiobj.h
Normal file
@@ -0,0 +1,63 @@
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// Name: wx/msw/gdiobj.h
|
||||
// Purpose: wxGDIObject class: base class for other GDI classes
|
||||
// Author: Marco Cavallini
|
||||
// Modified by:
|
||||
// Created: 11/11/2002
|
||||
// RCS-ID:
|
||||
// Copyright: (c) KOAN SAS ( www.koansoftware.com )
|
||||
// Licence: wxWindows licence
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#ifndef _WX_GDIOBJ_H_
|
||||
#define _WX_GDIOBJ_H_
|
||||
|
||||
|
||||
#include "wx/object.h" // base class
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
// wxGDIRefData is the base class for wxXXXData structures which contain the
|
||||
// real data for the GDI object and are shared among all wxWin objects sharing
|
||||
// the same native GDI object
|
||||
// ----------------------------------------------------------------------------
|
||||
|
||||
class WXDLLEXPORT wxGDIRefData : public wxObjectRefData
|
||||
{
|
||||
// this class is intentionally left blank
|
||||
};
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
// wxGDIObject
|
||||
// ----------------------------------------------------------------------------
|
||||
|
||||
class WXDLLEXPORT wxGDIObject : public wxObject
|
||||
{
|
||||
public:
|
||||
wxGDIObject() { m_visible = FALSE; };
|
||||
|
||||
// Creates the resource
|
||||
virtual bool RealizeResource() { return FALSE; };
|
||||
|
||||
// Frees the resource
|
||||
virtual bool FreeResource(bool WXUNUSED(force) = FALSE) { return FALSE; }
|
||||
|
||||
virtual bool IsFree() const { return FALSE; }
|
||||
|
||||
bool IsNull() const { return (m_refData == 0); }
|
||||
|
||||
// Returns handle.
|
||||
// virtual WXHANDLE GetResourceHandle() { return 0; }
|
||||
WXHANDLE GetResourceHandle() { return 0; }
|
||||
|
||||
virtual bool GetVisible() { return m_visible; }
|
||||
virtual void SetVisible(bool v) { m_visible = v; }
|
||||
|
||||
protected:
|
||||
bool m_visible; // TRUE only if we should delete this object ourselves
|
||||
|
||||
private:
|
||||
DECLARE_DYNAMIC_CLASS(wxGDIObject)
|
||||
};
|
||||
|
||||
#endif
|
||||
// _WX_GDIOBJ_H_
|
139
include/wx/msw/wince/missing.h
Normal file
139
include/wx/msw/wince/missing.h
Normal file
@@ -0,0 +1,139 @@
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// Name: wince/missing.h
|
||||
// Purpose: Missing things in WinCE 3.0
|
||||
// Author: Marco Cavallini
|
||||
// Modified by:
|
||||
// Created: 16/11/2002
|
||||
// RCS-ID:
|
||||
// Copyright: (c) KOAN SAS ( www.koansoftware.com )
|
||||
// Licence: wxWindows license
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#ifndef _WX_CE_MISSING_H_
|
||||
#define _WX_CE_MISSING_H_
|
||||
|
||||
|
||||
#include "wx/msw/private.h"
|
||||
|
||||
/*
|
||||
Most of these are in MSVC++6.0 <wx\wince\winuser.h>
|
||||
see also <wx\msw\gnuwin32\winresrc.h>
|
||||
*/
|
||||
////////////////////////////////////////////////////////
|
||||
|
||||
/*
|
||||
* Extended Window Styles
|
||||
*/
|
||||
#define WS_EX_DLGMODALFRAME 0x00000001L
|
||||
#define WS_EX_NOPARENTNOTIFY 0x00000004L
|
||||
#define WS_EX_TOPMOST 0x00000008L
|
||||
#define WS_EX_ACCEPTFILES 0x00000010L
|
||||
#define WS_EX_TRANSPARENT 0x00000020L
|
||||
|
||||
#define WS_EX_MDICHILD 0x00000040L
|
||||
#define WS_EX_TOOLWINDOW 0x00000080L
|
||||
#define WS_EX_WINDOWEDGE 0x00000100L
|
||||
#define WS_EX_CLIENTEDGE 0x00000200L
|
||||
#define WS_EX_CONTEXTHELP 0x00000400L
|
||||
|
||||
#define WS_EX_RIGHT 0x00001000L
|
||||
#define WS_EX_LEFT 0x00000000L
|
||||
#define WS_EX_RTLREADING 0x00002000L
|
||||
#define WS_EX_LTRREADING 0x00000000L
|
||||
#define WS_EX_LEFTSCROLLBAR 0x00004000L
|
||||
#define WS_EX_RIGHTSCROLLBAR 0x00000000L
|
||||
|
||||
#define WS_EX_CONTROLPARENT 0x00010000L
|
||||
#define WS_EX_STATICEDGE 0x00020000L
|
||||
#define WS_EX_APPWINDOW 0x00040000L
|
||||
|
||||
|
||||
#define WS_EX_OVERLAPPEDWINDOW (WS_EX_WINDOWEDGE | WS_EX_CLIENTEDGE)
|
||||
#define WS_EX_PALETTEWINDOW (WS_EX_WINDOWEDGE | WS_EX_TOOLWINDOW | WS_EX_TOPMOST)
|
||||
|
||||
|
||||
/*
|
||||
* Flags for TrackPopupMenu
|
||||
*/
|
||||
#define TPM_LEFTBUTTON 0x0000L
|
||||
#define TPM_RIGHTBUTTON 0x0002L
|
||||
#define TPM_LEFTALIGN 0x0000L
|
||||
#define TPM_CENTERALIGN 0x0004L
|
||||
#define TPM_RIGHTALIGN 0x0008L
|
||||
|
||||
#define TPM_TOPALIGN 0x0000L
|
||||
#define TPM_VCENTERALIGN 0x0010L
|
||||
#define TPM_BOTTOMALIGN 0x0020L
|
||||
|
||||
#define TPM_HORIZONTAL 0x0000L /* Horz alignment matters more */
|
||||
#define TPM_VERTICAL 0x0040L /* Vert alignment matters more */
|
||||
#define TPM_NONOTIFY 0x0080L /* Don't send any notification msgs */
|
||||
#define TPM_RETURNCMD 0x0100L
|
||||
|
||||
#define TPM_RECURSE 0x0001L
|
||||
|
||||
|
||||
|
||||
////////////////////////////////////////////////////////
|
||||
// Missing declarations into WinCE include files (MCK)
|
||||
////////////////////////////////////////////////////////
|
||||
|
||||
HCURSOR WINAPI
|
||||
DestroyCursor(HCURSOR hCursor);
|
||||
|
||||
HCURSOR WINAPI
|
||||
CreateCursor(HINSTANCE hInst,
|
||||
int xHotSpot,
|
||||
int yHotSpot,
|
||||
int nWidth,
|
||||
int nHeight,
|
||||
CONST VOID *pvANDPlane,
|
||||
CONST VOID *pvXORPlane );
|
||||
|
||||
////////////////////////////////////////////////////////
|
||||
|
||||
int WINAPI
|
||||
GetScrollPos(
|
||||
HWND hWnd,
|
||||
int nBar);
|
||||
|
||||
bool WINAPI
|
||||
GetScrollRange(
|
||||
HWND hWnd,
|
||||
int nBar,
|
||||
LPINT lpMinPos,
|
||||
LPINT lpMaxPos);
|
||||
|
||||
bool WINAPI
|
||||
ScrollWindow(
|
||||
HWND hWnd,
|
||||
int XAmount,
|
||||
int YAmount,
|
||||
CONST RECT *lpRect,
|
||||
CONST RECT *lpClipRect);
|
||||
|
||||
LRESULT WINAPI
|
||||
CallWindowProcA(
|
||||
WNDPROC lpPrevWndFunc,
|
||||
HWND hWnd,
|
||||
UINT Msg,
|
||||
WPARAM wParam,
|
||||
LPARAM lParam);
|
||||
|
||||
LRESULT WINAPI
|
||||
CallWindowProcW(
|
||||
WNDPROC lpPrevWndFunc,
|
||||
HWND hWnd,
|
||||
UINT Msg,
|
||||
WPARAM wParam,
|
||||
LPARAM lParam);
|
||||
|
||||
#ifdef UNICODE
|
||||
#define CallWindowProc CallWindowProcW
|
||||
#else
|
||||
#define CallWindowProc CallWindowProcA
|
||||
#endif // !UNICODE
|
||||
|
||||
////////////////////////////////////////////////////////
|
||||
|
||||
#endif // _WX_CE_MISSING_H_
|
1224
include/wx/msw/wince/setup.h
Normal file
1224
include/wx/msw/wince/setup.h
Normal file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user