Click here to Skip to main content
15,886,919 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: ToolBar Bitmaps? Pin
David Crow19-May-09 9:03
David Crow19-May-09 9:03 
Questionparser Pin
durban219-May-09 3:15
durban219-May-09 3:15 
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 
To do this, the list-view needs to tell the system that it'll process all keys it's sent (which it can do when it's sent the WM_GETDLGCODE message)

Easiest way is to sub-class the list control and add an OnDlgCode override, like this:

// In header
class ListControlThatSendsNM_RETURN : public CListCtrl
{
   DECLARE_MESSAGE_MAP();
   UINT OnGetDlgCode()
};

// In .cpp file
BEGIN_MESSAGE_MAP(ListControlThatSendsNM_RETURN, CListCtrl)
   ON_WM_GETDLGCODE()
END_MESSAGE_MAP()
UINT ListControlThatSendsNM_RETURN::OnGetDlgCode()
{
   return DLGC_WANTALLKEYS;
}


then you can use ListControlThatSendsNM_RETURN instead of CListCtrl in MFC dialogs and the dialog will be sent NM_RETURN notifications.

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

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 
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 

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.