hey im trying to move a window with a popup style. can some one please tell me if the code im using is along the right lines.

[ccode]
case WM_COMMAND:
{
switch(LOWORD(wParam))
{
case WM_MOUSEMOVE:
{
ReleaseCapture();
int y(GET_Y_LPARAM(lParam));
int x(GET_X_LPARAM(lParam));
SetWindowPos(hwnd,HWND_TOPMOST,x,y,NULL,NULL,SWP_NOSIZE);
break;
}
break;
}
[ccode]