don't define functions unused under CE when compiling for it (avoids warnings)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26621 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2004-04-04 23:36:29 +00:00
parent 9c56ae5fe8
commit e0c5c96f67

View File

@@ -180,6 +180,8 @@ static inline void wxBringWindowToTop(HWND hwnd)
} }
} }
#ifndef __WXWINCE__
// ensure that all our parent windows have WS_EX_CONTROLPARENT style // ensure that all our parent windows have WS_EX_CONTROLPARENT style
static void EnsureParentHasControlParentStyle(wxWindow *parent) static void EnsureParentHasControlParentStyle(wxWindow *parent)
{ {
@@ -196,7 +198,6 @@ static void EnsureParentHasControlParentStyle(wxWindow *parent)
but if the parent doesn't have it, it wouldn't recurse inside it later but if the parent doesn't have it, it wouldn't recurse inside it later
on and so wouldn't have a chance of getting back to this window neither. on and so wouldn't have a chance of getting back to this window neither.
*/ */
#ifndef __WXWINCE__
while ( parent && !parent->IsTopLevel() ) while ( parent && !parent->IsTopLevel() )
{ {
LONG exStyle = ::GetWindowLong(GetHwndOf(parent), GWL_EXSTYLE); LONG exStyle = ::GetWindowLong(GetHwndOf(parent), GWL_EXSTYLE);
@@ -209,9 +210,10 @@ static void EnsureParentHasControlParentStyle(wxWindow *parent)
parent = parent->GetParent(); parent = parent->GetParent();
} }
#endif // !__WXWINCE__
} }
#endif // !__WXWINCE__
// --------------------------------------------------------------------------- // ---------------------------------------------------------------------------
// event tables // event tables
// --------------------------------------------------------------------------- // ---------------------------------------------------------------------------
@@ -3096,6 +3098,7 @@ bool wxWindowMSW::MSWCreate(const wxChar *wclass,
// do create the window // do create the window
wxWindowCreationHook hook(this); wxWindowCreationHook hook(this);
// VZ: anyonce cares to explain why is this done for CE?
#ifdef __WXWINCE__ #ifdef __WXWINCE__
if (extendedStyle == 0) if (extendedStyle == 0)
{ {
@@ -3112,7 +3115,7 @@ bool wxWindowMSW::MSWCreate(const wxChar *wclass,
); );
} }
else else
#endif #endif // __WXWINCE__
{ {
m_hWnd = (WXHWND)::CreateWindowEx m_hWnd = (WXHWND)::CreateWindowEx
( (