Added a debug note and a warning messages to CopyImage

svn path=/trunk/; revision=7088
This commit is contained in:
Richard Campbell 2003-12-16 06:51:02 +00:00
parent c709b088c9
commit 97b6938315

View file

@ -16,7 +16,7 @@
* along with this program; if not, write to the Free Software * along with this program; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/ */
/* $Id: bitmap.c,v 1.24 2003/12/10 19:02:33 gvg Exp $ /* $Id: bitmap.c,v 1.25 2003/12/16 06:51:02 rcampbell Exp $
* *
* PROJECT: ReactOS user32.dll * PROJECT: ReactOS user32.dll
* FILE: lib/user32/windows/input.c * FILE: lib/user32/windows/input.c
@ -670,6 +670,10 @@ CopyImage(HANDLE hnd, UINT type, INT desiredx, INT desiredy, UINT flags)
{ {
case IMAGE_BITMAP: case IMAGE_BITMAP:
{ {
DbgPrint("WARNING: Incomplete implementation of CopyImage!\n");
/* FIXME: support flags LR_COPYDELETEORG, LR_COPYFROMRESOURCE,
LR_COPYRETURNORG, LR_CREATEDIBSECTION,
and LR_MONOCHROME; */
HBITMAP res; HBITMAP res;
BITMAP bm; BITMAP bm;
@ -682,7 +686,7 @@ CopyImage(HANDLE hnd, UINT type, INT desiredx, INT desiredy, UINT flags)
SetBitmapBits(res, bm.bmWidthBytes * bm.bmHeight, buf); SetBitmapBits(res, bm.bmWidthBytes * bm.bmHeight, buf);
HeapFree(GetProcessHeap(), 0, buf); HeapFree(GetProcessHeap(), 0, buf);
} }
return (HICON)res; return res;
} }
case IMAGE_ICON: case IMAGE_ICON:
DbgPrint("FIXME: CopyImage doesn't support IMAGE_ICON correctly!\n"); DbgPrint("FIXME: CopyImage doesn't support IMAGE_ICON correctly!\n");