Click here to Skip to main content
15,923,789 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: help using SetBitmap, CButton - Urgent Pin
Rafael Fernández López20-Oct-03 8:26
Rafael Fernández López20-Oct-03 8:26 
GeneralRe: help using SetBitmap, CButton - Urgent Pin
swerajan20-Oct-03 8:36
swerajan20-Oct-03 8:36 
GeneralRe: help using SetBitmap, CButton - Urgent Pin
Rafael Fernández López20-Oct-03 8:51
Rafael Fernández López20-Oct-03 8:51 
GeneralRe: help using SetBitmap, CButton - Urgent Pin
DaFrawg26-Oct-03 3:27
DaFrawg26-Oct-03 3:27 
Generalupdating Text Pin
K. Shaffer20-Oct-03 6:25
K. Shaffer20-Oct-03 6:25 
GeneralRe: updating Text Pin
Michael P Butler20-Oct-03 6:37
Michael P Butler20-Oct-03 6:37 
GeneralRe: updating Text Pin
K. Shaffer20-Oct-03 6:46
K. Shaffer20-Oct-03 6:46 
GeneralRe: updating Text Pin
Rafael Fernández López20-Oct-03 8:12
Rafael Fernández López20-Oct-03 8:12 
Well, there is another way instead of using control variables:

From MSDN:

<br />
CWnd::SetDlgItemText(int nID, LPCTSTR lpszString);<br />


So you would be able to type and run this:

<br />
SetDlgItemText(MY_RESOURCE, "I am alive");<br />


Applying this to your source code would be:

<br />
// m_chart = "Chart1";<br />
// UpdateData(FALSE)<br />
SetDlgItemText(MY_RESOURCE, "This is my first text");<br />
Sleep(1000);<br />
// m_chart = "Chart2";<br />
// UpdateData(FALSE)<br />
SetDlgItemText(MY_RESOURCE, "This is my second text");<br />
Sleep(1000);<br />


Hope it helped.


Written by: Rafael Fernández López.


void life ( bool me, bool her )
{

while ( her )
{
me = true ;
}
else
{
me = false ;
}
}

QuestionHow to determine the focused control? Pin
User-37793620-Oct-03 6:23
User-37793620-Oct-03 6:23 
AnswerRe: How to determine the focused control? Pin
Michael P Butler20-Oct-03 6:40
Michael P Butler20-Oct-03 6:40 
AnswerRe: How to determine the focused control? Pin
Rafael Fernández López20-Oct-03 6:40
Rafael Fernández López20-Oct-03 6:40 
GeneralRe: How to determine the focused control? Pin
User-37793621-Oct-03 6:56
User-37793621-Oct-03 6:56 
GeneralBandwidth Limiting Pin
Blade[DMS]20-Oct-03 6:02
Blade[DMS]20-Oct-03 6:02 
GeneralRe: Bandwidth Limiting Pin
Trollslayer20-Oct-03 6:24
mentorTrollslayer20-Oct-03 6:24 
GeneralRe: Bandwidth Limiting Pin
Blade[DMS]20-Oct-03 6:40
Blade[DMS]20-Oct-03 6:40 
GeneralRe: Bandwidth Limiting Pin
Libish Varghese Jacob18-Jul-12 1:07
Libish Varghese Jacob18-Jul-12 1:07 
GeneralDocument class Pin
Keck20-Oct-03 5:28
Keck20-Oct-03 5:28 
GeneralRe: Document class Pin
John M. Drescher20-Oct-03 5:44
John M. Drescher20-Oct-03 5:44 
GeneralRe: Document class Pin
Keck20-Oct-03 6:12
Keck20-Oct-03 6:12 
QuestionHow to block Net access Pin
Mourad DEBBAH20-Oct-03 4:55
Mourad DEBBAH20-Oct-03 4:55 
AnswerRe: How to block Net access Pin
Joe Woodbury20-Oct-03 6:05
professionalJoe Woodbury20-Oct-03 6:05 
AnswerRe: How to block Net access Pin
Ravi Bhavnani20-Oct-03 6:32
professionalRavi Bhavnani20-Oct-03 6:32 
AnswerRe: How to block Net access Pin
David Crow20-Oct-03 7:44
David Crow20-Oct-03 7:44 
GeneralRe: How to block Net access Pin
Mourad DEBBAH21-Oct-03 5:41
Mourad DEBBAH21-Oct-03 5:41 
QuestionOnHScroll for CSliderCtrl runs 3 times - why? Pin
ns20-Oct-03 4:43
ns20-Oct-03 4:43 

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.