Phil
11-01-2000, 07:06 AM
Hi,
I wish to limit the range of dimensions of a form when it is being resized by the user. The rather clunky way I've done this up to now is to check and if necessary reset the form's dimensions in the resize event. What I'd prefer to do is to hook the WM_SIZING message and by changing the RECT parameter limit the dimensions of the form. I've used hooks previously and am able to redirect the WM_SIZING message to a proceedure but need help from there on.
If anyone has any experience using this message or can post an example it would help me greatly.
Thanks a lot,
Phil.
I wish to limit the range of dimensions of a form when it is being resized by the user. The rather clunky way I've done this up to now is to check and if necessary reset the form's dimensions in the resize event. What I'd prefer to do is to hook the WM_SIZING message and by changing the RECT parameter limit the dimensions of the form. I've used hooks previously and am able to redirect the WM_SIZING message to a proceedure but need help from there on.
If anyone has any experience using this message or can post an example it would help me greatly.
Thanks a lot,
Phil.