Announcement

Collapse
No announcement yet.

Status bar...

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Status bar...

    Can anyone give me some clues on how to fill a status bar with
    a menu item selection similar to the way the PB/CC and PB/DLL
    editors do. For example, when you click on "FILE" and then hover
    over "OPEN FILE", the status bar shows information of the
    highlighted item.
    I know I have to use some API calls to do this, but have no clue
    how to go about it.

    Thanks,
    Gary Stout




    ------------------
    Thanks,
    Gary Stout
    gary at sce4u dot com

  • #2
    You respond to %WM_MENUSELECT and can set the text with %SB_SETTEXT.
    If text was set via string table in resource file, LoadString can grab
    it - see PBNOTE sample. From my own editor:
    Code:
          CASE %WM_MENUSELECT
            LoadString hInst, wParam, zText, SIZEOF(zText)
            SendMessage hStatus, %SB_SETTEXT, %SBT_NOBORDERS, VARPTR(zText)

    ------------------

    Comment

    Working...
    X