Click here to Skip to main content
15,917,328 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: how to read data from text file Pin
David Crow30-Mar-04 2:06
David Crow30-Mar-04 2:06 
GeneralWeird Character Allocation Problem. Pin
HAHAHA_NEXT29-Mar-04 8:54
HAHAHA_NEXT29-Mar-04 8:54 
GeneralRe: Weird Character Allocation Problem. Pin
Alexander M.,29-Mar-04 8:58
Alexander M.,29-Mar-04 8:58 
GeneralRe: Weird Character Allocation Problem. Pin
HAHAHA_NEXT29-Mar-04 9:00
HAHAHA_NEXT29-Mar-04 9:00 
GeneralRe: Weird Character Allocation Problem. Pin
David Crow29-Mar-04 10:03
David Crow29-Mar-04 10:03 
GeneralRe: Weird Character Allocation Problem. Pin
HAHAHA_NEXT29-Mar-04 10:08
HAHAHA_NEXT29-Mar-04 10:08 
GeneralRe: Weird Character Allocation Problem. Pin
Neville Franks29-Mar-04 10:33
Neville Franks29-Mar-04 10:33 
QuestionHow to get Dialog window to show updated value ? Pin
glweid29-Mar-04 8:53
glweid29-Mar-04 8:53 
I have a derived Dialog class - CGeneralStatus that has a CString variable. If I set the string before I create the CGeneralStatus dialog it is displayed OK. When I set this string to different value the value in the window does not get changed. Even if I close and reopen the dialog window the value does not change.

Any input is greatly appreciated !

------------------------------------------------------------------------

Application code:

void CFV3TaskMonApp::OnGeneralstatus()
{
if(IsShowingGeneral())
{
HideGeneral();
}
else
{
ShowGeneral(m_pMainWnd->GetActiveWindow());
}
}

void CFV3TaskMonApp::ShowGeneral(CWnd* parent)
{

if (!::IsWindow(*m_generalStatus))
{
m_generalStatus->Create(IDD_GeneralStatus, parent);
}

m_generalStatus->GeneralChanged(); // update the string
m_generalStatus->ShowWindow(1);
}

Code snippet to update the string value before calling ShowWindow(1):

void CGeneralStatus::GeneralChanged()
{
CString out;
out.Format("%d",m_app->m_numConnections);
m_connAttempts = out;

if (::IsWindow(this->GetSafeHwnd()))
{
::PostMessage(this->GetSafeHwnd(),UWM_STATUS_UPDATEGENERAL,0,0);
}

}
AnswerRe: How to get Dialog window to show updated value ? Pin
David Crow29-Mar-04 9:54
David Crow29-Mar-04 9:54 
GeneralRe: How to get Dialog window to show updated value ? Pin
Anonymous29-Mar-04 10:20
Anonymous29-Mar-04 10:20 
GeneralRe: How to get Dialog window to show updated value ? Pin
David Crow29-Mar-04 10:24
David Crow29-Mar-04 10:24 
GeneralPower Management Pin
Alexander M.,29-Mar-04 8:50
Alexander M.,29-Mar-04 8:50 
GeneralRe: Power Management Pin
David Crow29-Mar-04 9:49
David Crow29-Mar-04 9:49 
GeneralRe: Power Management Pin
Neville Franks29-Mar-04 10:52
Neville Franks29-Mar-04 10:52 
GeneralRe: Power Management Pin
Alexander M.,30-Mar-04 7:20
Alexander M.,30-Mar-04 7:20 
GeneralNo Resize Pin
sschilachi29-Mar-04 8:13
sschilachi29-Mar-04 8:13 
GeneralRe: No Resize Pin
Prakash Nadar29-Mar-04 8:26
Prakash Nadar29-Mar-04 8:26 
GeneralRe: No Resize Pin
sschilachi29-Mar-04 8:31
sschilachi29-Mar-04 8:31 
GeneralRe: No Resize Pin
Prakash Nadar29-Mar-04 15:27
Prakash Nadar29-Mar-04 15:27 
GeneralRe: No Resize Pin
David Crow29-Mar-04 8:46
David Crow29-Mar-04 8:46 
GeneralRe: No Resize Pin
Rick York29-Mar-04 14:41
mveRick York29-Mar-04 14:41 
GeneralChange Propertysheet Color Pin
kimiko29-Mar-04 7:20
kimiko29-Mar-04 7:20 
GeneralRe: Change Propertysheet Color Pin
David Crow29-Mar-04 7:57
David Crow29-Mar-04 7:57 
GeneralRe: Change Propertysheet Color Pin
Prakash Nadar29-Mar-04 8:28
Prakash Nadar29-Mar-04 8:28 
Generalusing iterator to count though vector Pin
wadstar29-Mar-04 6:29
wadstar29-Mar-04 6:29 

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.