View Single Post
Old 20th November 2013, 04: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