We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
stdole.IPicture.Type
1 parent acecbfa commit d56f9c6Copy full SHA for d56f9c6
comtypes/test/test_stream.py
@@ -237,6 +237,9 @@ def test_Clone(self):
237
)
238
_OleLoadPicture.restype = HRESULT
239
240
+# Constants for the type of a picture object
241
+PICTYPE_BITMAP = 1
242
+
243
# Constants for GetDeviceCaps
244
LOGPIXELSX = 88 # Logical pixels/inch in X
245
LOGPIXELSY = 90 # Logical pixels/inch in Y
@@ -361,6 +364,7 @@ def test_ole_load_picture(self):
361
364
byref(pic),
362
365
363
366
self.assertEqual(hr, hresult.S_OK)
367
+ self.assertEqual(pic.Type, PICTYPE_BITMAP)
368
pstm.RemoteSeek(0, STREAM_SEEK_SET)
369
buf, read = pstm.RemoteRead(len(data))
370
self.assertEqual(bytes(buf)[:read], data)
0 commit comments