Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

COleDropTarget::Register

clodaghoclodagho Member Posts: 13
Hi all,

I'm implementing drag/drop to a CComboBox.

Any of the examples I@ve seen have been dragging to a dialog or a listcontrol.

The register call was done in the OnInitDialog function of any examples I've looked at

Does anyone know where it should be in a CComboBOx derived class?
At the moment I've got it in the constructor and it's returning unsuccessfully:

if ( !m_dropTarget.Register(this) )
AfxMessageBox("Error Registering Drop Target");

Any ideas of where I'm going wrong would be greatly appreciated!
Thanks,
Clodagh

Comments

  • Chris BrownChris Brown USAMember Posts: 4,624 ✭✭

    ___ || http://forcoder.org || free ebooks and video tutorials about < C++ Objective-C JavaScript Python Scratch R Assembly C# Visual Basic Perl Go C MATLAB Ruby Delphi PL/SQL Swift Java PHP Visual Basic .NET Apex Rust Transact-SQL Awk Prolog Julia Alice FoxPro Hack Crystal COBOL Kotlin D Fortran ABAP Dart VBScript Bash ML Ada Scheme Scala F# Lisp SAS Logo Lua LabVIEW Erlang Clojure /> __________

Sign In or Register to comment.