Can't yet use RegisterDragDrop, RevokeDragDrop on eVC4
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25018 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -330,6 +330,13 @@ wxDropTarget::~wxDropTarget()
|
||||
|
||||
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
|
||||
@@ -355,10 +362,14 @@ bool wxDropTarget::Register(WXHWND hwnd)
|
||||
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) ) {
|
||||
@@ -371,6 +382,7 @@ void wxDropTarget::Revoke(WXHWND hwnd)
|
||||
#endif
|
||||
|
||||
m_pIDropTarget->SetHwnd(0);
|
||||
#endif
|
||||
}
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
|
Reference in New Issue
Block a user