Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Application Name Hlp. Pls 1

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
Can some please help, this driving me nuts.My application has a Logo with Untitled written onit at the Top instead of the Application Name. How can i changes this....Untitled - to the name i want.

Someone suggested that in my App class in Instance i should add something like following.

m_pWnd->SetWindowText("App Name");

I tried it, got no errors but the application did not run, performed illegal operation.

PLease help how can i get my application name on my my main program screen.
 
sorry the code said m_pMainWnd->SetWindowTex("App name");
 
Open the String Table for the application (it is one of the resources). Change the fields of the string IDR_MAINFRAME.
I am giving a description of the 7 fields. Modify whatever you want, but be careful.

************************************************************
The document string is a string resource formed from a combination of as many as seven substrings separated by "\n" characters. Each substring describes one characteristic of the frame window or document type. In left-to-right order, the substrings have the following meaning for an SDI application:

1. The title that appears in the frame window's title bar. This is usually the name of the application—for example, "Microsoft Draw."

2. The title assigned to new documents. If this substring is omitted, the default is "Untitled."

3. A descriptive name for the document type that appears along with other document types in a dialog box when the user selects New from the File menu in an MDI application that registers two or more document types. This substring isn't used in SDI applications.

4. A descriptive name for the document type combined with a wildcard file specification that includes the default file name extension—for example, "Drawing Files (*.drw)." This string is used in Open and Save As dialog boxes.

5. The default file name extension for documents of this type—for example, ".drw."

6. A name with no spaces that identifies the document type in the registry—for example, "Draw.Document." If the application calls CWinApp::Register- ShellFileTypes to register its document types, this substring becomes the default value for the HKEY_CLASSES_ROOT subkey named after the document's file name extension.

7. A descriptive name for the document type—for example, "Microsoft Draw Document." Unlike the substring preceding it in the document string, this substring can include spaces. If the application uses CWinApp::Register- ShellFileTypes to register its document types, this substring is the human-readable name the shell displays in property sheets.

You don't have to supply all seven substrings; you can omit individual substrings by following a "\n" separator character with another "\n," and you can omit trailing null substrings altogether. If you build an application with AppWizard, AppWizard creates the document string for you using information entered in the Advanced Options dialog box that's displayed when you click the Advanced button in AppWizard's Step 4 dialog box.

************************************************************
Hope that helps.
- Karthika
 
Thanks Mat
all i had to do was to add \n<APP NAME>
that was easy ah.

Thanks Again, it works fine, got rid of the untitle business.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top