Try using WM_LBUTTONDOWN. WM_NCLBUTTONUP is for the non-client area (border,title bar,etc).