[pywin32-checkins] pywin32/win32/Lib win32gui_struct.py,1.4,1.5
OLD project page for the Python extensions for Windows
Brought to you by:
mhammond
|
From: Mark H. <mha...@us...> - 2004-05-26 08:52:37
|
Update of /cvsroot/pywin32/pywin32/win32/Lib In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv9162 Modified Files: win32gui_struct.py Log Message: If the lsitview state mask is not specified, assume it is the same as the state itself. Index: win32gui_struct.py =================================================================== RCS file: /cvsroot/pywin32/pywin32/win32/Lib/win32gui_struct.py,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** win32gui_struct.py 13 May 2004 14:17:31 -0000 1.4 --- win32gui_struct.py 26 May 2004 08:52:25 -0000 1.5 *************** *** 294,297 **** --- 294,300 ---- if not mask & commctrl.LVIF_STATE: stateMask = 0 + else: + if stateMask is None: + stateMask = state mask, text = _GetMaskAndVal(text, None, mask, commctrl.LVIF_TEXT) mask, image = _GetMaskAndVal(image, 0, mask, commctrl.LVIF_IMAGE) |