I am trying to implement a 16 bit status bar class for dialogs like the one in
32 bits. The obvious thing of returning HTBOTTOMRIGHT from the control when the
cursor is in the sizegrip works fine if the app is runiing under Win95 or NT4,
but under Win 3.1 the control is resized, not the dialog.
I subclassed the dialog procedure. It does not receive WM_NCHITTEST when the
cursor is in a control so I tried returning HTBOTTOMRIGHT when the mouse was
not on a control. I was unable to make the dialog resize that way, or by
adjusting lParam so the system would think that the mouse was on the border. In
fact returning HTBOTTOMRIGHT in the subcless procedure prevents the sizing
cursor from being shown. I can only assume that the system has looked at the
message before the subclass procedure is called. This behaviour is the same
under Win3.1, 95 and NT4.
I also tried putting the user control in the dialog template instead of
creating it on the fly with CreateWindow(), but this made no difference.
Anyone got any ideas please?
RHA (Minisystems) Ltd.
Windows shareware, DDE tools, Algol60