c++ - When and how is DragDetect useful? -


basically need determine if user in process of drag , drop action determine when suppress on zealous default behavior of ctreectrl label editing in extended multi-select tree control.

cwnd::dragdetect returns true when user has moved mouse outside of defined rect left button down. thinking of using return value of in ::onmousemove determine if drag operation in progress enable or disable gui effects , actions.

sounds , accomplish more taking same mouse point , doing hit test selected item? have hit test drop targets anyway seems wholly unnecessary method.

google didn't turn examples of using method , returned no results i'm curious when , if ever useful method or if not intended use.

has used before?

the intent call dragdetect wm_lbuttondown handler see if user trying drag application. if returns true, start of drag operation; if it's false, not. after return of true start tracking mouse , doing hit tests provide feedback, if any; should @ least change cursor @ point. @ wm_lbuttonup final hit test see drop target is.


Comments

Popular posts from this blog

javascript - Enclosure Memory Copies -

php - Replacing tags in braces, even nested tags, with regex -