Click here to Skip to main content
15,898,036 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: How to change the Title(Caption) of Modal Dialog Box? Pin
mikert_200812-May-10 5:03
mikert_200812-May-10 5:03 
GeneralRe: How to change the Title(Caption) of Modal Dialog Box? Pin
CPallini12-May-10 5:07
mveCPallini12-May-10 5:07 
QuestionRe: How to change the Title(Caption) of Modal Dialog Box? Pin
David Crow12-May-10 5:19
David Crow12-May-10 5:19 
AnswerRe: How to change the Title(Caption) of Modal Dialog Box? Pin
mikert_200812-May-10 5:23
mikert_200812-May-10 5:23 
GeneralRe: How to change the Title(Caption) of Modal Dialog Box? Pin
Chris Meech12-May-10 6:52
Chris Meech12-May-10 6:52 
GeneralRe: How to change the Title(Caption) of Modal Dialog Box? Pin
David Crow12-May-10 8:34
David Crow12-May-10 8:34 
QuestionRe: How to change the Title(Caption) of Modal Dialog Box? Pin
David Crow12-May-10 8:37
David Crow12-May-10 8:37 
AnswerRe: How to change the Title(Caption) of Modal Dialog Box? Pin
Aescleal14-May-10 20:43
Aescleal14-May-10 20:43 
I had a quick scan through the answers below and you didn't seem that enamoured of any of them as you weren't using/couldn't use MFC.

Having said that you've already answered your own question...

mikert_2008 wrote:
One way I know to change the title of Modal Dialog Box is to use OnInitDialog() function of the class derived from the DialgBox and then call setwindowtext() function inside it.


If you look at the MFC documentation or read the source code you'll see that CDialog::OnInitDialog is called in response to a WM_INITDIALOG message being sent to the dialog box. All you have to do in your code is handle WM_INITDIALOG and call SetWindowText at that point.

Cheers,

Ash
QuestionRun time error Pin
john563212-May-10 3:43
john563212-May-10 3:43 
AnswerRe: Run time error Pin
Cedric Moonen12-May-10 4:05
Cedric Moonen12-May-10 4:05 
GeneralRe: Run time error Pin
john563212-May-10 4:17
john563212-May-10 4:17 
QuestionSync with specific outlook folder Pin
IAmRami12-May-10 3:26
IAmRami12-May-10 3:26 
AnswerRe: Sync with specific outlook folder - solution!!! Pin
IAmRami12-May-10 3:54
IAmRami12-May-10 3:54 
Questionmfc42u.pdb 'does not match' Pin
VictorSotnikov12-May-10 3:17
VictorSotnikov12-May-10 3:17 
QuestionObject layout of the Virtual Base class. Pin
nokia111012-May-10 2:53
nokia111012-May-10 2:53 
AnswerRe: Object layout of the Virtual Base class. Pin
CPallini12-May-10 3:09
mveCPallini12-May-10 3:09 
QuestionLoad PNG Images Pin
AbhiHcl12-May-10 2:36
AbhiHcl12-May-10 2:36 
AnswerRe: Load PNG Images Pin
Nuri Ismail12-May-10 3:00
Nuri Ismail12-May-10 3:00 
GeneralRe: Load PNG Images Pin
AbhiHcl12-May-10 3:17
AbhiHcl12-May-10 3:17 
GeneralRe: Load PNG Images Pin
AbhiHcl12-May-10 3:22
AbhiHcl12-May-10 3:22 
QuestionRe: Load PNG Images Pin
Nuri Ismail12-May-10 3:37
Nuri Ismail12-May-10 3:37 
AnswerRe: Load PNG Images Pin
AbhiHcl12-May-10 3:42
AbhiHcl12-May-10 3:42 
AnswerRe: Load PNG Images Pin
Nuri Ismail12-May-10 3:56
Nuri Ismail12-May-10 3:56 
QuestionHow to find the average, worst complexity of a code Pin
janani1312-May-10 2:32
janani1312-May-10 2:32 
QuestionRe: How to find the average, worst complexity of a code Pin
David Crow12-May-10 2:41
David Crow12-May-10 2:41 

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.