Added some more API items

This commit is contained in:
markm 2006-02-17 21:43:31 +00:00
parent e4b4102655
commit be07999ddb
3 changed files with 74 additions and 1 deletions

@ -11881,6 +11881,8 @@ WM_SETREDRAW = 11 # Variable c_int
SUBLANG_ARABIC_UAE = 14 # Variable c_int
HDM_GETITEMW = 4619 # Variable c_int
TTN_NEEDTEXTW = TTN_GETDISPINFOW
MIIM_STATE = 0x00000001
MIIM_ID = 0x00000002
MIIM_SUBMENU = 0x00000004
@ -11914,3 +11916,47 @@ MIM_MENUDATA = 0x00000008
MIM_STYLE = 0x00000010
MIM_APPLYTOSUBMENUS = 0x80000000
SPIF_UPDATEINIFILE = 0x0001
SPIF_SENDWININICHANGE = 0x0002
SPIF_SENDCHANGE = SPIF_SENDWININICHANGE
SPI_GETMOUSEHOVERWIDTH = 98
SPI_SETMOUSEHOVERWIDTH = 99
SPI_GETMOUSEHOVERHEIGHT = 100
SPI_SETMOUSEHOVERHEIGHT = 101
SPI_GETMOUSEHOVERTIME = 102
SPI_SETMOUSEHOVERTIME = 103
SPI_GETWHEELSCROLLLINES = 104
SPI_SETWHEELSCROLLLINES = 105
SPI_GETSHOWIMEUI = 110
SPI_SETSHOWIMEUI = 111
SPI_GETMOUSESPEED = 112
SPI_SETMOUSESPEED = 113
SPI_GETSCREENSAVERRUNNING= 114
SPI_GETACTIVEWINDOWTRACKING = 0x1000
SPI_SETACTIVEWINDOWTRACKING = 0x1001
SPI_GETMENUANIMATION = 0x1002
SPI_SETMENUANIMATION = 0x1003
SPI_GETCOMBOBOXANIMATION = 0x1004
SPI_SETCOMBOBOXANIMATION = 0x1005
SPI_GETLISTBOXSMOOTHSCROLLING = 0x1006
SPI_SETLISTBOXSMOOTHSCROLLING = 0x1007
SPI_GETGRADIENTCAPTIONS = 0x1008
SPI_SETGRADIENTCAPTIONS = 0x1009
SPI_GETMENUUNDERLINES = 0x100A
SPI_SETMENUUNDERLINES = 0x100B
SPI_GETACTIVEWNDTRKZORDER = 0x100C
SPI_SETACTIVEWNDTRKZORDER = 0x100D
SPI_GETHOTTRACKING = 0x100E
SPI_SETHOTTRACKING = 0x100F
SPI_GETFOREGROUNDLOCKTIMEOUT = 0x2000
SPI_SETFOREGROUNDLOCKTIMEOUT = 0x2001
SPI_GETACTIVEWNDTRKTIMEOUT = 0x2002
SPI_SETACTIVEWNDTRKTIMEOUT = 0x2003
SPI_GETFOREGROUNDFLASHCOUNT = 0x2004
SPI_SETFOREGROUNDFLASHCOUNT = 0x2005

@ -53,6 +53,7 @@ GetDesktopWindow = ctypes.windll.user32.GetDesktopWindow
SendInput = ctypes.windll.user32.SendInput
SetCursorPos = ctypes.windll.user32.SetCursorPos
GetCaretPos = ctypes.windll.user32.GetCaretPos
# menu functions
DrawMenuBar = ctypes.windll.user32.DrawMenuBar
@ -61,8 +62,9 @@ GetMenuBarInfo = ctypes.windll.user32.GetMenuBarInfo
GetMenuInfo = ctypes.windll.user32.GetMenuInfo
GetMenuItemCount = ctypes.windll.user32.GetMenuItemCount
GetMenuItemInfo = ctypes.windll.user32.GetMenuItemInfoW
SetMenuItemInfo = ctypes.windll.user32.SetMenuItemInfoW
GetMenuItemRect = ctypes.windll.user32.GetMenuItemRect
GetMenuItemRect = ctypes.windll.user32.GetMenuItemRect
CheckMenuItem = ctypes.windll.user32.CheckMenuItem
GetMenuState = ctypes.windll.user32.GetMenuState
GetSubMenu = ctypes.windll.user32.GetSubMenu
GetSystemMenu = ctypes.windll.user32.GetSystemMenu
@ -153,6 +155,7 @@ CloseClipboard = ctypes.windll.user32.CloseClipboard
GetQueueStatus = ctypes.windll.user32.GetQueueStatus
LoadString = ctypes.windll.user32.LoadStringW
def VkKeyScanW(p1):

@ -856,3 +856,27 @@ class MENUINFO(Structure):
]
assert sizeof(MENUINFO) == 28, sizeof(MENUINFO)
assert alignment(MENUINFO) == 2, alignment(MENUINFO)
NMTTDISPINFOW_V1_SIZE = 184 # Variable c_uint
# C:/PROGRA~1/MICROS~4/VC98/Include/commctrl.h 2066
class NMTTDISPINFOW(Structure):
_pack_ = 1
_fields_ = [
# C:/PROGRA~1/MICROS~4/VC98/Include/commctrl.h 2066
('hdr', NMHDR),
('lpszText', LPWSTR),
('szText', WCHAR * 80),
('hinst', HINSTANCE),
('uFlags', UINT),
('lParam', LPARAM),
]
assert sizeof(NMTTDISPINFOW) == 188, sizeof(NMTTDISPINFOW)
assert alignment(NMTTDISPINFOW) == 1, alignment(NMTTDISPINFOW)