Pythonwin, DefWindowProc bug?
Keith Farmer
kfarmer at thuban.org
Sat Feb 2 03:21:54 EST 2002
My mistake:
lr = win32gui.DefWindowProc(self._GetAppBarWnd().GetSafeHwnd(),
WM_NCHITTEST,
0,
self._LowHighWordsToLparam(win32api.GetCursorPos())
)
I'm catching the message with:
self._appbarwnd.HookMessage(self._OnWMNCHitTest, WM_NCHITTEST)
And yet though I return HTBORDER, the edges are still resizeable. This is
the C-code I'm trying to replicate:
case WM_NCHITTEST:
{
LRESULT lr = DefWindowProc (hwnd, message, wParam, lParam) ;
if (lr == HTBOTTOM || lr == HTBOTTOMLEFT || lr == HTBOTTOMRIGHT)
return HTBORDER;
else
return lr;
}
----------
Keith J. Farmer
kfarmer at thuban.org
http://www.thuban.org
"Mark Hammond" <mhammond at skippinet.com.au> wrote in message
news:3C5B90F3.3020503 at skippinet.com.au...
> code. Are you sure _GetAppBatWnd() returns an integer?
More information about the Python-list
mailing list