Mercurial > projects > dwt-win
diff dwt/internal/win32/WINAPI.d @ 213:36f5cb12e1a2
Update to SWT 3.4M7
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Sat, 17 May 2008 17:34:28 +0200 |
parents | 72ef824d4983 |
children | a8fed3e56433 |
line wrap: on
line diff
--- a/dwt/internal/win32/WINAPI.d Mon May 05 00:12:38 2008 +0200 +++ b/dwt/internal/win32/WINAPI.d Sat May 17 17:34:28 2008 +0200 @@ -2099,18 +2099,17 @@ DEVMODE *lpInitData // pointer to optional printer data ); - HBITMAP CreateDIBSection( - HDC hdc, // handle to device context - BITMAPINFO *pbmi, - // pointer to structure containing bitmap size, - // format, and color data - UINT iUsage, // color data type indicator: RGB values or - // palette indexes - VOID *ppvBits, // pointer to variable to receive a pointer to - // the bitmap's bit values - HANDLE hSection, // optional handle to a file mapping object - DWORD dwOffset // offset to the bitmap bit values within the - // file mapping object +HBITMAP CreateDIBSection( + HDC hdc, // handle to device context + BITMAPINFO *pbmi, // pointer to structure containing bitmap size, + // format, and color data + UINT iUsage, // color data type indicator: RGB values or + // palette indexes + VOID **ppvBits, // pointer to variable to receive a pointer to + // the bitmap's bit values + HANDLE hSection, // optional handle to a file mapping object + DWORD dwOffset // offset to the bitmap bit values within the + // file mapping object ); HANDLE CreateEventA( LPSECURITY_ATTRIBUTES lpEventAttributes, @@ -2858,6 +2857,16 @@ ); LONG GetWindowLongA(HWND hWnd, int nIndex); LONG GetWindowLongW(HWND hWnd, int nIndex); + +LONG_PTR GetWindowLongPtrA( + HWND hWnd, + int nIndex +); +LONG_PTR GetWindowLongPtrW( + HWND hWnd, + int nIndex +); + BOOL GetWindowPlacement( HWND hWnd, WINDOWPLACEMENT *lpwndpl @@ -3641,6 +3650,19 @@ int nIndex, LONG dwNewLong ); + +LONG_PTR SetWindowLongPtrA( + HWND hWnd, + int nIndex, + LONG_PTR dwNewLong +); + +LONG_PTR SetWindowLongPtrW( + HWND hWnd, + int nIndex, + LONG_PTR dwNewLong +); + BOOL SetWindowPlacement( HWND hWnd, WINDOWPLACEMENT *lpwndpl @@ -3799,6 +3821,36 @@ SHORT VkKeyScanA(char ch); SHORT VkKeyScanW(wchar ch); BOOL WaitMessage(); + +UINT GetOutlineTextMetrics( + HDC hdc, + UINT cbData, + LPOUTLINETEXTMETRICW lpOTM +); + +BOOL GetLayeredWindowAttributes( + HWND hwnd, + COLORREF *pcrKey, + BYTE *pbAlpha, + DWORD *pdwFlags +); +BOOL SetLayeredWindowAttributes( + HWND hwnd, + COLORREF crKey, + BYTE bAlpha, + DWORD dwFlags +); +BOOL GetScrollBarInfo( + HWND hwnd, + LONG idObject, + PSCROLLBARINFO psbi +); +BOOL PrintWindow( + HWND hwnd, // Window to copy + HDC hdcBlt, // HDC to print into + UINT nFlags // Optional flags +); + } extern (C)