!!!PopupMenu!!!

This is a discussion on !!!PopupMenu!!! within the C++ Programming forums, part of the General Programming Boards category; I am programming in Borland C++ Enterprise 5. I need a popummenu to be shown when i click a picture. ...

  1. #1
    Registered User lukas1viper's Avatar
    Join Date
    Dec 2001
    Posts
    11

    Unhappy !!!PopupMenu!!!

    I am programming in Borland C++ Enterprise 5. I need a popummenu to be shown when i click a picture. But i want it to be shown at a certain place, not by the cursor. Please help.

  2. #2
    &TH of undefined behavior Fordy's Avatar
    Join Date
    Aug 2001
    Posts
    5,789
    TrackPopupMenu
    The TrackPopupMenu function displays a shortcut menu at the specified location and tracks the selection of items on the menu. The shortcut menu can appear anywhere on the screen.

    BOOL TrackPopupMenu(
    HMENU hMenu, // handle to shortcut menu
    UINT uFlags, // screen-position and mouse-button flags
    int x, // horizontal position, in screen coordinates
    int y, // vertical position, in screen coordinates
    int nReserved, // reserved, must be zero
    HWND hWnd, // handle to owner window
    CONST RECT *prcRect // ignored
    );
    From MSDN

Popular pages Recent additions subscribe to a feed

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21