Unconfigured Ad Widget

Collapse

Anúncio

Collapse
No announcement yet.

Modificar o ícone do botão iniciar do Windows

Collapse
X
 
  • Filter
  • Tempo
  • Show
Clear All
new posts

  • Font Size
    #1

    Tutorial Modificar o ícone do botão iniciar do Windows

    Code Completo

    Variáveis globais do form:
    Código PHP:
    var
    Form1TForm1;
    Iniciar hWnd;
    OldBitmap THandle;
    NewImage TPicture;

    No Oncreate do Form:


    procedure TForm1.FormCreate(SenderTObject);
    begin
    NewImage
    :=TPicture.create;
    NewImage.LoadFromFile('C:Delphi3ImagesDEFAULTOutOpen.BMP');
    Iniciar := FindWindowEx(FindWindow('Shell_TrayWnd',nil),0,'Button',nil);
    OldBitmap:=SendMessage(Iniciar,BM_SetImage,0,NewImage.Bitmap.Handle);
    end;

    No OnDestroy

    procedure TForm1
    .FormDestroy(SenderTObject);
    begin
    SendMessage
    (Iniciar,BM_SetImage,0,OldBitmap);
    NewImage.Free;
    end
    ~# Criado pela [IN]Segurança #~

  • Font Size
    #2
    Legal para você personalizar seu Desk.

    Valeu pelo Tuto ;D

    Comment

    X
    Working...
    X