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:
@@ -85,10 +85,11 @@ bool wxImageList::Create(int width, int height, bool mask, int initial)
|
|||||||
UINT flags = 0;
|
UINT flags = 0;
|
||||||
|
|
||||||
// set appropriate color depth
|
// set appropriate color depth
|
||||||
int dd = wxDisplayDepth();
|
|
||||||
#ifdef __WXWINCE__
|
#ifdef __WXWINCE__
|
||||||
flags |= ILC_COLOR;
|
flags |= ILC_COLOR;
|
||||||
#else
|
#else
|
||||||
|
int dd = wxDisplayDepth();
|
||||||
|
|
||||||
if (dd <= 4) flags |= ILC_COLOR; // 16 color
|
if (dd <= 4) flags |= ILC_COLOR; // 16 color
|
||||||
else if (dd <= 8) flags |= ILC_COLOR8; // 256 color
|
else if (dd <= 8) flags |= ILC_COLOR8; // 256 color
|
||||||
else if (dd <= 16) flags |= ILC_COLOR16; // 64k hi-color
|
else if (dd <= 16) flags |= ILC_COLOR16; // 64k hi-color
|
||||||
|
@@ -537,6 +537,8 @@ wxListBox::DoInsertItems(const wxArrayString& items, int pos)
|
|||||||
|
|
||||||
ListBox_SetItemData(GetHwnd(), idx, pNewItem);
|
ListBox_SetItemData(GetHwnd(), idx, pNewItem);
|
||||||
}
|
}
|
||||||
|
#else
|
||||||
|
wxUnusedVar(idx);
|
||||||
#endif // wxUSE_OWNER_DRAWN
|
#endif // wxUSE_OWNER_DRAWN
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -93,6 +93,9 @@ static void SetDefaultMenuItem(HMENU hmenu, UINT id)
|
|||||||
{
|
{
|
||||||
wxLogLastError(wxT("SetMenuItemInfo"));
|
wxLogLastError(wxT("SetMenuItemInfo"));
|
||||||
}
|
}
|
||||||
|
#else
|
||||||
|
wxUnusedVar(hmenu);
|
||||||
|
wxUnusedVar(id);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -37,14 +37,14 @@ IMPLEMENT_DYNAMIC_CLASS(wxWinceHelpController, wxHelpControllerBase)
|
|||||||
bool wxWinceHelpController::Initialize(const wxString& filename)
|
bool wxWinceHelpController::Initialize(const wxString& filename)
|
||||||
{
|
{
|
||||||
m_helpFile = filename;
|
m_helpFile = filename;
|
||||||
return TRUE;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool wxWinceHelpController::LoadFile(const wxString& file)
|
bool wxWinceHelpController::LoadFile(const wxString& file)
|
||||||
{
|
{
|
||||||
if (!file.IsEmpty())
|
if (!file.IsEmpty())
|
||||||
m_helpFile = file;
|
m_helpFile = file;
|
||||||
return TRUE;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool wxWinceHelpController::DisplayContents()
|
bool wxWinceHelpController::DisplayContents()
|
||||||
@@ -59,30 +59,30 @@ bool wxWinceHelpController::DisplaySection(const wxString& section)
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Use context number
|
// 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,
|
bool wxWinceHelpController::KeywordSearch(const wxString& WXUNUSED(k),
|
||||||
wxHelpSearchMode mode)
|
wxHelpSearchMode WXUNUSED(mode))
|
||||||
{
|
{
|
||||||
return TRUE;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool wxWinceHelpController::Quit()
|
bool wxWinceHelpController::Quit()
|
||||||
|
Reference in New Issue
Block a user