DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: HMENU Hotkeys & Icons

  1. #1
    Join Date
    Sep 2009

    Exclamation HMENU Hotkeys & Icons

    Hi all,

    I have two problems, the first being the most important:

    I have a Win32 (Non-MFC) app with a window and a win32 menu on it (HMENU), and I've been searching all day for a way to display shortcuts (like "Ctrl+C") on the menu items. I know there's the RegisterHotkey function but that doesn't make the shortcut to display on the menu item. There MUST be a way to do this without owner drawing the menu! Does anybody know how to achieve this?

    How can I display 32-bit icons in the menu items? I know how to use SetMenuItemInfo, but the problem comes when loading the bitmap. LoadBitmap works only with 24-bit bitmaps or less. LoadImage doesn't work either. I can use LoadIcon, but it is not compatible with HBITMAP, required by the MENUITEMINFO structure. Maybe a clue on how to transform a 32-bit PNG resource to an HBITMAP?

    Thanks in advance

  2. #2
    Join Date
    Apr 2008
    Where did you search ?!!!
    These are Win32 FAQ.
    see on Win32 grp
    (since 1992 !)

Similar Threads

  1. Hotkeys on whole form
    By Alphadan in forum .NET
    Replies: 2
    Last Post: 10-31-2008, 02:44 PM
  2. subclassing richtextbox to replace hotkeys
    By gnznroses4699 in forum VB Classic
    Replies: 5
    Last Post: 09-12-2005, 12:22 AM
  3. Extracting Icons
    By D. Patrick Hoerter in forum VB Classic
    Replies: 6
    Last Post: 01-26-2001, 05:26 AM
  4. Extracting Icons
    By D. Patrick Hoerter in forum VB Classic
    Replies: 0
    Last Post: 01-24-2001, 07:29 PM
  5. Re: Icons in menus
    By Sergey in forum Architecture and Design
    Replies: 0
    Last Post: 03-24-2000, 08:08 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center
Latest Articles
Questions? Contact us.
Web Development
Latest Tips
Open Source

   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center