gdiplus: Added GdipCreateFromHWNDICM (no icm yet) with test.
This commit is contained in:
parent
888262ede7
commit
eb18ce9d4e
|
@ -92,7 +92,7 @@
|
|||
@ stdcall GdipCreateFromHDC2(long long ptr)
|
||||
@ stdcall GdipCreateFromHDC(long ptr)
|
||||
@ stdcall GdipCreateFromHWND(long ptr)
|
||||
@ stub GdipCreateFromHWNDICM
|
||||
@ stdcall GdipCreateFromHWNDICM(long ptr)
|
||||
@ stdcall GdipCreateHBITMAPFromBitmap(ptr ptr long)
|
||||
@ stub GdipCreateHICONFromBitmap
|
||||
@ stub GdipCreateHalftonePalette
|
||||
|
|
|
@ -797,6 +797,12 @@ GpStatus WINGDIPAPI GdipCreateFromHWND(HWND hwnd, GpGraphics **graphics)
|
|||
return Ok;
|
||||
}
|
||||
|
||||
/* FIXME: no icm handling */
|
||||
GpStatus WINGDIPAPI GdipCreateFromHWNDICM(HWND hwnd, GpGraphics **graphics)
|
||||
{
|
||||
return GdipCreateFromHWND(hwnd, graphics);
|
||||
}
|
||||
|
||||
GpStatus WINGDIPAPI GdipCreateMetafileFromEmf(HENHMETAFILE hemf, BOOL delete,
|
||||
GpMetafile **metafile)
|
||||
{
|
||||
|
|
|
@ -47,6 +47,11 @@ static void test_constructor_destructor(void)
|
|||
stat = GdipDeleteGraphics(graphics);
|
||||
expect(Ok, stat);
|
||||
|
||||
stat = GdipCreateFromHWNDICM(NULL, &graphics);
|
||||
expect(Ok, stat);
|
||||
stat = GdipDeleteGraphics(graphics);
|
||||
expect(Ok, stat);
|
||||
|
||||
stat = GdipDeleteGraphics(NULL);
|
||||
expect(InvalidParameter, stat);
|
||||
ReleaseDC(0, hdc);
|
||||
|
|
|
@ -53,6 +53,7 @@ GpStatus WINGDIPAPI GdipSetPenWidth(GpPen*,REAL);
|
|||
GpStatus WINGDIPAPI GdipCreateFromHDC(HDC,GpGraphics**);
|
||||
GpStatus WINGDIPAPI GdipCreateFromHDC2(HDC,HANDLE,GpGraphics**);
|
||||
GpStatus WINGDIPAPI GdipCreateFromHWND(HWND,GpGraphics**);
|
||||
GpStatus WINGDIPAPI GdipCreateFromHWNDICM(HWND,GpGraphics**);
|
||||
GpStatus WINGDIPAPI GdipCreateLineBrush(GDIPCONST GpPointF*,GDIPCONST GpPointF*,
|
||||
ARGB,ARGB,GpWrapMode,GpLineGradient**);
|
||||
GpStatus WINGDIPAPI GdipCreateLineBrushI(GDIPCONST GpPoint*,GDIPCONST GpPoint*,
|
||||
|
|
Loading…
Reference in New Issue