When using Delphi XE2 or above editions to compile coeds likes below: [crayon-66dd0ba891da5887185402/] The compiler says: E2010 Incompatible types: ‘tagLOGBRUSH’ and ‘tagLOGBRUSH32’. The solution to fix this compiling error is: [crayon-66dd0ba891dad923846462/]