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.Dialogue

Description

A collection of FFI declarations for interfacing with Win32.

Documentation

newtype Stub_DTM Source #

Constructors

Stub_DTM DTemplateMem 

newtype DIA_TEMPLATE Source #

Constructors

DIA_TEMPLATE (Ptr DIA_TEMPLATE) 

type ResourceID = Int Source #

mkResource :: ResourceID -> IO (Ptr a) Source #

type DialogProc = HWND -> WindowMessage -> WPARAM -> LPARAM -> IO Int Source #

dialogBox :: HINSTANCE -> DTemplate -> Maybe HWND -> DialogProc -> IO Int Source #

data DialogTemplate Source #

Constructors

DialogTemplate Int Int Int Int WindowStyle DWORD (Either ResourceID String) (Either ResourceID String) (Either ResourceID String) (Either ResourceID String) Int [DialogControl] 

data DialogControl Source #

Constructors

DialogControl Int Int Int Int (Either ResourceID String) (Either ResourceID String) WindowStyle DWORD Int 

pushButtonControl :: Int -> Int -> Int -> Int -> DWORD -> DWORD -> Int -> String -> DialogControl Source #

labelControl :: Int -> Int -> Int -> Int -> DWORD -> DWORD -> Int -> String -> DialogControl Source #

listBoxControl :: Int -> Int -> Int -> Int -> DWORD -> DWORD -> Int -> String -> DialogControl Source #

comboBoxControl :: Int -> Int -> Int -> Int -> DWORD -> DWORD -> Int -> String -> DialogControl Source #

editControl :: Int -> Int -> Int -> Int -> DWORD -> DWORD -> Int -> String -> DialogControl Source #

scrollBarControl :: Int -> Int -> Int -> Int -> DWORD -> DWORD -> Int -> String -> DialogControl Source #

mkDiaTemplate :: Int -> Int -> Int -> Int -> Int -> WindowStyle -> DWORD -> LPCWSTR -> LPCWSTR -> LPCWSTR -> LPCWSTR -> Int -> IO (Ptr DIA_TEMPLATE) Source #

addDiaControl :: Ptr DIA_TEMPLATE -> LPCWSTR -> Int -> LPCWSTR -> DWORD -> Int -> Int -> Int -> Int -> DWORD -> IO (Ptr DIA_TEMPLATE) Source #

marshall_res :: Either ResourceID String -> IO LPCWSTR Source #

endDialog :: HWND -> Int -> IO () Source #

c_EndDialog :: HWND -> Int -> IO BOOL Source #

getDlgCtrlID :: HWND -> IO Int Source #

getDlgItem :: HWND -> Int -> IO HWND Source #

c_GetDlgItem :: HWND -> Int -> IO HWND Source #

getDlgItemInt :: HWND -> Int -> Bool -> IO Int Source #

c_GetDlgItemInt :: HWND -> Int -> Ptr Bool -> Bool -> IO UINT Source #

getDlgItemText :: HWND -> Int -> Int -> IO String Source #

c_GetDlgItemText :: HWND -> Int -> LPTSTR -> Int -> IO Int Source #

setDlgItemInt :: HWND -> Int -> UINT -> BOOL -> IO () Source #

c_SetDlgItemInt :: HWND -> Int -> UINT -> BOOL -> IO Bool Source #

setDlgItemText :: HWND -> Int -> String -> IO () Source #

c_SetDlgItemText :: HWND -> Int -> LPCTSTR -> IO Bool Source #