Author: greatlrd Date: Sun Nov 23 06:35:08 2008 New Revision: 37585
URL: http://svn.reactos.org/svn/reactos?rev=37585&view=rev Log: Implement GetWindowRegionData
Modified: branches/reactx/reactos/dll/win32/dciman32/dciman32.def branches/reactx/reactos/dll/win32/dciman32/dciman_main.c
Modified: branches/reactx/reactos/dll/win32/dciman32/dciman32.def URL: http://svn.reactos.org/svn/reactos/branches/reactx/reactos/dll/win32/dciman3... ============================================================================== --- branches/reactx/reactos/dll/win32/dciman32/dciman32.def [iso-8859-1] (original) +++ branches/reactx/reactos/dll/win32/dciman32/dciman32.def [iso-8859-1] Sun Nov 23 06:35:08 2008 @@ -14,7 +14,7 @@ DCISetDestination@12 DCISetSrcDestClip@16 GetDCRegionData@12 -; GetWindowRegionData + GetWindowRegionData@12 ; WinWatchClose ; WinWatchDidStatusChange ; WinWatchGetClipList
Modified: branches/reactx/reactos/dll/win32/dciman32/dciman_main.c URL: http://svn.reactos.org/svn/reactos/branches/reactx/reactos/dll/win32/dciman3... ============================================================================== --- branches/reactx/reactos/dll/win32/dciman32/dciman_main.c [iso-8859-1] (original) +++ branches/reactx/reactos/dll/win32/dciman32/dciman_main.c [iso-8859-1] Sun Nov 23 06:35:08 2008 @@ -367,6 +367,32 @@ return retvalue; }
+/*++ +* @name DWORD WINAPI GetWindowRegionData(HWND hwnd, DWORD size, LPRGNDATA prd); +* @implemented +* + +* @return +* +* @remarks. +* None +*/ +DWORD WINAPI +GetWindowRegionData(HWND hwnd, DWORD size, LPRGNDATA prd) +{ + DWORD retvalue = 0; + + HDC hDC = GetDC(hwnd); + + if (hDC != NULL) + { + retvalue = GetDCRegionData(hDC,size,prd); + ReleaseDC(hwnd,hDC); + } + + return retvalue; +} +
/***********************************************************************************************************/ /***********************************************************************************************************/