View Single Post
Old 30th October 2005, 22:12   #2
Joonas
Forum King
 
Join Date: Mar 2004
Location: Sweden
Posts: 2,263
Re: How to remove some tracks from Playlist?

Quote:
Originally posted by 2garin
(see subj)

in wa_ipc.h i found this:
code:

#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
code:

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:

code:

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

Joonas is offline   Reply With Quote