Echelon LonMaker Instrukcja Użytkownika Strona 279

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 318
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 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
Przeglądanie stron 278
1 2 ... 274 275 276 277 278 279 280 281 282 283 284 ... 317 318

Komentarze do niniejszej Instrukcji

Brak uwag