Bitmap palette and Form's color

Hi,
    Could anyone tell me what is wrong with this code?
    I am trying to use a 256 colors bitmap's palette to change the color
of my main
    form and some other components.

    Thank you all for your answer.

    bmFormColor := TBitmap.Create;
    bmFormColor.LoadFromFile('D:\Projet BitBtn\FormColor.BMP');

    SelectPalette(BitBtnForm.Canvas.Handle, bmFormColor.Palette, True);
    RealizePalette(BitBtnForm.Canvas.Handle);

    BitBtnForm.Color := 01000000 or 255;
    ToolBar2.Color := 01000000 or 39;

    bmFormColor.Free;