Click here to Skip to main content
15,887,453 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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
GeneralRe: Calling UpdateData(FALSE) will screw my RadioButton-group selection Pin
Nick Hodapp5-Jan-04 10:27
sitebuilderNick Hodapp5-Jan-04 10:27 
Generalsprintf formatting with conditional statement Pin
shultas5-Jan-04 8:45
shultas5-Jan-04 8:45 
GeneralRe: sprintf formatting with conditional statement Pin
Tyler Kellen5-Jan-04 8:49
Tyler Kellen5-Jan-04 8:49 
GeneralRe: sprintf formatting with conditional statement Pin
abc8765-Jan-04 8:57
abc8765-Jan-04 8:57 
GeneralRe: sprintf formatting with conditional statement Pin
Prakash Nadar5-Jan-04 16:08
Prakash Nadar5-Jan-04 16:08 
GeneralRe: sprintf formatting with conditional statement Pin
abc8765-Jan-04 19:47
abc8765-Jan-04 19:47 
GeneralRe: sprintf formatting with conditional statement Pin
Prakash Nadar5-Jan-04 20:15
Prakash Nadar5-Jan-04 20:15 
GeneralRe: sprintf formatting with conditional statement Pin
abc8765-Jan-04 20:34
abc8765-Jan-04 20:34 
GeneralRe: sprintf formatting with conditional statement Pin
Prakash Nadar5-Jan-04 21:28
Prakash Nadar5-Jan-04 21:28 
GeneralRe: sprintf formatting with conditional statement Pin
Ian Darling5-Jan-04 9:01
Ian Darling5-Jan-04 9:01 
GeneralRe: sprintf formatting with conditional statement Pin
Tyler Kellen5-Jan-04 9:05
Tyler Kellen5-Jan-04 9:05 
GeneralRe: sprintf formatting with conditional statement Pin
Jörgen Sigvardsson5-Jan-04 9:45
Jörgen Sigvardsson5-Jan-04 9:45 
GeneralRe: sprintf formatting with conditional statement Pin
Ian Darling5-Jan-04 9:53
Ian Darling5-Jan-04 9:53 
GeneralRe: sprintf formatting with conditional statement Pin
Jörgen Sigvardsson5-Jan-04 9:58
Jörgen Sigvardsson5-Jan-04 9:58 
GeneralRe: sprintf formatting with conditional statement Pin
Ian Darling5-Jan-04 10:06
Ian Darling5-Jan-04 10:06 
GeneralRe: sprintf formatting with conditional statement Pin
Prakash Nadar5-Jan-04 16:09
Prakash Nadar5-Jan-04 16:09 
GeneralRe: sprintf formatting with conditional statement Pin
shultas5-Jan-04 9:55
shultas5-Jan-04 9:55 

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.