Click here to Skip to main content
15,898,020 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: WM_LBUTTONDBLCLK not being sent? Pin
Hans Dietrich11-Mar-11 13:19
mentorHans Dietrich11-Mar-11 13:19 
AnswerRe: WM_LBUTTONDBLCLK not being sent? Pin
Joan M12-Mar-11 4:59
professionalJoan M12-Mar-11 4:59 
GeneralRe: WM_LBUTTONDBLCLK not being sent - Solved! Pin
softwaremonkey12-Mar-11 5:48
softwaremonkey12-Mar-11 5:48 
GeneralRe: WM_LBUTTONDBLCLK not being sent - Solved! Pin
Joan M13-Mar-11 22:22
professionalJoan M13-Mar-11 22:22 
GeneralRe: WM_LBUTTONDBLCLK not being sent - Solved! Pin
SledgeHammer0114-Mar-11 11:10
SledgeHammer0114-Mar-11 11:10 
QuestionHelp regarding compiling a library Pin
faheemnadeem11-Mar-11 9:35
faheemnadeem11-Mar-11 9:35 
QuestionWhy does BitBlt not work right? Pin
Kaaib11-Mar-11 9:20
Kaaib11-Mar-11 9:20 
AnswerRe: Why does BitBlt not work right? Pin
Code-o-mat11-Mar-11 9:48
Code-o-mat11-Mar-11 9:48 
GeneralRe: Why does BitBlt not work right? Pin
Kaaib11-Mar-11 9:54
Kaaib11-Mar-11 9:54 
GeneralRe: Why does BitBlt not work right? Pin
Code-o-mat11-Mar-11 9:56
Code-o-mat11-Mar-11 9:56 
GeneralRe: Why does BitBlt not work right? Pin
Kaaib11-Mar-11 12:24
Kaaib11-Mar-11 12:24 
QuestionTransparent window Pin
csrss11-Mar-11 8:39
csrss11-Mar-11 8:39 
AnswerRe: Transparent window Pin
csrss11-Mar-11 9:15
csrss11-Mar-11 9:15 
GeneralRe: Transparent window Pin
Richard MacCutchan11-Mar-11 22:08
mveRichard MacCutchan11-Mar-11 22:08 
QuestionHow can I know which item is selected ? [modified] Pin
_Flaviu11-Mar-11 8:01
_Flaviu11-Mar-11 8:01 
AnswerRe: How can I know which item is selected ? Pin
Chris Meech11-Mar-11 8:40
Chris Meech11-Mar-11 8:40 
GeneralRe: How can I know which item is selected ? Pin
_Flaviu11-Mar-11 8:59
_Flaviu11-Mar-11 8:59 
GeneralRe: How can I know which item is selected ? Pin
_Flaviu11-Mar-11 9:19
_Flaviu11-Mar-11 9:19 
GeneralRe: How can I know which item is selected ? Pin
Hans Dietrich11-Mar-11 13:12
mentorHans Dietrich11-Mar-11 13:12 
Please look up NM_DBLCLK on MSDN.

Here's how to use it:
///////////////////////////////////////////////////////////////////////////////
// OnDblClick
//
// This method shows how to handle NM_DBLCLK messages from XListCtrl
//
void CXListCtrlTestDlg::OnDblClick(NMHDR* pNMHDR, LRESULT* pResult)
{
    LPNMITEMACTIVATE pNMIA = reinterpret_cast<LPNMITEMACTIVATE>(pNMHDR);

    int nItem = -1;
    int nSubItem = -1;

    if (pNMIA)
    {
        nItem = pNMIA->iItem;
        nSubItem = pNMIA->iSubItem;
    }

    if (nItem >= 0 && nSubItem >= 0)
    {
        CString strText = m_List.GetItemText(nItem, nSubItem);
        Log(_T("OnDblClick at (%d,%d):  '%s'"), nItem, nSubItem, strText);
    }

    *pResult = 0;
}

Here's the message map entry:
ON_NOTIFY(NM_DBLCLK, IDC_LIST, OnDblClick)

Best wishes,
Hans


[Hans Dietrich Software]

GeneralRe: How can I know which item is selected ? Pin
_Flaviu11-Mar-11 20:29
_Flaviu11-Mar-11 20:29 
GeneralRe: How can I know which item is selected ? Pin
_Flaviu11-Mar-11 20:37
_Flaviu11-Mar-11 20:37 
QuestionHow can create heading and format cell text in excel? Pin
Le@rner10-Mar-11 23:38
Le@rner10-Mar-11 23:38 
AnswerRe: How can create heading and format cell text in excel? Pin
Richard MacCutchan10-Mar-11 23:56
mveRichard MacCutchan10-Mar-11 23:56 
AnswerRe: How can create heading and format cell text in excel? Pin
Cool_Dev11-Mar-11 0:10
Cool_Dev11-Mar-11 0:10 
QuestionCopying From Single Dimension Array To Multiple Dimension Array Pin
Mike Certini10-Mar-11 15:06
Mike Certini10-Mar-11 15:06 

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.