PDA

View Full Version : How to remove some tracks from Playlist?


2garin
29th October 2005, 21:27
(see subj)

in wa_ipc.h i found this:

#define IPC_PLCMD 1000
#define PLCMD_ADD 0
#define PLCMD_REM 1
#define PLCMD_SEL 2
#define PLCMD_MISC 3
#define PLCMD_LIST 4

but when i call

SendMessage(hwnd_winamp,WM_WA_IPC,(WPARAM)&wc,IPC_PLCMD);

regardless of wc parameter, popup menu appears: "Add files", "Add folder", "Add URL".

please, help!

Joonas
30th October 2005, 21:12
Originally posted by 2garin
(see subj)

in wa_ipc.h i found this:

#define IPC_PLCMD 1000
#define PLCMD_ADD 0
#define PLCMD_REM 1
#define PLCMD_SEL 2
#define PLCMD_MISC 3
#define PLCMD_LIST 4

but when i call

SendMessage(hwnd_winamp,WM_WA_IPC,(WPARAM)&wc,IPC_PLCMD);

regardless of wc parameter, popup menu appears: "Add files", "Add folder", "Add URL".

please, help!

So what are you sending as wc?

AFAIK it should be a structure like this:


typedef struct {
int cmd;
int x;
int y;
int align;
} windowCommand; // send this as param to an IPC_PLCMD, IPC_MBCMD, IPC_VIDCMD

2garin
31st October 2005, 19:11
Originally posted by Joonas
So what are you sending as wc?

AFAIK it should be a structure like this:


typedef struct {
int cmd;
int x;
int y;
int align;
} windowCommand; // send this as param to an IPC_PLCMD, IPC_MBCMD, IPC_VIDCMD



windowCommand wc;
wc.cmd=PLCMD_SEL; // or any other PLCMD_*
wc.x=0; // or any other number
wc.y=0; // or any other number
wc.align=0; // or any other number

regardless of this parameter, the same popup menu appears:
Add files
Add folder
Add URL

Joonas
31st October 2005, 20:40
Originally posted by 2garin

windowCommand wc;
wc.cmd=PLCMD_SEL; // or any other PLCMD_*
wc.x=0; // or any other number
wc.y=0; // or any other number
wc.align=0; // or any other number

regardless of this parameter, the same popup menu appears:
Add files
Add folder
Add URL

That's weird.


windowCommand wc = {0};
wc.cmd = PLCMD_SEL;
SendMessage(hwnd_winamp, WM_WA_IPC, (WPARAM)&wc, IPC_PLCMD);


works fine for me...I get this menu:

Select all
Select none
Invert selection