Click here to Skip to main content
15,796,299 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionProblem displaying CStatic text item Pin
ForNow30-Jun-15 9:09
ForNow30-Jun-15 9:09 
QuestionRe: Problem displaying CStatic text item Pin
jeron130-Jun-15 10:56
jeron130-Jun-15 10:56 
AnswerRe: Problem displaying CStatic text item Pin
ForNow30-Jun-15 11:11
ForNow30-Jun-15 11:11 
GeneralRe: Problem displaying CStatic text item Pin
jeron130-Jun-15 11:20
jeron130-Jun-15 11:20 
GeneralRe: Problem displaying CStatic text item Pin
ForNow30-Jun-15 11:38
ForNow30-Jun-15 11:38 
GeneralRe: Problem displaying CStatic text item Pin
jeron130-Jun-15 12:41
jeron130-Jun-15 12:41 
GeneralRe: Problem displaying CStatic text item Pin
ForNow30-Jun-15 12:57
ForNow30-Jun-15 12:57 
GeneralRe: Problem displaying CStatic text item Pin
jeron130-Jun-15 13:16
jeron130-Jun-15 13:16 
But the dialog and display controls in it don't care where the data comes from. Typically (at least for me), when I build a dialog using the resource editor, I place a static control on the dialog, just like I place edit boxes, list boxes, etc. I then create a variable associated with that static control (typically using a wizard), the variable could be a CString type or a control type. If I use a CString type variable, I use UpdateData(), if I use a control type variable I use SetWindowText() and that's about it. Seems like you might be making it unecessarily more complicated.
"the debugger doesn't tell me anything because this code compiles just fine" - random QA comment
"Facebook is where you tell lies to your friends. Twitter is where you tell the truth to strangers." - chriselst
"I don't drink any more... then again, I don't drink any less." - Mike Mullikins uncle

GeneralRe: Problem displaying CStatic text item Pin
ForNow30-Jun-15 13:49
ForNow30-Jun-15 13:49 
GeneralOne more thing forgot Pin
ForNow30-Jun-15 13:58
ForNow30-Jun-15 13:58 
GeneralRe: One more thing forgot Pin
Richard MacCutchan1-Jul-15 1:22
mveRichard MacCutchan1-Jul-15 1:22 
AnswerRe: Problem displaying CStatic text item Pin
David Crow30-Jun-15 17:43
David Crow30-Jun-15 17:43 
GeneralRe: Problem displaying CStatic text item Pin
ForNow30-Jun-15 18:06
ForNow30-Jun-15 18:06 
AnswerRe: Problem displaying CStatic text item Pin
David Crow1-Jul-15 3:03
David Crow1-Jul-15 3:03 
GeneralRe: Problem displaying CStatic text item Pin
ForNow1-Jul-15 4:36
ForNow1-Jul-15 4:36 
GeneralRe: Problem displaying CStatic text item Pin
David Crow1-Jul-15 4:41
David Crow1-Jul-15 4:41 
GeneralRe: Problem displaying CStatic text item Pin
jeron11-Jul-15 5:04
jeron11-Jul-15 5:04 
GeneralRe: Problem displaying CStatic text item Pin
ForNow1-Jul-15 6:19
ForNow1-Jul-15 6:19 
GeneralRe: Problem displaying CStatic text item Pin
jeron11-Jul-15 6:59
jeron11-Jul-15 6:59 
GeneralRe: Problem displaying CStatic text item Pin
ForNow1-Jul-15 11:21
ForNow1-Jul-15 11:21 
GeneralRe: Problem displaying CStatic text item Pin
jeron11-Jul-15 12:32
jeron11-Jul-15 12:32 
GeneralRe: Problem displaying CStatic text item Pin
ForNow1-Jul-15 13:19
ForNow1-Jul-15 13:19 
GeneralRe: Problem displaying CStatic text item Pin
ForNow2-Jul-15 14:27
ForNow2-Jul-15 14:27 
Questionrecv no blocking Pin
mosine29-Jun-15 22:33
mosine29-Jun-15 22:33 
AnswerRe: recv no blocking Pin
CPallini29-Jun-15 22:54
mveCPallini29-Jun-15 22:54 

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.