AGB  ·  Datenschutz  ·  Impressum  







Anmelden
Nützliche Links
Registrieren
Zurück Delphi-PRAXiS Projekte Winamp Control Library - Die ultimative *DLL für Winamp :)
Thema durchsuchen
Ansicht
Themen-Optionen

Winamp Control Library - Die ultimative *DLL für Winamp :)

Ein Thema von Rastaman · begonnen am 9. Nov 2005 · letzter Beitrag vom 11. Sep 2009
Antwort Antwort
bladecs

Registriert seit: 10. Sep 2005
23 Beiträge
 
Delphi 6 Personal
 
#1

Re: TWinAmpControl - Die ultimative Unit für Winamp :)

  Alt 27. Jan 2006, 21:31
tipp:


du könntest auch noch eine property für volume einbauen.

code würde so ungefähr aussehen:

Delphi-Quellcode:
private
function GetVolume: Byte;

public
procedure SetVolume(Vol: Byte);
property Volume: Byte read GetVolume write Setvolume;

end;

function TWinAmpControl.GetVolume: Byte;
var
  wnd: HWND;
begin
  if IsRunning then
  begin
    wnd := GetHandle;
    result:=SendMessage(wnd, WM_WA_IPC, -666, IPC_SETVOLUME);
  end;
end;

procedure TWinAmpControl.SetVolume(vol: Byte);
var
  wnd: HWND;
begin
  if IsRunning then
  begin
    wnd := GetHandle;
    SendMessage(wnd, WM_WA_IPC, vol, IPC_SETVOLUME);
  end;
end;
  Mit Zitat antworten Zitat
Antwort Antwort


Forumregeln

Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are an
Pingbacks are an
Refbacks are aus

Gehe zu:

Impressum · AGB · Datenschutz · Nach oben
Alle Zeitangaben in WEZ +1. Es ist jetzt 00:59 Uhr.
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024-2025 by Thomas Breitkreuz