Click here to Skip to main content
15,906,628 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Strings in EXE Pin
Nick_1117-Sep-09 6:17
Nick_1117-Sep-09 6:17 
GeneralRe: Strings in EXE Pin
Michael Schubert7-Sep-09 6:54
Michael Schubert7-Sep-09 6:54 
QuestionMySQL connection Pin
rdop7-Sep-09 1:16
rdop7-Sep-09 1:16 
QuestionTrackPopupMenuEx not popup menu on rite cordinates in ListCtrl. Pin
Le@rner7-Sep-09 1:07
Le@rner7-Sep-09 1:07 
AnswerRe: TrackPopupMenuEx not popup menu on rite cordinates in ListCtrl. Pin
Richard MacCutchan7-Sep-09 2:20
mveRichard MacCutchan7-Sep-09 2:20 
GeneralRe: TrackPopupMenuEx not popup menu on rite cordinates in ListCtrl. Pin
Le@rner7-Sep-09 2:49
Le@rner7-Sep-09 2:49 
GeneralRe: TrackPopupMenuEx not popup menu on rite cordinates in ListCtrl. Pin
Richard MacCutchan7-Sep-09 4:16
mveRichard MacCutchan7-Sep-09 4:16 
GeneralRe: TrackPopupMenuEx not popup menu on rite cordinates in ListCtrl. Pin
Le@rner8-Sep-09 18:17
Le@rner8-Sep-09 18:17 
Now i m using like this
UINT flags;
DWORD pos = GetMessagePos();
CPoint point(LOWORD(pos), HIWORD(pos));
m_List.ScreenToClient(&point);
int nItem = m_List.HitTest(point, &flags);
HMENU hMenu = ::CreatePopupMenu();
if (NULL != hMenu)
{
    // add a few test items
    ::AppendMenu(hMenu, MF_STRING,   1, "Test1");
    ::AppendMenu(hMenu, MF_SEPARATOR,2, "");
    ::AppendMenu(hMenu, MF_STRING,   3, "Test2");
    ::AppendMenu(hMenu, MF_SEPARATOR,4, "");
    ::AppendMenu(hMenu, MF_STRING,   5, "Test3");

    ClientToScreen(&pia->ptAction);

    int sel = ::TrackPopupMenuEx(hMenu,TPM_LEFTALIGN|TPM_RETURNCMD,pia->ptAction.x,pia->ptAction.y,m_hWnd,NULL);

    switch(sel)
    {
    case 1:
        {
            //do sumthing
        }
        break;
    case 3:
        {
            //do sumthing
        }
        break;
    case 5:
        {
            //do sumthing
        }
        break;
    }
}


but still when i right click on ListCtrl the menu not popup from tip of mouse cursor.

please help me.

To accomplish great things, we must not only act, but also dream;
not only plan, but also believe.

GeneralRe: TrackPopupMenuEx not popup menu on rite cordinates in ListCtrl. Pin
Richard MacCutchan8-Sep-09 22:59
mveRichard MacCutchan8-Sep-09 22:59 
GeneralRe: TrackPopupMenuEx not popup menu on rite cordinates in ListCtrl. Pin
Le@rner8-Sep-09 23:04
Le@rner8-Sep-09 23:04 
QuestionHow I will write a macro to check............................ Pin
deadlyabbas7-Sep-09 0:46
deadlyabbas7-Sep-09 0:46 
AnswerRe: How I will write a macro to check............................ Pin
Cedric Moonen7-Sep-09 0:55
Cedric Moonen7-Sep-09 0:55 
GeneralRe: How I will write a macro to check............................ Pin
deadlyabbas7-Sep-09 1:01
deadlyabbas7-Sep-09 1:01 
GeneralRe: How I will write a macro to check............................ Pin
Cedric Moonen7-Sep-09 1:18
Cedric Moonen7-Sep-09 1:18 
GeneralRe: How I will write a macro to check............................ Pin
deadlyabbas7-Sep-09 1:40
deadlyabbas7-Sep-09 1:40 
GeneralRe: How I will write a macro to check............................ Pin
Stuart Dootson7-Sep-09 2:55
professionalStuart Dootson7-Sep-09 2:55 
AnswerRe: How I will write a macro to check............................ Pin
Chris Losinger7-Sep-09 3:47
professionalChris Losinger7-Sep-09 3:47 
Questionvisual C++ expert...need help!! Pin
mr bard26-Sep-09 23:30
mr bard26-Sep-09 23:30 
AnswerRe: visual C++ expert...need help!! Pin
Cedric Moonen6-Sep-09 23:59
Cedric Moonen6-Sep-09 23:59 
GeneralRe: visual C++ expert...need help!! Pin
mr bard28-Sep-09 19:51
mr bard28-Sep-09 19:51 
AnswerRe: visual C++ expert...need help!! Pin
Richard MacCutchan8-Sep-09 23:03
mveRichard MacCutchan8-Sep-09 23:03 
QuestionTerminating Process [modified] Pin
gothic_coder6-Sep-09 21:42
gothic_coder6-Sep-09 21:42 
AnswerRe: Terminating Process Pin
Richard MacCutchan7-Sep-09 2:26
mveRichard MacCutchan7-Sep-09 2:26 
GeneralRe: Terminating Process Pin
gothic_coder7-Sep-09 2:46
gothic_coder7-Sep-09 2:46 
GeneralRe: Terminating Process Pin
kilt7-Sep-09 4:58
kilt7-Sep-09 4:58 

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.