Echelon LonMaker Manual de usuario Pagina 279

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 318
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 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
Vista de pagina 278
1 2 ... 274 275 276 277 278 279 280 281 282 283 284 ... 317 318

Comentarios a estos manuales

Sin comentarios