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

C / C++ / MFC

 
GeneralRe: MFC, No Windows Pin
Mark Salsbery30-Dec-07 14:29
Mark Salsbery30-Dec-07 14:29 
GeneralRe: MFC, No Windows Pin
ThatsAlok30-Dec-07 19:13
ThatsAlok30-Dec-07 19:13 
GeneralRe: MFC, No Windows Pin
Gary R. Wheeler31-Dec-07 1:35
Gary R. Wheeler31-Dec-07 1:35 
GeneralRe: MFC, No Windows Pin
Bram van Kampen31-Dec-07 12:47
Bram van Kampen31-Dec-07 12:47 
Generalchange th main caption of an application Pin
Schehaider_Aymen30-Dec-07 10:24
Schehaider_Aymen30-Dec-07 10:24 
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 
When a window is created, you get a window handle (HWND).
You can use that handle in a call to SetWindowText():
::SetWindowText(hwnd, _T("My Window Title"));

If you're using MFC, and you've created your main window in
the usual way, you can use something like this:
if (AfxGetApp()->GetMainWnd())
   AfxGetApp()->GetMainWnd()->SetWindowText(_T("My Window Title"));


No message handlers are necessary - just call it.

Mark

Mark Salsbery
Microsoft MVP - Visual C++

Java | [Coffee]

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

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.