I have a CStatic Derived class and I want to enable the ability to drag and drop files onto it.
The static control is created on the dialog app using the following code:
m_stcPortal.Create("", WS_VISIBLE|SS_NOTIFY|SS_SUNKEN, C3DPortal::GetRect(IDC_STATIC_PORTAL, this),(CWnd*)this);
I have implemented the following in the header:
afx_msg void OnDropFiles(HDROP hDropInfo);
...and in the cpp file:
int C3DPortal::OnCreate(LPCREATESTRUCT lpCreateStruct)
void C3DPortal::OnDropFiles(HDROP hDropInfo)
There is still a "no-drag-allowed" icon showing when I drag a file over this control....