Win32-2.14.1.0: A binding to Windows Win32 API.
Copyright(c) Alastair Reid 1997-2003
LicenseBSD-style (see the file libraries/base/LICENSE)
MaintainerEsa Ilari Vuokko <ei@vuokko.info>
Stabilityprovisional
Portabilityportable
Safe HaskellSafe
LanguageHaskell2010

Graphics.Win32.Menu

Description

A collection of FFI declarations for interfacing with Win32.

Documentation

c_CheckMenuRadioItem :: HMENU -> UINT -> UINT -> UINT -> UINT -> IO Bool Source #

drawMenuBar :: HWND -> IO () Source #

c_DrawMenuBar :: HWND -> IO Bool Source #

isMenu :: HMENU -> IO Bool Source #

getSystemMenu :: HWND -> Bool -> IO (Maybe HMENU) Source #

c_GetSystemMenu :: HWND -> Bool -> IO HMENU Source #

getMenu :: HWND -> IO (Maybe HMENU) Source #

getSubMenu :: HMENU -> MenuItem -> IO (Maybe HMENU) Source #

setMenu :: HWND -> HMENU -> IO () Source #

c_SetMenu :: HWND -> HMENU -> IO Bool Source #

allocaMenuItemInfo :: (Ptr MenuItemInfo -> IO a) -> IO a Source #

withMenuItemInfo :: MenuItemInfo -> (Ptr MenuItemInfo -> IO a) -> IO a Source #

c_GetMenuItemInfo :: HMENU -> UINT -> Bool -> Ptr MenuItemInfo -> IO Bool Source #

c_GetMenuItemRect :: HWND -> HMENU -> UINT -> LPRECT -> IO Bool Source #

insertMenuItem :: HMENU -> MenuItem -> Bool -> MenuItemInfo -> IO () Source #

c_InsertMenuItem :: HMENU -> UINT -> Bool -> Ptr MenuItemInfo -> IO Bool Source #

loadMenu :: Maybe HINSTANCE -> Menu -> IO HMENU Source #

setMenuDefaultItem :: HMENU -> MenuItem -> Bool -> IO () Source #

c_SetMenuDefaultItem :: HMENU -> MenuItem -> Bool -> IO Bool Source #

c_DestroyMenu :: HMENU -> IO Bool Source #

c_DeleteMenu :: HMENU -> UINT -> UINT -> IO Bool 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 #

type TPMPARAMS = () 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 #

appendMenu :: HMENU -> MenuFlag -> MenuID -> Maybe String -> IO () Source #

c_AppendMenu :: HMENU -> UINT -> MenuID -> LPCTSTR -> IO Bool Source #

insertMenu :: HMENU -> MenuItem -> MenuFlag -> MenuID -> Maybe String -> IO () Source #

c_InsertMenu :: HMENU -> UINT -> UINT -> MenuID -> LPCTSTR -> IO Bool Source #

modifyMenu :: HMENU -> MenuItem -> MenuFlag -> MenuID -> Maybe String -> IO () Source #

c_ModifyMenu :: HMENU -> UINT -> UINT -> MenuID -> LPCTSTR -> IO Bool Source #

c_RemoveMenu :: HMENU -> UINT -> UINT -> IO Bool Source #