Hi all!
i have created a button control activeX MFC, and created property 'Text' , it same 'caption' of basic button.
however, after i compile, use on VB.net, that ok. But C++ application MFC, caption not change now, but when i move it on design dialog, it changed.
i do not understand it.
plz help me !!!
i debug with tstcont.exe, apss form (VB.net), C++ MFC (: error)
what solution for it!
thanks so much!!!
BSTR CButtonViewCtrl::GetTex(void)
{
AFX_MANAGA_STATE(AfxGetStaticModuleState());
CString strResult;
_buttonView.GetWindowText(strResult);
return strResult.AllocSysString();
}
voidCButtonViewCtrl::SetTex(LPCTSTR newVal)
{
AFX_MANAGA_STATE(AfxGetStaticModuleState());
_buttonView.SetWindowText(newVal);
SetModifiedFlag();
}
it's difficult to know, so code is normal
it's worked normal on VB.net/ testContainer,apps win form...
but, on application MFC... it will be change caption when we move button on design dialog
again >"<</xml>