Hot Key controls

This is a discussion on Hot Key controls within the Windows Programming forums, part of the Platform Specific Boards category; If i'm not mistaken, a hot key control is like a white box which contains items which can be selected ...

  1. #1
    Refugee face_master's Avatar
    Join Date
    Aug 2001
    Posts
    2,052

    Thumbs up Hot Key controls

    If i'm not mistaken, a hot key control is like a white box which contains items which can be selected (usually used to set options). Has anybody got a link, any info (such as functions associated with them) or even something to look up on MSDN?

    Thanks
    -Chris

  2. #2
    train spotter
    Join Date
    Aug 2001
    Location
    near a computer
    Posts
    3,856
    Also are 'Accelerators'. The menu items with the underscore.

    Put an amperstand in front of the letter you want the underscore 'under' in the menu items title (not ID) ie &File
    Code:
    // Load accelerators for main menu (HACCEL hAccel)
    hAccel = LoadAccelerators( hInstance, MAKEINTRESOURCE(IDR_MAINMENU));
    Put this line into the winmain after the window is created but before your call to ShowWindow() UpdateWindow()
    "Man alone suffers so excruciatingly in the world that he was compelled to invent laughter."
    Friedrich Nietzsche

    "I spent a lot of my money on booze, birds and fast cars......the rest I squandered."
    George Best

    "If you are going through hell....keep going."
    Winston Churchill

  3. #3
    Refugee face_master's Avatar
    Join Date
    Aug 2001
    Posts
    2,052
    I know what those are. That's not what i'm talking about. Here's a screenshot of what i'm talking about... (its just from an Admin Mod configure utility)
    Attached Images Attached Images  

  4. #4
    Registered User johnnie2's Avatar
    Join Date
    Aug 2001
    Posts
    186
    You mean a list box?
    "Optimal decisions, once made, do not need to be changed." - Robert Sedgewick, Algorithms in C

  5. #5
    Refugee face_master's Avatar
    Join Date
    Aug 2001
    Posts
    2,052
    its like a list box but it doesn't drop down or anything. Loom at the pic

  6. #6
    Registered User johnnie2's Avatar
    Join Date
    Aug 2001
    Posts
    186
    List boxes have no drop-down feature. The best feature they offer in that regard is simple scrolling to highlight a certain number of items. If the window region is large enough, like in your screenshot, all the items are displayed without a scrollbar. You may be getting list boxes confused with drop-down boxes and combo boxes, which do have a drop-down feature.
    "Optimal decisions, once made, do not need to be changed." - Robert Sedgewick, Algorithms in C

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 16
    Last Post: 11-23-2007, 12:48 PM
  2. Virtual keys
    By Arkanos in forum Windows Programming
    Replies: 4
    Last Post: 12-12-2005, 09:00 AM
  3. Directional Keys - Useing in Console
    By RoD in forum C++ Programming
    Replies: 38
    Last Post: 10-06-2002, 04:42 PM
  4. FAQ: Directional Keys - Useing in Console
    By RoD in forum FAQ Board
    Replies: 38
    Last Post: 10-06-2002, 04:42 PM

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