Click here to Skip to main content
15,914,419 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Deleting a returned array Pin
David Crow28-Aug-07 8:46
David Crow28-Aug-07 8:46 
QuestionIs it not possible to use SetWindowText() within ::OnInitDialog ? Pin
abiemann27-Aug-07 14:35
abiemann27-Aug-07 14:35 
AnswerRe: Is it not possible to use SetWindowText() within ::OnInitDialog ? Pin
Chris Losinger27-Aug-07 15:26
professionalChris Losinger27-Aug-07 15:26 
GeneralRe: Is it not possible to use SetWindowText() within ::OnInitDialog ? Pin
abiemann28-Aug-07 6:40
abiemann28-Aug-07 6:40 
GeneralRe: Is it not possible to use SetWindowText() within ::OnInitDialog ? Pin
Chris Losinger28-Aug-07 7:05
professionalChris Losinger28-Aug-07 7:05 
GeneralRe: Is it not possible to use SetWindowText() within ::OnInitDialog ? Pin
abiemann29-Aug-07 6:47
abiemann29-Aug-07 6:47 
AnswerRe: Is it not possible to use SetWindowText() within ::OnInitDialog ? Pin
sheshidar27-Aug-07 20:56
sheshidar27-Aug-07 20:56 
AnswerRe: Is it not possible to use SetWindowText() within ::OnInitDialog ? Pin
Iain Clarke, Warrior Programmer28-Aug-07 1:01
Iain Clarke, Warrior Programmer28-Aug-07 1:01 
As has been said, SetDlgItemText is the way to go if you only want to set the static's text once.

But your current problem is probably that DoDataExchange hasn't been called yet.

CDialog::OnInitDialog calls UpdateData (FALSE) which in turn calls DoDataExchange. I bet you've added your code before the CDialog::OnInitDialog that the MFC wizards put in for you.

Iain.



QuestionRe: Is it not possible to use SetWindowText() within ::OnInitDialog ? Pin
David Crow28-Aug-07 2:26
David Crow28-Aug-07 2:26 
QuestionPreTranslateMessage return assertion Pin
ArielR27-Aug-07 13:15
ArielR27-Aug-07 13:15 
QuestionRe: PreTranslateMessage return assertion Pin
Mark Salsbery27-Aug-07 13:40
Mark Salsbery27-Aug-07 13:40 
AnswerRe: PreTranslateMessage return assertion Pin
Nishad S27-Aug-07 22:08
Nishad S27-Aug-07 22:08 
GeneralRe: PreTranslateMessage return assertion Pin
ArielR28-Aug-07 1:13
ArielR28-Aug-07 1:13 
GeneralRe: PreTranslateMessage return assertion Pin
Nishad S29-Aug-07 2:17
Nishad S29-Aug-07 2:17 
GeneralRe: PreTranslateMessage return assertion Pin
ArielR29-Aug-07 9:22
ArielR29-Aug-07 9:22 
GeneralRe: PreTranslateMessage return assertion Pin
Nishad S29-Aug-07 17:45
Nishad S29-Aug-07 17:45 
QuestionInterface freezes breifly while using drop down menus Pin
Kiran Satish27-Aug-07 13:12
Kiran Satish27-Aug-07 13:12 
QuestionBlind SQL Injection Pin
half-life27-Aug-07 13:11
half-life27-Aug-07 13:11 
QuestionHow to simulate keyboard input in windows enviroment? Pin
zipliu27-Aug-07 8:20
zipliu27-Aug-07 8:20 
QuestionRe: How to simulate keyboard input in windows enviroment? Pin
David Crow27-Aug-07 8:52
David Crow27-Aug-07 8:52 
AnswerRe: How to simulate keyboard input in windows enviroment? Pin
zipliu27-Aug-07 12:27
zipliu27-Aug-07 12:27 
AnswerRe: How to simulate keyboard input in windows enviroment? Pin
Hamid_RT27-Aug-07 19:36
Hamid_RT27-Aug-07 19:36 
QuestionCImage declartion Pin
simon alec smith27-Aug-07 8:14
simon alec smith27-Aug-07 8:14 
AnswerRe: CImage declartion Pin
Mark Salsbery27-Aug-07 8:52
Mark Salsbery27-Aug-07 8:52 
AnswerRe: CImage declartion Pin
Hamid_RT27-Aug-07 18:51
Hamid_RT27-Aug-07 18:51 

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.