Go Back   Winamp Forums > Developer Center > Winamp Development

Reply
Thread Tools Search this Thread Display Modes
Old 5th April 2006, 10:13   #1
mukul
Junior Member
 
Join Date: Mar 2005
Location: Ames, IA
Posts: 5
message sent when winamp stops a song?

Hello,

I was wondering what message is sent to plugins when the user pushes the stop button?

Thanks.
mukul is offline   Reply With Quote
Old 5th April 2006, 16:21   #2
DrO
-
 
DrO's Avatar
 
Join Date: Sep 2003
Location: UK
Posts: 22,278
code:
if(msg == WM_COMMAND && LOWORD(wParam) == WINAMP_BUTTON4){
// stop was pressed
}

which you detect by subclassing the main winamp window (that should be correct since i've not coded in a while now and can't remember Winamp's quirks)
DrO is offline   Reply With Quote
Old 5th April 2006, 19:35   #3
mukul
Junior Member
 
Join Date: Mar 2005
Location: Ames, IA
Posts: 5
Woah! thanks.

Also, if you could tell me a nonblocking way of doing the stop, that would be ideal. So for example, something ISC_FULLSTOP or something (right?)
mukul is offline   Reply With Quote
Old 9th April 2006, 10:05   #4
DrO
-
 
DrO's Avatar
 
Join Date: Sep 2003
Location: UK
Posts: 22,278
doing above should be non-blocking as long as you call CallWindowProc(..) in the subclass function and don't manually return from that test.

-daz
DrO is offline   Reply With Quote
Reply
Go Back   Winamp Forums > Developer Center > Winamp Development

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump