Echelon LonMaker Uživatelský manuál Strana 278

  • 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 277
// AddRef-ed, jedoch nicht Released). Wenn also eine
// Kopie dieses Zeigers beibehalten wird, sollte die
// Kopie hier auch AddRef erhalten.
if (m_LcaDispatch != newValue) {
// Bereinigen und Freigeben des vorherigen Zeigers
if (m_LcaDispatch)
m_LcaDispatch->Release();
// Zuweisen und Verweiszählung des neuen Zeigers
m_LcaDispatch = newValue;
if (m_LcaDispatch)
m_LcaDispatch->AddRef();
// Löschen früherer Werte
SetLcaValue(COleVariant(_T("")));
}
}
BOOL CMyControl::GetLcaActive() {
return m_LcaActive;
}
void CMyControl::SetLcaActive(BOOL bNewValue) {
if (m_LcaActive != bNewValue) {
m_LcaActive = bNewValue;
// AUFGABE: Aktualisieren Sie den Überwachungsstatus
// wie erforderlich.
}
}
BSTR CMyControl::GetLcaSubsystemName() {
CString strResult (m_LcaSubsystemName);
return strResult.AllocSysString();
}
void CMyControl::SetLcaSubsystemName(LPCTSTR lpszNewValue)
{
if (m_LcaSubsystemName != lpszNewValue)
m_LcaSubsystemName = lpszNewValue;
}
BSTR CMyControl::GetLcaUserName() {
CString strResult (m_LcaUserName);
return strResult.AllocSysString();
}
void CMyControl::SetLcaUserName(LPCTSTR lpszNewValue) {
if (m_LcaUserName != lpszNewValue)
m_LcaUserName = lpszNewValue;
}
12-14 Erstellen von MMI-Anwendungen
Zobrazit stránku 277
1 2 ... 273 274 275 276 277 278 279 280 281 282 283 ... 317 318

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

Žádné komentáře