In following MSDN documentation http://msdn.microsoft.com/en-us/libr...18(VS.85).aspx for WM_NCHITTEST message It is stated like this : The return value of the DefWindowProc function is one of the following values, indicating the position of the cursor hot spot. ..... ..... HTCLOSE - 20 - In a Close button. ..... HTSYSMENU - 3 - In a window menu or in a Close button in a child window. ..... But i could not see HTSYSMENU being returned for a "Close button in a child window". Tried different scenarios like SDI/MDI , dialog with a child dialog etc . Can anybody explain a scenario for HTSYSMENU being returned for a "Close button in a child window". Thanks Vijesh Vijay