Implement initial try of wxDropTarget.

The drop target needs to use an event filter to capture drag-and-drop events from the window.
This commit is contained in:
Jay Nabonne
2019-01-29 16:13:41 +00:00
parent 0dc1654ab6
commit 323cbdabdb
5 changed files with 211 additions and 19 deletions

View File

@@ -102,6 +102,12 @@ bool wxDataFormat::operator!=(wxDataFormatId format) const
bool wxDataFormat::operator==(const wxDataFormat& format) const
{
// If mime types match, then that's good enough.
// (Could be comparing a standard constructed format to a
// custom constructed one, where both are actually the same.)
if (!m_mimeType.empty() && m_mimeType == format.m_mimeType)
return true;
return m_mimeType == format.m_mimeType
&& m_formatId == format.m_formatId;
}