none
Image with Popup menu items RRS feed

  • Question

  • Hi, I want to display image with popup menu items as normal popup menues does of like VC itself. May be it is so stupid question but even after a lot of googling i am unable to find any clue on it.
    Regards
    Harsh

    Please Mark reply as "Answered" if they helped
    Monday, March 29, 2010 11:09 AM

Answers

  • thanks for replying Igor.
    Now i have got the solution and that even is not needed to use OwnerDraw.

    i just did this.. and i got what i wanted :)

    CMenu menuPopup;
    
    // Prepare the menu..
    
    CMFCPopupMenu* pPopupMenu = new CMFCPopupMenu;
    
    if (!pPopupMenu->Create(this, sMousePoint.x, sMousePoint.y, (HMENU)menuPopup, FALSE, TRUE))
    	return NULL;
    
    OnShowPopupMenu(pPopupMenu);
    UpdateDialogControls(this, FALSE);
    

    Regards
    Harsh

    Please Mark reply as "Answered" if they helped
    • Marked as answer by Harsh Shankar Wednesday, March 31, 2010 10:31 AM
    Wednesday, March 31, 2010 10:31 AM

All replies