Changed one or two SendMessage() SendMessageTimeout()

This commit is contained in:
markm 2006-03-28 15:22:33 +00:00
parent d6362c514e
commit d928d117aa

@ -157,7 +157,7 @@ class MenuItem(object):
submenu_handle = self._read_item().hSubMenu submenu_handle = self._read_item().hSubMenu
if submenu_handle: if submenu_handle:
self.ctrl.SendMessage( self.ctrl.SendMessageTimeout(
win32defines.WM_INITMENUPOPUP, win32defines.WM_INITMENUPOPUP,
submenu_handle, submenu_handle,
self.index) self.index)
@ -345,7 +345,7 @@ class Menu(object):
self._as_parameter_ = self.handle self._as_parameter_ = self.handle
if self.is_main_menu: if self.is_main_menu:
self.ctrl.SendMessage(win32defines.WM_INITMENU, self.handle) self.ctrl.SendMessageTimeout(win32defines.WM_INITMENU, self.handle)
def ItemCount(self): def ItemCount(self):
"Return the count of items in this menu" "Return the count of items in this menu"