Home > Back-end >  FireMonkey title bar icon is how to change?
FireMonkey title bar icon is how to change?

Time:11-17

I need to replace the title bar icon on the left side, but also with application of the logo, the same is a great god how to change? Windows, FireMonkey.

CodePudding user response:

In the project - & gt; Resources and add your icon in the images, and then...

 
USES the
Winapi. Windows, Winapi Messages,
FMX. Platform. Win;

.

Procedure TForm1. Button1Click (Sender: TObject);
The begin
SendMessage (FmxHandleToHWND (Handle), WM_SETICON, ICON_BIG, LoadIconW (MainInstance, PChar (' Icon_1)));
end;
  • Related