hello all,
I just have some questions about listview items.
/***********NEVERMIND THIS QUESTION******************************
in my application, for the listview, for WM_NOTIFY, I am handling the NM_RCLICK message, and that is all. I assume that when a user right clicks on a listview control item that it will automatically set focus (selection, whatever you wanna call it) on that item? or would I have to manually set the focus (note that I am not using DefWindowProc() since it is a dialog)?
****TESTED BY ADDING AN ITEM, AND IT DOES SET FOCUS AUTOMATICALLY****/
secondly, how would I find out if an item is in focus? my intent is to dynamically create a popup floating menu on NM_RCLICK in the listview. but as I call AppendMenu(), I would like to know whether or not a listview item is being right clicked (to properly set the menu item flags, for example set a menu item to MF_GRAYED if NM_RCLICK is on a listview item).
could anyone please help me with these questions?
thank you in advance!![]()



LinkBack URL
About LinkBacks




).
. each right click is a WM_NOTIFY message, Windows should call my dialog callback with the NM_RCLICK message every time I right click, and the conditional testing if it is on an item should be evaluated each time.