CompuServe Thread

app with no document

2 messages in this thread
#30323From: Jay Potter [MSFT]Jul 8, 1994 5:27 PM
Marc, > Is it possible to have an application that supports > views but does not have any documents. I am using > AppWizard to create a basic SDI application, but it > has alot of stuff in it that looks like it is for > document support. What do I do to get rid of all > of this unneeded support – including the title bar > of the SDI frame – which always has the name of the > current document in it? I would like to simply have the > name of the application in the main frame window. Yes it is possible but not recommended. Steve is correct when he says that documents are an integral part of the MFC framework. Does your application have any data? If so you can probably use the Doc/View architecture effectively. Documents are just data stores. Views just display the data in a certain format. Probably the easiest thing is to do as Steve suggested and remove the FWS_ADDTOTITLE flag in your PreCreateWindow for your CMainFrame object. That will keep the title from changing which should be the only outward indication of a document's presence. I highly recommend you use the document in conjunction with the view. Although possible, creating a view is not really the supported approach. Hope his helps! Jay Potter Microsoft Developer Support
#30574From: Marc WeigelJul 11, 1994 6:56 PM
Thanks, Jay. How would I write the override to simply turn off the FWS_ADDTOTITLE bit? I know this seems basic, sorry. Another thing that is happening to me is that I am getting this message: wn GISMAN 0487:AE61: Invalid value: -32767 This message comes up in the debug win when I am running a program called GISMAN. It only comes up when I am doing a DDE poke and execute to another application. Where is this message originating from? How do I go about figuring out how to solve the error?