Click here to Skip to main content
15,887,027 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: parser Pin
Michael Schubert19-May-09 3:35
Michael Schubert19-May-09 3:35 
AnswerRe: parser Pin
Rajesh R Subramanian19-May-09 3:36
professionalRajesh R Subramanian19-May-09 3:36 
AnswerRe: parser Pin
Stuart Dootson19-May-09 3:36
professionalStuart Dootson19-May-09 3:36 
GeneralRe: parser Pin
durban220-May-09 4:29
durban220-May-09 4:29 
QuestionHow to get NM_RETURN notify event from CListCtrl Pin
Nitheesh George19-May-09 2:50
Nitheesh George19-May-09 2:50 
AnswerRe: How to get NM_RETURN notify event from CListCtrl Pin
Stuart Dootson19-May-09 3:28
professionalStuart Dootson19-May-09 3:28 
GeneralRe: How to get NM_RETURN notify event from CListCtrl Pin
Nitheesh George19-May-09 4:07
Nitheesh George19-May-09 4:07 
GeneralRe: How to get NM_RETURN notify event from CListCtrl Pin
infiro4-Jun-10 11:59
infiro4-Jun-10 11:59 
Thanks you alot. This is the Answer.
Without overriding this function, the NM_RETURN or WM_KEYDOWN wont get sent, and you need to both Press Mouse button AND Enter key to have those messages sent. With this overrided function, you only need to press Enter key.

One more note I found useful is that: If u r not using CListView, but have a Pane (DockablePane) who is the parent of the CListCtrl; and you want the Pane to handle Notify Messages from the CListCtrl. The best way to do is:

1) Override your CListCtrl, and handle ON_NOTIFY_REFLECT_EX( notifyMessage, memFunction) (notifyMessage could be NM_RETURN)
2) In memFunction, just return FALSE. Which allows this notifyMessage will be handled in other places as well( for ex CListView's Parent).
3) In the Parent class (DockablePane), handle ON_NOTIFY(notifyMessage, ChildID, memFunction)

Thanks you
QuestionTreeView Control Pin
zakkas248319-May-09 1:47
zakkas248319-May-09 1:47 
AnswerRe: TreeView Control Pin
Stuart Dootson19-May-09 2:00
professionalStuart Dootson19-May-09 2:00 
GeneralRe: TreeView Control Pin
zakkas248319-May-09 2:21
zakkas248319-May-09 2:21 
GeneralRe: TreeView Control Pin
molesworth19-May-09 2:32
molesworth19-May-09 2:32 
GeneralRe: TreeView Control Pin
zakkas248319-May-09 2:59
zakkas248319-May-09 2:59 
GeneralRe: TreeView Control Pin
molesworth19-May-09 3:44
molesworth19-May-09 3:44 
AnswerRe: TreeView Control Pin
Alain Rist19-May-09 5:01
Alain Rist19-May-09 5:01 
Questionconvert CString to const wchar_t *. Pin
Le@rner19-May-09 1:46
Le@rner19-May-09 1:46 
AnswerRe: convert CString to const wchar_t *. Pin
Rajesh R Subramanian19-May-09 1:53
professionalRajesh R Subramanian19-May-09 1:53 
AnswerRe: convert CString to const wchar_t *. Pin
_AnsHUMAN_ 19-May-09 1:56
_AnsHUMAN_ 19-May-09 1:56 
GeneralRe: convert CString to const wchar_t *. Pin
Rajesh R Subramanian19-May-09 1:58
professionalRajesh R Subramanian19-May-09 1:58 
JokeRe: convert CString to const wchar_t *. Pin
_AnsHUMAN_ 19-May-09 2:10
_AnsHUMAN_ 19-May-09 2:10 
GeneralRe: convert CString to const wchar_t * Pin
Rajesh R Subramanian19-May-09 2:48
professionalRajesh R Subramanian19-May-09 2:48 
GeneralRe: convert CString to const wchar_t *. Pin
CPallini19-May-09 2:07
mveCPallini19-May-09 2:07 
GeneralRe: convert CString to const wchar_t *. Pin
Rajesh R Subramanian19-May-09 2:46
professionalRajesh R Subramanian19-May-09 2:46 
GeneralRe: convert CString to const wchar_t *. Pin
CPallini19-May-09 3:12
mveCPallini19-May-09 3:12 
QuestionRe: convert CString to const wchar_t *. Pin
CPallini19-May-09 2:08
mveCPallini19-May-09 2:08 

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.