Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 621443
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T18:52:29+00:00 2026-05-13T18:52:29+00:00

I want to display info when my mouse cursor is on an item in

  • 0

I want to display info when my mouse cursor is on an item in my menu by using SendMessage() to my statusbar. How do i get the current menu item ID ? I suppose they use same ID’s as my Visual Studio shows in the menu editor.

I found these on msdn but none of them seems to serve my needs:

WM_COMMAND
WM_CONTEXTMENU
WM_ENTERMENULOOP
WM_EXITMENULOOP
WM_GETTITLEBARINFOEX
WM_MENUCOMMAND
WM_MENUDRAG
WM_MENUGETOBJECT
WM_MENURBUTTONUP
WM_NEXTMENU
WM_UNINITMENUPOPUP
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T18:52:29+00:00Added an answer on May 13, 2026 at 6:52 pm

    While the user is moving around the menu you get WM_MENUSELECT messages. LOWORD(lParam) will be the id of the menu item unless what is currently being selected is a popup rather than an item.

    so your code looks something like this

    case WM_MENUSELECT
       {
       HMENU hmenu  = (HMENU) lParam;
       UINT  idItem = (UINT) LOWORD(wParam);
       UINT  flags  = (UINT) HIWORD(wParam);
    
       if (flags & MF_POPUP)
          {
          // idItem is actually a popup index
          HMENU hSubMenu = GetSubMenu(hmenu, idItem);
          idItem = 0; // assign an id to the menu, or just set to 0 for no output
          }
    
       // show menu info on status bar for idItem
       SendMessage(hwndStatbar, ..., idItem, ...);
       }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to display the username/last connection date/time and some other info on all
I have a website where I display student info. I want to add few
I want to display data with level of detail, so i use a TreeView,
Hi say I have a Gridview in which I want to display info about
I'm using AVPlayer to play audio from remote server. I want to display a
I have an awesome widget to display information, and I want to use it
I have a simple info icon and I want to display it as css
I want to display a custom info bar in my outlook message. Something like
I want to display trace info into Text Output tab in NUnit GUI (ver.
I want to display my articles info in different ways, with on/off functionality, something

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.