Click here to Skip to main content
15,881,172 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionHow to get the selectedColumn in a CListCtrl. Pin
FISH78623-Apr-09 21:41
FISH78623-Apr-09 21:41 
AnswerRe: How to get the selectedColumn in a CListCtrl. Pin
_AnsHUMAN_ 23-Apr-09 21:46
_AnsHUMAN_ 23-Apr-09 21:46 
GeneralRe: How to get the selectedColumn in a CListCtrl. Pin
FISH78623-Apr-09 21:51
FISH78623-Apr-09 21:51 
GeneralRe: How to get the selectedColumn in a CListCtrl. Pin
_AnsHUMAN_ 23-Apr-09 22:00
_AnsHUMAN_ 23-Apr-09 22:00 
GeneralRe: How to get the selectedColumn in a CListCtrl. Pin
FISH78623-Apr-09 22:11
FISH78623-Apr-09 22:11 
GeneralRe: How to get the selectedColumn in a CListCtrl. Pin
Stuart Dootson23-Apr-09 22:01
professionalStuart Dootson23-Apr-09 22:01 
GeneralRe: How to get the selectedColumn in a CListCtrl. Pin
FISH78623-Apr-09 22:13
FISH78623-Apr-09 22:13 
GeneralRe: How to get the selectedColumn in a CListCtrl. Pin
Stuart Dootson23-Apr-09 22:40
professionalStuart Dootson23-Apr-09 22:40 
Ah - you want the sub-item that the user clicked on!

The selection model for lists only includes selected rows, not columns. This means that what you need to do is handle the NM_CLICK notification[^] for the list view. This notification contains a pointer to an NMITEMACTIVATE structure[^] which contains details of where the click occurred, including the sub-item. You can then store that sub-item as the 'last-clicked sub-item'?

Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p

AnswerRe: How to get the selectedColumn in a CListCtrl. Pin
Rolf Kristensen1-May-09 11:50
Rolf Kristensen1-May-09 11:50 
QuestionDestructor of CView Pin
prithaa23-Apr-09 21:22
prithaa23-Apr-09 21:22 
AnswerRe: Destructor of CView Pin
CPallini23-Apr-09 21:27
mveCPallini23-Apr-09 21:27 
GeneralRe: Destructor of CView Pin
prithaa23-Apr-09 21:31
prithaa23-Apr-09 21:31 
GeneralRe: Destructor of CView Pin
CPallini23-Apr-09 22:05
mveCPallini23-Apr-09 22:05 
GeneralRe: Destructor of CView Pin
prithaa24-Apr-09 0:39
prithaa24-Apr-09 0:39 
GeneralRe: Destructor of CView Pin
CPallini24-Apr-09 0:47
mveCPallini24-Apr-09 0:47 
Question[Message Deleted] Pin
vctrlao23-Apr-09 20:55
vctrlao23-Apr-09 20:55 
AnswerRe: the endless loop Pin
Cedric Moonen23-Apr-09 21:05
Cedric Moonen23-Apr-09 21:05 
QuestionRe: the endless loop Pin
CPallini23-Apr-09 21:09
mveCPallini23-Apr-09 21:09 
QuestionHow to create WM_TIMER that interval time less than 1 millisec Pin
Max++23-Apr-09 20:11
Max++23-Apr-09 20:11 
AnswerRe: How to create WM_TIMER that interval time less than 1 millisec Pin
Cedric Moonen23-Apr-09 20:14
Cedric Moonen23-Apr-09 20:14 
AnswerRe: How to create WM_TIMER that interval time less than 1 millisec Pin
Hamid_RT23-Apr-09 23:40
Hamid_RT23-Apr-09 23:40 
QuestionPopup window from main window Pin
Anu_Bala23-Apr-09 19:59
Anu_Bala23-Apr-09 19:59 
Questionhow to print the data using VC++ Pin
diptipanchal23-Apr-09 19:39
diptipanchal23-Apr-09 19:39 
AnswerRe: how to print the data using VC++ Pin
CPallini23-Apr-09 21:16
mveCPallini23-Apr-09 21:16 
GeneralRe: how to print the data using VC++ Pin
diptipanchal23-Apr-09 22:10
diptipanchal23-Apr-09 22:10 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.