[pywin32-checkins] pywin32/win32/src win32gui.i,1.56,1.57
OLD project page for the Python extensions for Windows
Brought to you by:
mhammond
From: Mark H. <mha...@us...> - 2005-02-10 23:56:11
|
Update of /cvsroot/pywin32/pywin32/win32/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv19222 Modified Files: win32gui.i Log Message: Add _TrackMouseEvent and GetDlgCtrlID Index: win32gui.i =================================================================== RCS file: /cvsroot/pywin32/pywin32/win32/src/win32gui.i,v retrieving revision 1.56 retrieving revision 1.57 diff -C2 -d -r1.56 -r1.57 *** win32gui.i 30 Jan 2005 13:42:30 -0000 1.56 --- win32gui.i 10 Feb 2005 23:56:02 -0000 1.57 *************** *** 425,428 **** --- 425,442 ---- } + // @object TRACKMOUSEEVENT|A tuple of (dwFlags, hwndTrack, dwHoverTime) + %typemap(python,in) TRACKMOUSEEVENT *INPUT { + TRACKMOUSEEVENT e; + e.cbSize = sizeof e; + if (PyTuple_Check($source)) { + if (PyArg_ParseTuple($source, "lll", &e.dwFlags, &e.hwndTrack, &e.dwHoverTime) == 0) { + return PyErr_Format(PyExc_TypeError, "%s: a TRACKMOUSEEVENT must be a tuple of 3 integers", "$name"); + } + $target = &e; + } else { + return PyErr_Format(PyExc_TypeError, "%s: a TRACKMOUSEEVENT must be a tuple of 3 integers", "$name"); + } + } + %typemap(python,except) LRESULT { Py_BEGIN_ALLOW_THREADS *************** *** 1750,1753 **** --- 1764,1771 ---- HWND GetDlgItem( HWND hDlg, int nIDDlgItem ); + // @pyswig int|GetDlgCtrlID|Retrieves the identifier of the specified control. + // @pyparm int|hwnd||The handle to the control + HWND GetDlgCtrlID( HWND hwnd); + // @pyswig HWND|SetDlgItemText|Sets the text for a window or control BOOLAPI SetDlgItemText( HWND hDlg, int nIDDlgItem, TCHAR *text ); *************** *** 2964,2967 **** --- 2982,2988 ---- // @pyswig |SetCapture|Captures the mouse for the specified window. BOOLAPI SetCapture(HWND hWnd); + // @pyswig |_TrackMouseEvent|Posts messages when the mouse pointer leaves a window or hovers over a window for a specified amount of time. + // @pyparm <o TRACKMOUSEEVENT>|tme|| + BOOLAPI _TrackMouseEvent(TRACKMOUSEEVENT *INPUT); // @pyswig int|ReleaseDC|Releases a device context. |