Click here to Skip to main content
15,901,373 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: change th main caption of an application Pin
Mark Salsbery30-Dec-07 10:45
Mark Salsbery30-Dec-07 10:45 
GeneralRe: change th main caption of an application Pin
Schehaider_Aymen30-Dec-07 10:47
Schehaider_Aymen30-Dec-07 10:47 
GeneralRe: change th main caption of an application Pin
Mark Salsbery30-Dec-07 10:57
Mark Salsbery30-Dec-07 10:57 
GeneralRe: change th main caption of an application Pin
Schehaider_Aymen30-Dec-07 10:59
Schehaider_Aymen30-Dec-07 10:59 
GeneralRe: change th main caption of an application Pin
Schehaider_Aymen30-Dec-07 11:04
Schehaider_Aymen30-Dec-07 11:04 
QuestionRe: change th main caption of an application Pin
CPallini30-Dec-07 11:08
mveCPallini30-Dec-07 11:08 
GeneralRe: change th main caption of an application Pin
Schehaider_Aymen30-Dec-07 11:10
Schehaider_Aymen30-Dec-07 11:10 
GeneralRe: change th main caption of an application Pin
Mark Salsbery30-Dec-07 12:21
Mark Salsbery30-Dec-07 12:21 
That should have worked.

Change the window title wherever it's appropriate.

Changing it in a view class' OnInitialUpdate() might not be appropriate unless
you want the title to change every time a new view of that class is created.

OnPaint() is a bad choice since you most likely don't need to set the title
every time the window needs repainting.

If you want one title for the lifetime of the app, you could do it
when the main window is created (generally in your CWinApp-derived class'
InitInstance() override).

Also, if you're using the doc view architecture, MFC, by default, will adjust
the title when the active view changes. To avoid this behavior, change
the frame window style to exclude the FWS_ADDTOTITLE style. For info on how
to do that, see How To Change Window Attributes in an MFC Application[^].

Mark

Mark Salsbery
Microsoft MVP - Visual C++

Java | [Coffee]

Questionrun without .net framework? Pin
İsmail Durmaz30-Dec-07 7:54
İsmail Durmaz30-Dec-07 7:54 
GeneralRe: run without .net framework? Pin
CPallini30-Dec-07 8:05
mveCPallini30-Dec-07 8:05 
GeneralRe: run without .net framework? Pin
İsmail Durmaz30-Dec-07 8:09
İsmail Durmaz30-Dec-07 8:09 
GeneralRe: run without .net framework? Pin
CPallini30-Dec-07 8:15
mveCPallini30-Dec-07 8:15 
GeneralRe: run without .net framework? Pin
İsmail Durmaz30-Dec-07 8:21
İsmail Durmaz30-Dec-07 8:21 
GeneralRe: run without .net framework? Pin
CPallini30-Dec-07 9:28
mveCPallini30-Dec-07 9:28 
GeneralRe: run without .net framework? Pin
Paul Conrad30-Dec-07 8:09
professionalPaul Conrad30-Dec-07 8:09 
GeneralRe: run without .net framework? Pin
İsmail Durmaz30-Dec-07 8:13
İsmail Durmaz30-Dec-07 8:13 
GeneralRe: run without .net framework? Pin
Paul Conrad30-Dec-07 8:21
professionalPaul Conrad30-Dec-07 8:21 
GeneralRe: run without .net framework? Pin
İsmail Durmaz30-Dec-07 8:24
İsmail Durmaz30-Dec-07 8:24 
GeneralRe: run without .net framework? Pin
Paul Conrad30-Dec-07 8:26
professionalPaul Conrad30-Dec-07 8:26 
GeneralRe: run without .net framework? Pin
İsmail Durmaz30-Dec-07 8:32
İsmail Durmaz30-Dec-07 8:32 
GeneralRe: run without .net framework? Pin
Paul Conrad30-Dec-07 8:35
professionalPaul Conrad30-Dec-07 8:35 
GeneralRe: run without .net framework? Pin
İsmail Durmaz30-Dec-07 8:39
İsmail Durmaz30-Dec-07 8:39 
GeneralRe: run without .net framework? Pin
Paul Conrad30-Dec-07 8:41
professionalPaul Conrad30-Dec-07 8:41 
GeneralRe: run without .net framework? Pin
İsmail Durmaz30-Dec-07 8:44
İsmail Durmaz30-Dec-07 8:44 
GeneralRe: run without .net framework? Pin
Paul Conrad30-Dec-07 8:47
professionalPaul Conrad30-Dec-07 8:47 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.