Copyright | (c) Alastair Reid 1997-2003 |
---|---|
License | BSD-style (see the file libraries/base/LICENSE) |
Maintainer | Esa Ilari Vuokko <ei@vuokko.info> |
Stability | provisional |
Portability | portable |
Safe Haskell | Safe |
Language | Haskell2010 |
A collection of FFI declarations for interfacing with Win32.
Documentation
createMenu :: IO HMENU Source #
c_CreateMenu :: IO HMENU Source #
createPopupMenu :: IO HMENU Source #
c_CreatePopupMenu :: IO HMENU Source #
drawMenuBar :: HWND -> IO () Source #
c_DrawMenuBar :: HWND -> IO Bool Source #
type TrackMenuFlag = UINT Source #
type SystemMenuCommand = UINT Source #
getSystemMenu :: HWND -> Bool -> IO (Maybe HMENU) Source #
c_GetSystemMenu :: HWND -> Bool -> IO HMENU Source #
getMenuItemCount :: HMENU -> IO Int Source #
c_GetMenuItemCount :: HMENU -> IO Int Source #
data MenuItemInfo Source #
MenuItemInfo | |
|
peekMenuItemInfo :: Ptr MenuItemInfo -> IO MenuItemInfo Source #
allocaMenuItemInfo :: (Ptr MenuItemInfo -> IO a) -> IO a Source #
withMenuItemInfo :: MenuItemInfo -> (Ptr MenuItemInfo -> IO a) -> IO a Source #
type MenuItemMask = UINT Source #
pokeFMask :: Ptr MenuItemInfo -> MenuItemMask -> IO () Source #
getMenuItemInfo :: HMENU -> MenuItem -> Bool -> MenuItemMask -> IO MenuItemInfo Source #
c_GetMenuItemInfo :: HMENU -> UINT -> Bool -> Ptr MenuItemInfo -> IO Bool Source #
insertMenuItem :: HMENU -> MenuItem -> Bool -> MenuItemInfo -> IO () Source #
c_InsertMenuItem :: HMENU -> UINT -> Bool -> Ptr MenuItemInfo -> IO Bool Source #
setMenuDefaultItem :: HMENU -> MenuItem -> Bool -> IO () Source #
c_SetMenuDefaultItem :: HMENU -> MenuItem -> Bool -> IO Bool Source #
destroyMenu :: HMENU -> IO () Source #
c_DestroyMenu :: HMENU -> IO Bool Source #
setMenuItemInfo :: HMENU -> MenuItem -> Bool -> MenuItemMask -> MenuItemInfo -> IO () Source #
c_SetMenuItemInfo :: HMENU -> UINT -> Bool -> Ptr MenuItemInfo -> IO Bool Source #
trackPopupMenu :: HMENU -> TrackMenuFlag -> Int -> Int -> HWND -> RECT -> IO () Source #
c_TrackPopupMenu :: HMENU -> TrackMenuFlag -> Int -> Int -> Int -> HWND -> LPRECT -> IO Bool Source #
withTPMPARAMS :: Ptr RECT -> (Ptr TPMPARAMS -> IO a) -> IO a Source #
trackPopupMenuEx :: HMENU -> TrackMenuFlag -> Int -> Int -> HWND -> Maybe (Ptr RECT) -> IO () Source #
c_TrackPopupMenuEx :: HMENU -> TrackMenuFlag -> Int -> Int -> HWND -> Ptr TPMPARAMS -> IO Bool Source #