locked
WM_ vs NM_ messages RRS feed

  • Question

  • What is the difference between messages starting with WM_ and NM_ ?
    Why there are two set of messages for the single (right click)event like:

    1. WM_RBUTTONUP &

    2. WM_NOTIFY NM_RCLICK

    Regards,
    Suman
    Sunday, June 15, 2008 4:56 AM

Answers

  • Usually, WM_RBUTTONUP is a message sent to a window while NM_RCLICK is a notification sent by a control to its parent window.

    Processing the WM_RBUTTONUP message will detect right clicks over the window client area, as well as above certain controls (i.e, static). However, WM_RBUTTONUP will NOT be called when the user right clicks over an edit, button, listview, treeview, etc. Instead, those controls will notify such events by sending a NM_RCLICK notification to the parent window

    K-ballo
    • Marked as answer by nobugz Sunday, June 15, 2008 3:01 PM
    Sunday, June 15, 2008 5:44 AM