Echelon LonMaker Uživatelský manuál Strana 279

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 318
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 278
VARIANT CMyControl::GetLcaValue() {
return COleVariant(InternalGetText());
//der LCA-Wert ist der/die CmyControl-Text/Überschrift
}
void CMyControl::SetLcaValue(const VARIANT FAR& newValue)
{
COleVariant vaLcaValue = newValue;
// Wert in Textformat ändern
vaLcaValue.ChangeType(VT_BSTR);
ASSERT(vaLcaValue.vt == VT_BSTR);
CString strLcaValue(vaLcaValue.bstrVal);
// Überprüfen, ob der Text abweicht
if (strLcaValue != InternalGetText()) {
// Text des Steuerelements festlegen
SetTextNoModify(strLcaValue);
// das ist eine gebundene Eigenschaft -
// Clients zu Änderung benachrichtigen
BoundPropertyChanged(dispidLcaValue);
}
}
LonMaker Benutzerhandbuch 12-15
Zobrazit stránku 278
1 2 ... 274 275 276 277 278 279 280 281 282 283 284 ... 317 318

Komentáře k této Příručce

Žádné komentáře