Prev Previous Post   Next Post Next
Old 20th November 2013, 03:54   #1
thinktink
Forum King
 
thinktink's Avatar
 
Join Date: May 2009
Location: On the streets of Kings County, CA.
Posts: 3,009
Send a message via Skype™ to thinktink
"mlskinnedpopup"

So I'm trying to use the menu skinning API from ml and it's failing.

The menus I am creating can be run with the standard Windows API TrackPopupMenuEx(...) but for some reason SendMessageW is returning right away with a value of zero.

Code snippet of what's not working:
code:
if(mlwnd)
{
BOOL RES;
MLSKINNEDPOPUP mlsp;
memset(&mlsp,0,sizeof(mlsp));
mlsp.cbSize=sizeof(mlsp);
mlsp.hmenu=menu;
mlsp.fuFlags=uFlags;
mlsp.x=x;
mlsp.y=y;
mlsp.hwnd=owner;
mlsp.lptpm=lptpm;
mlsp.width=65536;
mlsp.skinStyle=SMS_USESKINFONT;
RES=::SendMessageW(mlwnd,WM_ML_IPC,(LPARAM)&mlsp,ML_IPC_TRACKSKINNEDPOPUPEX);
return RES;
}
else
{
return ::TrackPopupMenuEx(menu,uFlags,x,y,owner,lptpm);
}


What am I doing wrong?


[EDIT/]
And why did the forums wrongfully decide to lowercase my entire thread title?
thinktink is offline   Reply With Quote
 
Go Back   Winamp & Shoutcast Forums > Developer Center > Winamp Development

Tags
menu, popup, skin

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