[pywin32-checkins] pywin32/win32/Demos win32gui_menu.py,1.7,1.8
OLD project page for the Python extensions for Windows
Brought to you by:
mhammond
From: Mark H. <mha...@us...> - 2008-07-25 01:26:25
|
Update of /cvsroot/pywin32/pywin32/win32/Demos In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv17985/win32/Demos Modified Files: win32gui_menu.py Log Message: Need to detach from the GDIHandle before passing ownership to the menu Index: win32gui_menu.py =================================================================== RCS file: /cvsroot/pywin32/pywin32/win32/Demos/win32gui_menu.py,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** win32gui_menu.py 30 Jun 2008 12:58:02 -0000 1.7 --- win32gui_menu.py 25 Jul 2008 01:26:33 -0000 1.8 *************** *** 166,170 **** DeleteDC(hdcBitmap) item, extras = PackMENUITEMINFO(text="Menu with icon", ! hbmpItem=hbm, wID=1011) InsertMenuItem(menu, 0, 1, item) --- 166,170 ---- DeleteDC(hdcBitmap) item, extras = PackMENUITEMINFO(text="Menu with icon", ! hbmpItem=hbm.Detach(), wID=1011) InsertMenuItem(menu, 0, 1, item) |