[pywin32-checkins] pywin32/win32/src win32clipboardmodule.cpp, 1.26, 1.27
OLD project page for the Python extensions for Windows
Brought to you by:
mhammond
From: Mark H. <mha...@us...> - 2010-08-30 02:34:38
|
Update of /cvsroot/pywin32/pywin32/win32/src In directory sfp-cvsdas-2.v30.ch3.sourceforge.com:/tmp/cvs-serv1166/src Modified Files: win32clipboardmodule.cpp Log Message: Add support for CF_BITMAP and demo clipboard viewer to test Index: win32clipboardmodule.cpp =================================================================== RCS file: /cvsroot/pywin32/pywin32/win32/src/win32clipboardmodule.cpp,v retrieving revision 1.26 retrieving revision 1.27 diff -C2 -d -r1.26 -r1.27 *** win32clipboardmodule.cpp 3 Jan 2009 06:43:58 -0000 1.26 --- win32clipboardmodule.cpp 30 Aug 2010 02:34:29 -0000 1.27 *************** *** 342,345 **** --- 342,347 ---- DWORD dwordsize; switch (format) { + case CF_BITMAP: + break; case CF_HDROP: hdrop = (HDROP)GlobalLock(handle); *************** *** 393,396 **** --- 395,401 ---- } switch (format) { + case CF_BITMAP: + ret = PyWinLong_FromHANDLE(handle); + break; case CF_HDROP: filecnt = DragQueryFileW(hdrop, 0xFFFFFFFF, NULL, NULL); *************** *** 460,463 **** --- 465,469 ---- // @flag CF_ENHMETAFILE|A string with binary data obtained from GetEnhMetaFileBits // @flag CF_METAFILEPICT|A string with binary data obtained from GetMetaFileBitsEx (currently broken) + // @flag CF_BITMAP|An integer handle to the bitmap. // @flag All other formats|A string with binary data obtained directly from the // global memory referenced by the handle. |