Click here to Skip to main content
15,915,600 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: CPropertyPage and default button behavior Pin
Iain Clarke, Warrior Programmer3-Jul-07 6:18
Iain Clarke, Warrior Programmer3-Jul-07 6:18 
QuestionWindows Media Player ActiveX Control. Pin
adityarao312-Jul-07 20:24
adityarao312-Jul-07 20:24 
Questionis it posible to do this.... Pin
Jhony george2-Jul-07 20:04
Jhony george2-Jul-07 20:04 
QuestionRe: is it posible to do this.... Pin
Hamid_RT2-Jul-07 22:15
Hamid_RT2-Jul-07 22:15 
QuestionRe: is it posible to do this.... Pin
Jhony george2-Jul-07 22:55
Jhony george2-Jul-07 22:55 
AnswerRe: is it posible to do this.... [modified] Pin
Mark Salsbery3-Jul-07 10:11
Mark Salsbery3-Jul-07 10:11 
GeneralRe: is it posible to do this.... Pin
Jhony george3-Jul-07 21:47
Jhony george3-Jul-07 21:47 
GeneralRe: is it posible to do this.... Pin
Mark Salsbery4-Jul-07 6:09
Mark Salsbery4-Jul-07 6:09 
Get rid of the WM_DROPFILES/OnDropFiles() stuff. That only lets you get the dropped filenames
in the entire window.

In my code example (in red) check out the commented line:

"// Use the passed point to hittest on the treeview control to select the appropriate item"

There you have the cursor position (a POINT struct) and a pointer to the window.
That should be all you need to hit-test on the tree and select/unselect items as the drag
cursor moves over the control. The COleDropTarget::OnDrop() override has the same info and is
called when the files are dropped.

Make sense?

Mark


Mark Salsbery
Microsoft MVP - Visual C++


"Go that way, really fast. If something gets in your way, turn."

QuestionA simple problem about DrawText Pin
whiteclouds2-Jul-07 17:09
whiteclouds2-Jul-07 17:09 
AnswerRe: A simple problem about DrawText Pin
Arman S.2-Jul-07 19:27
Arman S.2-Jul-07 19:27 
Questionproblem about RichEdit Pin
kcynic2-Jul-07 15:29
kcynic2-Jul-07 15:29 
AnswerRe: problem about RichEdit Pin
Naveen2-Jul-07 15:42
Naveen2-Jul-07 15:42 
GeneralRe: problem about RichEdit Pin
kcynic2-Jul-07 18:41
kcynic2-Jul-07 18:41 
QuestionKeywords that I don't understand Pin
Alex Cutovoi2-Jul-07 13:26
Alex Cutovoi2-Jul-07 13:26 
AnswerRe: Keywords that I don't understand Pin
Stephen Hewitt2-Jul-07 13:30
Stephen Hewitt2-Jul-07 13:30 
AnswerRe: Keywords that I don't understand [modified] Pin
Jeremy Falcon2-Jul-07 14:12
professionalJeremy Falcon2-Jul-07 14:12 
GeneralRe: Keywords that I don't understand Pin
Stephen Hewitt2-Jul-07 15:03
Stephen Hewitt2-Jul-07 15:03 
GeneralRe: Keywords that I don't understand Pin
Jeremy Falcon2-Jul-07 15:16
professionalJeremy Falcon2-Jul-07 15:16 
GeneralRe: Keywords that I don't understand Pin
Stephen Hewitt2-Jul-07 15:38
Stephen Hewitt2-Jul-07 15:38 
GeneralRe: Keywords that I don't understand Pin
Jeremy Falcon2-Jul-07 16:00
professionalJeremy Falcon2-Jul-07 16:00 
GeneralRe: Keywords that I don't understand Pin
Stephen Hewitt2-Jul-07 16:15
Stephen Hewitt2-Jul-07 16:15 
GeneralRe: Keywords that I don't understand Pin
Jeremy Falcon2-Jul-07 16:24
professionalJeremy Falcon2-Jul-07 16:24 
GeneralRe: Keywords that I don't understand Pin
Jeremy Falcon2-Jul-07 16:08
professionalJeremy Falcon2-Jul-07 16:08 
GeneralRe: Keywords that I don't understand Pin
Stephen Hewitt2-Jul-07 16:22
Stephen Hewitt2-Jul-07 16:22 
GeneralRe: Keywords that I don't understand Pin
Jeremy Falcon2-Jul-07 16:25
professionalJeremy Falcon2-Jul-07 16:25 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.