I have following line in Delphi XE4 which is giving me error: E1012 Constant expression violates subrange bounds
Message.WParam := clBtnFace;
When I debugged the code, I got value of clBtnFace = -16777201
;
Same is working for Delphi 7 code.
I found following link on stackoverflow, but could not get it to resolve my problem: Using the `in` keyword causes "E1012 Constant expression violates subrange bounds" in Delphi