"dont forget to remove the WS_CHILD style bit. " << i don't get you.. frown what do i change in the code bellow?



Code:
mFunc(Desktop)
{
//get the hwnd from mirc with something like
// $dll(my.dll,Desktop,$window($active).hwnd)
HWND mircwindow = (HWND)atoi(data);
//get the desktop hwnd
HWND dpt = GetDesktopWindow();
SetParent(mircwindow,dpt);
lstrcpy(data,"yay");
return 3;
}