CF_BITMAP, CF_DIB are incorrectly defind
Original Reporter info from Mantis: jamie @jamie
-
Reporter name: jamie philbrook
Original Reporter info from Mantis: jamie @jamie
- Reporter name: jamie philbrook
Description:
Definitions (Enum List) are incorrect for Clipboard formats.
CF_BITMAP is a function for a dynamic results and it picks out
a format value that claims to be a Delphi constant.
I looked at the Enum List, in the LCLtypes if memory serves, and I
have never heard of Delphi constants like that..
I've been with Delphi since Version 1 and have never seen this.
Delphi has always used CF_BITMAP constant = 2 which has been the Windows
value for some time now.
Steps to reproduce:
Put something on the clipboard like a screen shot.
Clipboard.HasFormat(CF_BITMAP) will fail!
Additional information:
Work around ..
Clipboard.hasformat(Windows.CF_BITMAP);
This goes for any function that is querying bit maps from the
clipboard