HTCLOSE or HTSYSMENU

Discussion in 'MFC' started by miamia, Sep 2, 2010.

  1. miamia

    miamia New Member

    Joined:
    Sep 2, 2010
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    0
    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
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice