I have a View which is a parent of a dialog. This view has a grid on it. Whenever someone moves the dialog, it snaps to the grid. I got that part working fine. But what I can't seem to figure out is how to resize the dialog, having it snap to the grid as it is being resized. I have tried overloading the OnSize message handler of my dialog, and putting this sample line of code in there:
this->MoveWindow(nLeft, nTop, cx, cy); //cx and cy have been modified corresponding to fit grid.
However, this does not work at all. It does not resize; It only flickers.
Does anyone have any suggestions??