Helpers in disabling warnings for unused params.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34792 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Włodzimierz Skiba
2005-07-01 13:39:03 +00:00
parent 2e29e19e7e
commit 0c0d1521c0
9 changed files with 92 additions and 109 deletions

View File

@@ -338,10 +338,9 @@
#ifdef IsMaximized
#undef IsMaximized
inline BOOL IsMaximized(HWND hwnd)
inline BOOL IsMaximized(HWND WXUNUSED_IN_WINCE(hwnd))
{
#ifdef __WXWINCE__
wxUnusedVar(hwnd);
return FALSE;
#else
return IsZoomed(hwnd);
@@ -353,10 +352,9 @@
#ifdef GetFirstChild
#undef GetFirstChild
inline HWND GetFirstChild(HWND hwnd)
inline HWND GetFirstChild(HWND WXUNUSED_IN_WINCE(hwnd))
{
#ifdef __WXWINCE__
wxUnusedVar(hwnd);
return 0;
#else
return GetTopWindow(hwnd);

View File

@@ -40,13 +40,12 @@
#include "wx/msw/missing.h"
// Set Unicode format for a common control
inline void wxSetCCUnicodeFormat(HWND hwnd)
inline void wxSetCCUnicodeFormat(HWND WXUNUSED_IN_WINCE(hwnd))
{
#ifndef __WXWINCE__
::SendMessage(hwnd, CCM_SETUNICODEFORMAT, wxUSE_UNICODE, 0);
#else // !__WXWINCE__
// here it should be already in Unicode anyhow
wxUnusedVar(hwnd);
#endif // __WXWINCE__/!__WXWINCE__
}