Inactivating windows

This is a discussion on Inactivating windows within the Windows Programming forums, part of the Platform Specific Boards category; How do I make a window inactive when the program starts and active when a file is open? Is this ...

  1. #1
    Seeking motivation... endo's Avatar
    Join Date
    May 2002
    Posts
    537

    Inactivating windows

    How do I make a window inactive when the program starts and active when a file is open? Is this a property of the MDI or can I achieve the same effect with an SDI?

  2. #2
    Banned master5001's Avatar
    Join Date
    Aug 2001
    Location
    Visalia, CA, USA
    Posts
    3,685
    I'm sure you can do it with both. Just dissable the window and it should become inactive. If that doesn't work then maybe you should consider hiding the window instead.

  3. #3
    It's full of stars adrianxw's Avatar
    Join Date
    Aug 2001
    Posts
    4,831
    Yes, a little vague. EnableWindow() might be what you are looking for though, read about it in the help or at MSDN.
    Wave upon wave of demented avengers march cheerfully out of obscurity unto the dream.

  4. #4
    Seeking motivation... endo's Avatar
    Join Date
    May 2002
    Posts
    537
    I think what I am looking for is some oinfo on the documnet/view architecture. I want a program which doesn't do much until you open a file, does anyone know any good links? I've had a browse around the MSDN but couldn't find anything which gives a simple example.

  5. #5
    It's full of stars adrianxw's Avatar
    Join Date
    Aug 2001
    Posts
    4,831
    ... and until you start asking a specific question, you won't get much good here either!

    Consider your question, "doesn't do much until you open a file,", doesn't do much of what?

    What are you trying to do, and if you've got that far, post your code.
    Wave upon wave of demented avengers march cheerfully out of obscurity unto the dream.

  6. #6
    Seeking motivation... endo's Avatar
    Join Date
    May 2002
    Posts
    537
    I havent very far yet, this is where I am stuck on the interface. I want a program which is like Word where a file must be opened before anything useful can be done. At the moment I have a database connection which is simply displayed in a few editboxes.

    I hope thats clearer I can't think of a better way to phrase it

  7. #7
    Banned master5001's Avatar
    Join Date
    Aug 2001
    Location
    Visalia, CA, USA
    Posts
    3,685
    I just slowly re-read your original post and I think I know exactly what you mean. Do you mean, "how do I make a program that has won't do anything until I open a file?" If so that is a property of the toolbar. Also you can dissable menu items. That is a property of menu items. So really nothing you are asking for is directly tied to MDI or SDI.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Anyone using Windows 7?
    By Sharke in forum General Discussions
    Replies: 60
    Last Post: 07-12-2009, 08:05 AM
  2. Dialog Box Problems
    By Morgul in forum Windows Programming
    Replies: 21
    Last Post: 05-31-2005, 05:48 PM
  3. dual boot Win XP, win 2000
    By Micko in forum Tech Board
    Replies: 6
    Last Post: 05-30-2005, 02:55 PM
  4. SDL and Windows
    By nickname_changed in forum Windows Programming
    Replies: 14
    Last Post: 10-24-2003, 12:19 AM
  5. IE 6 status bar
    By DavidP in forum Tech Board
    Replies: 15
    Last Post: 10-23-2002, 05:31 PM

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