[wxPython] selecting valid resize border

Found out how.. here's a response I got from a win32 group:

There are several ways to do it, including processing the
WM_GETMINMAXINFO
and WM_SIZING messages. The trouble with both of these is that the
cursor
still changes to the resizing symbol when over the edge, even though
resizing is not possible using that edge. A better solution is to
process
WM_NCHITTEST. Suppose you want to prevent resizing using the bottom edge
(including the corners). Then the following will do the trick (and the
cursor never changes to the resizing symbol):

case WM_NCHITTEST:
    {
        LRESULT lr = DefWindowProc (hwnd, message, wParam, lParam) ;

        if (lr == HTBOTTOM || lr == HTBOTTOMLEFT || lr == HTBOTTOMRIGHT)
            return HTBORDER;
        else
            return lr;
    }

See the documentation for WM_NCHITTEST to find the identifiers for the
other
edges.

.....

DefWindowProc is exposed in win32gui; WM_NCHITTEST is 0x0084.

···

----------
Keith J. Farmer
kfarmer@thuban.org
http://www.thuban.org

-----Original Message-----
From: Robin Dunn [mailto:robin@alldunn.com]
Sent: Friday, February 01, 2002 15:12

If there is any native capability for this wxWindows is not exposing it.