I have a custom control being derived from CWND and implemented as a grid. To enable drag and drop of rows of the grid I have a draggable transparent dialog (CDraggableDialog) displaying the current row and used NCHITTEST to drag the row. To restrict the movement of dragged row in within some area, I have trapped WM_MOVING message in CDraggableDialog class. However this event is not being fired.
If I use a simple test dialog based application, in which I use the same CDraggableDialog on top the parent dialog/main dialog, it works and WM_MOVING event is fired for CDraggableDialog class.
I am unable to figure the reason behind this behavior.