Click here to Skip to main content
15,918,617 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: How to use! Pin
abc8765-Jan-04 20:07
abc8765-Jan-04 20:07 
QuestionHow can I produce a report ... Pin
Qadddd5-Jan-04 12:13
Qadddd5-Jan-04 12:13 
AnswerRe: How can I produce a report ... Pin
Jörgen Sigvardsson5-Jan-04 12:49
Jörgen Sigvardsson5-Jan-04 12:49 
GeneralRe: How can I produce a report ... Pin
Qadddd5-Jan-04 22:20
Qadddd5-Jan-04 22:20 
GeneralRe: How can I produce a report ... Pin
Jörgen Sigvardsson5-Jan-04 23:47
Jörgen Sigvardsson5-Jan-04 23:47 
GeneralRe: How can I produce a report ... Pin
Qadddd16-Feb-04 13:00
Qadddd16-Feb-04 13:00 
GeneralProper organization of .cpp and .h files. Pin
blackmesa5-Jan-04 11:59
blackmesa5-Jan-04 11:59 
GeneralRe: Proper organization of .cpp and .h files. Pin
Jörgen Sigvardsson5-Jan-04 12:51
Jörgen Sigvardsson5-Jan-04 12:51 
Generalproblem with gethostbyaddr Pin
Chernobog15-Jan-04 11:47
Chernobog15-Jan-04 11:47 
GeneralRe: problem with gethostbyaddr Pin
Jörgen Sigvardsson6-Jan-04 0:15
Jörgen Sigvardsson6-Jan-04 0:15 
GeneralRe: problem with gethostbyaddr Pin
David Crow6-Jan-04 5:07
David Crow6-Jan-04 5:07 
GeneralRe: problem with gethostbyaddr Pin
Chernobog17-Jan-04 12:22
Chernobog17-Jan-04 12:22 
GeneralNewbie C++ question Pin
Anonymous5-Jan-04 11:26
Anonymous5-Jan-04 11:26 
GeneralRe: Newbie C++ question Pin
Ian Darling5-Jan-04 11:43
Ian Darling5-Jan-04 11:43 
GeneralRe: Newbie C++ question Pin
Jörgen Sigvardsson5-Jan-04 12:53
Jörgen Sigvardsson5-Jan-04 12:53 
GeneralRe: Newbie C++ question Pin
David Crow6-Jan-04 5:16
David Crow6-Jan-04 5:16 
GeneralNewbie C++ question Pin
Anonymous5-Jan-04 11:25
Anonymous5-Jan-04 11:25 
QuestionHow to monitor file operations Pin
shaomin5-Jan-04 10:37
shaomin5-Jan-04 10:37 
AnswerRe: How to monitor file operations Pin
Ravi Bhavnani5-Jan-04 11:48
professionalRavi Bhavnani5-Jan-04 11:48 
GeneralRe: How to monitor file operations Pin
shaomin8-Jan-04 12:55
shaomin8-Jan-04 12:55 
GeneralCalling UpdateData(FALSE) will screw my RadioButton-group selection Pin
andreir235-Jan-04 9:33
andreir235-Jan-04 9:33 
GeneralRe: Calling UpdateData(FALSE) will screw my RadioButton-group selection Pin
abc8765-Jan-04 10:05
abc8765-Jan-04 10:05 
GeneralRe: Calling UpdateData(FALSE) will screw my RadioButton-group selection Pin
David Crow5-Jan-04 10:13
David Crow5-Jan-04 10:13 
GeneralRe: Calling UpdateData(FALSE) will screw my RadioButton-group selection Pin
andreir235-Jan-04 11:17
andreir235-Jan-04 11:17 
GeneralRe: Calling UpdateData(FALSE) will screw my RadioButton-group selection Pin
abc8765-Jan-04 20:20
abc8765-Jan-04 20:20 
andreir23 wrote:
I mean I mapped thru ClassWizard a CString to that static text control named m_Source.


Dont map a CString to that static text control. Map a CStatic to that static text control m_source( Just select Control in the combobox where u map a variable, it will autmatically show CStatic in the datatype field)

Now if u just want to change the text of static control, and want other controls like radio to remain unchanged, just call this function
<br />
 m_source.SetWindowText("My Text!!");<br />

It will modify its contents and update it visually.. Now to retrieve the text from static control call
<br />
 CString str;<br />
 m_source.GetWindowText(str);<br />


OR
U can also use

<br />
SendMessage(m_source.GetSafeHwnd(),WM_SETTEXT,(WPARAM)0,(LPARAM)"My Text"); <br />


to achieve the same task *visually updating static text without chaning any
other control.

This will definately solve your problem..

Smile | :)


Muhammad Shoaib Khan
http://geocities.com/lansolution

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.