Echelon LonMaker Manuel d'utilisateur Page 279

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 318
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 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
Vue de la page 278
1 2 ... 274 275 276 277 278 279 280 281 282 283 284 ... 317 318

Commentaires sur ces manuels

Pas de commentaire