Click here to Skip to main content
15,894,410 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Question_bstr_t and _variant_t [modified] Pin
vital_parsley200019-May-09 5:32
vital_parsley200019-May-09 5:32 
AnswerRe: _bstr_t and _variant_t Pin
Chris Losinger19-May-09 5:46
professionalChris Losinger19-May-09 5:46 
Questioninsert records using parameters . Pin
vital_parsley200019-May-09 5:31
vital_parsley200019-May-09 5:31 
AnswerRe: insert records using parameters . Pin
Stuart Dootson19-May-09 7:16
professionalStuart Dootson19-May-09 7:16 
GeneralRe: insert records using parameters . Pin
vital_parsley200019-May-09 18:01
vital_parsley200019-May-09 18:01 
GeneralRe: insert records using parameters . Pin
Stuart Dootson19-May-09 21:49
professionalStuart Dootson19-May-09 21:49 
QuestionToolBar Bitmaps? Pin
Software200719-May-09 4:38
Software200719-May-09 4:38 
AnswerRe: ToolBar Bitmaps? Pin
David Crow19-May-09 4:52
David Crow19-May-09 4:52 
GeneralRe: ToolBar Bitmaps? Pin
Software200719-May-09 5:06
Software200719-May-09 5:06 
QuestionRe: ToolBar Bitmaps? Pin
David Crow19-May-09 5:10
David Crow19-May-09 5:10 
AnswerRe: ToolBar Bitmaps? Pin
Software200719-May-09 5:50
Software200719-May-09 5:50 
GeneralRe: ToolBar Bitmaps? Pin
David Crow19-May-09 6:28
David Crow19-May-09 6:28 
GeneralRe: ToolBar Bitmaps? Pin
Software200719-May-09 7:38
Software200719-May-09 7:38 
QuestionRe: ToolBar Bitmaps? Pin
David Crow19-May-09 7:42
David Crow19-May-09 7:42 
AnswerRe: ToolBar Bitmaps? [modified] Pin
Software200719-May-09 7:57
Software200719-May-09 7:57 
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 

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.