[python-win32] access to GetNextDlgTabItem
Mark Hammond
mhammond@skippinet.com.au
Fri, 15 Nov 2002 17:58:00 +1100
I just make the following patch:
Index: win32gui.i
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
RCS file: /home/cvsroot/PyWin32/win32/src/win32gui.i,v
retrieving revision 1.24
diff -r1.24 win32gui.i
1368a1369,1381
> // @pyswig HWND|GetNextDlgTabItem|Retrieves a handle to the first =
control that has the WS_TABSTOP style that precedes (or follows) the =
specified control.
> HWND GetNextDlgTabItem(
> HWND hDlg, // @pyparm int|hDlg||handle to dialog box
> HWND hCtl, // @pyparm int|hCtl||handle to known control
> BOOL bPrevious); // @pyparm int|bPrevious||direction flag
>
> // @pyswig HWND|GetNextDlgGroupItem|Retrieves a handle to the first =
control in a group of controls that precedes (or follows) the specified =
control in a dialog box.
> HWND GetNextDlgGroupItem(
> HWND hDlg, // @pyparm int|hDlg||handle to dialog box
> HWND hCtl, // @pyparm int|hCtl||handle to known control
> BOOL bPrevious); // @pyparm int|bPrevious||direction flag
>
>
So sometimes when we are lucky it is very easy <wink>.
> Or if there is a pure python way to access controls please give=20
> me a hint.=20
Use the EnumChildWindows (or EnumWindows, or however it is you do it!) =
to walk the top-level child control list, and examine each controls =
style yourself.
Mark.