Thread: Toolbars ... Rebars... whatever!... ...

  1. #1

    Question Toolbars ... Rebars... whatever!... ...

    So how can I create toolbars, that remain active even when I switch to another window?
    I mean toolbars should be active all the time but I don't know how that works.

    For example in VC6, when I move the toolbars out of the rebars (That's these bars, that can contain child windows - usually toolbars) they still have an active titlebar - even though the window I am writing in has the focus.

    Does anyone have an idea?

  2. #2
    Registered User DutchStud's Avatar
    Join Date
    Oct 2001
    when you create your window, use
    The first argument should be something like WS_EX_TOOLWINDOW or something like that. you'll have to look it up, but i believe it's something like toolwindow, palettewindow, or topmost, but i can't remember.

  3. #3
    DutchStud is leading you in the right direction, pass WS_EX_PALETTEWINDOW as the first parameter to the CreateWindowEx() function.

    WS_EX_PALETTEWINDOW combines the "toolwindow" and "topmost" extended window styles.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Put a bitmap in a toolbars background
    By Joelito in forum Windows Programming
    Replies: 2
    Last Post: 06-30-2007, 02:27 PM
  2. Rebar and ToolBars
    By underline_bruce in forum Windows Programming
    Replies: 4
    Last Post: 05-25-2007, 09:48 PM
  3. Text Only Toolbars
    By b00l34n in forum Windows Programming
    Replies: 2
    Last Post: 03-11-2005, 02:49 PM
  4. Overlapping toolbars
    By minesweeper in forum Windows Programming
    Replies: 3
    Last Post: 06-14-2003, 11:26 PM
  5. How do I implement Toolbars?
    By shanedudddy2 in forum C++ Programming
    Replies: 0
    Last Post: 01-26-2003, 09:23 PM