Date: | October 24, 2007 / year-entry #386 |
Tags: | code |
Orig Link: | https://blogs.msdn.microsoft.com/oldnewthing/20071024-00/?p=24703 |
Comments: | 3 |
Summary: | One customer was confused by the two list view hit-test messages LVM_HITTEST and LVM_INSERTMARKHITTEST. What is the difference between the two? The LVM_HITTEST message tries to find the item the point is over. The LVM_INSERTMARKHITTEST message tries to find the item the point is next to. For example, suppose you have two 32×32 items, item... |
One customer was confused by the two list view hit-test messages The The For example, suppose you have two 32×32 items, item zero at (0, 0) and item one at (0, 32).
You use You use The shell uses both of these hit-test messages when you drop a file into an Explorer window. It uses the Explorer uses |
Comments (3)
Comments are closed. |
It seems the same message exist for tool bar (TB_INSERTMARKHITTEST) but not for tree control (
TVM_INSERTMARKHITTEST).
Shouldn’t that be "and Auto-Arrange is disabled"? If it’s enabled, it doesn’t really matter where you drag it; Explorer is going to re-arrange it. If it’s disabled, Explorer is going to put it where you drop it.
Perhaps "Align to grid"