Drop target - where do I register the COleDropTarget variable if the view class doesn't have OnCreat

Posted by Harvey on Stack Overflow See other posts from Stack Overflow or by Harvey
Published on 2010-03-10T20:54:15Z Indexed on 2010/03/13 8:55 UTC
Read the original article Hit count: 434

Filed under:
|

The MSDN site says:

From your view class's function that handles the WM_CREATE message (typically OnCreate), call the new member variable's Register member function. Revoke will be called automatically for you when your view is destroyed.

But I don't have an OnCreate function in the ChildView class.

I do have OnCreate in the CMainFrame class. Can I register it there? What are the ramifications?

PLEASE NOTE: I have it working for dropping files but I want to drop the text as a file, not at a cursor location like a text cut and paste, but rather I want the application to make a buffer to hold it, and I will treat it like a file.

TIA,

Harvey

© Stack Overflow or respective owner

Related posts about visual-c++

Related posts about c++