Warning fixes for WinCE.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27831 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Włodzimierz Skiba
2004-06-16 06:34:53 +00:00
parent f428e6c50f
commit 665b71b17c
4 changed files with 27 additions and 21 deletions

View File

@@ -85,10 +85,11 @@ bool wxImageList::Create(int width, int height, bool mask, int initial)
UINT flags = 0;
// set appropriate color depth
int dd = wxDisplayDepth();
#ifdef __WXWINCE__
flags |= ILC_COLOR;
#else
int dd = wxDisplayDepth();
if (dd <= 4) flags |= ILC_COLOR; // 16 color
else if (dd <= 8) flags |= ILC_COLOR8; // 256 color
else if (dd <= 16) flags |= ILC_COLOR16; // 64k hi-color

View File

@@ -537,6 +537,8 @@ wxListBox::DoInsertItems(const wxArrayString& items, int pos)
ListBox_SetItemData(GetHwnd(), idx, pNewItem);
}
#else
wxUnusedVar(idx);
#endif // wxUSE_OWNER_DRAWN
}

View File

@@ -93,6 +93,9 @@ static void SetDefaultMenuItem(HMENU hmenu, UINT id)
{
wxLogLastError(wxT("SetMenuItemInfo"));
}
#else
wxUnusedVar(hmenu);
wxUnusedVar(id);
#endif
}

View File

@@ -37,14 +37,14 @@ IMPLEMENT_DYNAMIC_CLASS(wxWinceHelpController, wxHelpControllerBase)
bool wxWinceHelpController::Initialize(const wxString& filename)
{
m_helpFile = filename;
return TRUE;
return true;
}
bool wxWinceHelpController::LoadFile(const wxString& file)
{
if (!file.IsEmpty())
m_helpFile = file;
return TRUE;
return true;
}
bool wxWinceHelpController::DisplayContents()
@@ -59,30 +59,30 @@ bool wxWinceHelpController::DisplaySection(const wxString& section)
}
// Use context number
bool wxWinceHelpController::DisplaySection(int section)
bool wxWinceHelpController::DisplaySection(int WXUNUSED(section))
{
return TRUE;
return true;
}
bool wxWinceHelpController::DisplayContextPopup(int contextId)
bool wxWinceHelpController::DisplayContextPopup(int WXUNUSED(contextId))
{
return TRUE;
return true;
}
bool wxWinceHelpController::DisplayTextPopup(const wxString& text, const wxPoint& pos)
bool wxWinceHelpController::DisplayTextPopup(const wxString& WXUNUSED(text), const wxPoint& WXUNUSED(pos))
{
return TRUE;
return true;
}
bool wxWinceHelpController::DisplayBlock(long block)
bool wxWinceHelpController::DisplayBlock(long WXUNUSED(block))
{
return TRUE;
return true;
}
bool wxWinceHelpController::KeywordSearch(const wxString& k,
wxHelpSearchMode mode)
bool wxWinceHelpController::KeywordSearch(const wxString& WXUNUSED(k),
wxHelpSearchMode WXUNUSED(mode))
{
return TRUE;
return true;
}
bool wxWinceHelpController::Quit()