mfc >> How to add title to CMainFrame Wndow

by gangadhar npk » Mon, 26 Apr 2004 07:56:10 GMT

hi,
Why not get the HWND to the active window (using
CFrameWnd::GetActiveFrame) and then set the title using
::SetWindowText(szTheNewString).
hth
gangadhar
shiva wrote:
> Hello,
>
> I want to add a string to the title of the window
> Now it is displaying like this MyApp-[genaral.txt]
>
> for ex: MyApp - title - [genaral.txt]
>
> like this i want.
>
> where i have to write the code.
>
> pls help me.
>
> than u in advance.
>
> Shiva

mfc >> How to add title to CMainFrame Wndow

by c2hpdmE » Mon, 26 Apr 2004 18:16:03 GMT


Hello

I want to add a string to the title of the window
Now it is displaying like this MyApp-[genaral.txt

for ex: MyApp - title - [genaral.txt

like this i want

where i have to write the code

pls help me

than u in advance

Shiva

mfc >> RE: How to add title to CMainFrame Wndow

by c2hpdmE » Mon, 26 Apr 2004 22:11:03 GMT

I got the solution

any way thank u all

by

shiv

Similar Threads

1. CMainFrame and Title

2. Add Message Handler to CWinApp or CMainFrame

Hi,
I'm not sure about getting which class for the "OnIdle" Event? (CWinApp or 
CMainFrame?)Or both have :)
And In VC6, there used to be the classwizard. Now, I wanted to add an event 
handler, how do I get it? Thanks
J


3. Adding outlook style titles "Mail" & "Inbox"

4. Adding a title to a list view.

I have a splitter window with listviews on the top and bottom.

I would like to add a title line to each view in addition to the normal 
column headers.

Can anybody help?


5. adding item to title bar & system menu for proprty page/sheet

6. Excel - cant add a TITLE to a CHART

I'm using C++Builder V5 update 1.
I'm using the Excel component (Excel_97) from the component pallet.
I'm have Excel 97 installed on the computer (and no other versions of 
Excel).

Problem:
Can't get a hold of the title of an Excel chart.

Example:

  ExcelWorksheetPtr ws  = wb->Sheets->get_Item(WideString("Sheet1"));
  RangePtr          r   = ws->get_Range(WideString("C4:D11"));
  ExcelChartPtr     c = wb->ActiveChart;
  ExcelChart1->ConnectTo(c);
  ExcelChart1->SetSourceData(r, xlColumns);
  ExcelChart1->Location(xlLocationAsObject, WideString("Sheet1"));
  ExcelChart1->Set_HasTitle(0, TOLEBOOL(true));
  // Every thing works fine up to here. If I return here the chart will
  // appear in the Excel worksheet.

  // This next line causes an exception.
  TOLEBOOL b2 = ExcelChart1->Get_HasTitle(0);

 OLECHECK(..)   fails and we end up at    DebugHlpr_HRCHECK(...) with the
 HRESULT  parameter being -2147221080L (0x800401A8).

Any ideas?
Help!
Thanks in advance. 


7. Add icon to Window Title bar - CSharp/C#

8. Adding help button to Title bar in C#

How can i add a Help button (button with ? mark on it) on 
the title bar of an application in C#.