}
}
-void wxWindowMSW::AssociateHandle(WXWidget handle)
+void wxWindowMSW::AssociateHandle(WXWidget handle)
{
if ( m_hWnd )
{
if ( !::DestroyWindow(GetHwnd()) )
wxLogLastError(wxT("DestroyWindow"));
}
-
+
WXHWND wxhwnd = (WXHWND)handle;
SetHWND(wxhwnd);
}
void wxWindowMSW::DissociateHandle()
-{
+{
// this also calls SetHWND(0) for us
- UnsubclassWin();
+ UnsubclassWin();
}
#ifndef __WXWINCE__
if ( ((CREATESTRUCT *)cs)->dwExStyle & WS_EX_CONTROLPARENT )
EnsureParentHasControlParentStyle(GetParent());
+#else
+ wxUnusedVar(cs);
#endif // !__WXWINCE__
// TODO: should generate this event from WM_NCCREATE
}
bool
-wxWindowMSW::MSWOnMeasureItem(int WXUNUSED_UNLESS_ODRAWN(id),
- WXMEASUREITEMSTRUCT *
- WXUNUSED_UNLESS_ODRAWN(itemStruct))
+wxWindowMSW::MSWOnMeasureItem(int id, WXMEASUREITEMSTRUCT *itemStruct)
{
#if wxUSE_OWNER_DRAWN && wxUSE_MENUS_NATIVE
// is it a menu item?
{
return item->MSWOnMeasure(itemStruct);
}
-#endif // wxUSE_OWNER_DRAWN
+#else
+ wxUnusedVar(id);
+ wxUnusedVar(itemStruct);
+#endif // wxUSE_OWNER_DRAWN && wxUSE_MENUS_NATIVE
return false;
}
break;
case SIZE_MAXIMIZED:
- processed = HandleMaximize();
+ /* processed = */ HandleMaximize();
// fall through to send a normal size event as well
case SIZE_RESTORED:
// FIXME-UNICODE: this comparison doesn't risk to work
// for non ASCII accelerator characters I'm afraid, but
// what can we do?
- if ( wxToupper(*p) == chAccel )
+ if ( wxToupper(*p) == (wchar_t)chAccel )
{
return i;
}
return keySym;
}
-bool wxGetKeyState(wxKeyCode key)
+bool wxGetKeyState(const wxKeyCode& key)
{
bool bVirtual;
int vkey = wxCharCodeWXToMSW(key, &bVirtual);