Thread: Two UI questions

  1. #1

    Two UI questions

    This is for a map editor, just so you know.

    1) How can I create a window that is on top of the MDI child windows?
    (Like a tileset window)

    2) How can I create scrollbars? I am a bit lost on how I can let people scroll the map window. I can figure out how to draw it(I think), but scroll...

  2. #2
    pronounced 'fib' FillYourBrain's Avatar
    Join Date
    Aug 2002
    I think any popup window that is a child of the Frame Window will always be on top of the MDIClient and MDIChild.

    It sounds like you did create scrollbars just that you don't understand how to move the thumb around and stuff. Scrollbars send a lot of messages back to the parentwindow and you have to send messages back to it to move the thumb. Here's a pretty good link explaining it on MSDN
    "You are stupid! You are stupid! Oh, and don't forget, you are STUPID!" - Dexter

  3. #3
    train spotter
    Join Date
    Aug 2001
    near a computer
    Use SetWindowPos() with SWP_TOPMOST
    "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

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. many questions about random numbers....
    By face_master in forum C++ Programming
    Replies: 2
    Last Post: 07-30-2009, 08:47 AM
  2. A very long list of questions... maybe to long...
    By Ravens'sWrath in forum C Programming
    Replies: 16
    Last Post: 05-16-2007, 05:36 AM
  3. Several Questions, main one is about protected memory
    By Tron 9000 in forum C Programming
    Replies: 3
    Last Post: 06-02-2005, 07:42 AM
  4. Trivial questions - what to do?
    By Aerie in forum A Brief History of
    Replies: 23
    Last Post: 12-26-2004, 09:44 AM
  5. questions questions questions.....
    By mfc2themax in forum A Brief History of
    Replies: 1
    Last Post: 08-14-2001, 07:22 AM