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?
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?
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.
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.
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.
... 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.
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
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.