bool wxDropTarget::Register(WXHWND hwnd)
{
+ // FIXME
+ // RegisterDragDrop not available on Windows CE >= 400?
+ // Or maybe we can dynamically load them from ceshell.dll
+ // or similar.
+#if defined(__WXWINCE__) && _WIN32_WCE >= 400
+ return FALSE;
+#else
HRESULT hr;
// May exist in later WinCE versions
m_pIDropTarget->SetHwnd((HWND)hwnd);
return TRUE;
+#endif
}
void wxDropTarget::Revoke(WXHWND hwnd)
{
+#if defined(__WXWINCE__) && _WIN32_WCE >= 400
+ // Not available, see note above
+#else
HRESULT hr = ::RevokeDragDrop((HWND) hwnd);
if ( FAILED(hr) ) {
#endif
m_pIDropTarget->SetHwnd(0);
+#endif
}
// ----------------------------------------------------------------------------