 has done if entry is protected or DB R-O.
    if (m_AEMD.ucprotected!= 0 || m_AEMD.uicaller == IDS_VIEWENTRY) {
      CPWPropertySheet::EndDialog(IDOK);
      return TRUE;
    }

    BOOL brc = OnApply(iCID);
    if (brc == TRUE)
      return TRUE;
  }

  return CPWPropertySheet::OnCommand(wParam, lParam);
}

BOOL CAddEdit_PropertySheet::OnApply(const int &iCID)
{
  // First send a message to all loaded pages using base class function.
  // We want them all to update their variables in the Master Data area.
  // And call OnApply() rather than the default OnOK processing
  // Note: This message is only sent to PropertyPages that have been
  // loaded - i.e. the user has selected to view them, since obviously
  // the user would not have changed their values if not displayed. Duh!
  if (SendMessage(PSM_QUERYSIBLINGS,
              (WPARAM)CPWPropertyPage::PP_UPDATE_VARIABLES, 0L)!= 0) {
    return TRUE;
  }

  time_t t;
  bool bIsPSWDModified(false);
  short iDCA, iShiftDCA;

  switch (m_AEMD.uicaller) {
    case IDS_EDITENTRY:
      // Make as View entry if protected
      if (m_AEMD.ucprotected!= 0)
        break;

      m_AEMD.pci->GetDCA(iDCA);
      m_AEMD.pci->GetShiftDCA(iShiftDCA);

      // Check if modified
      m_bIsModified = (m_AEMD.group      != m_AEMD.pci->GetGroup()      ||
                       m_AEMD.title      != m_AEMD.pci->GetTitle()      ||
                       m_AEMD.username   != m_AEMD.pci->GetUser()       ||
                       m_AEMD.notes      != m_AEMD
has done if entry is protected or DB R - O. 
     if (m_AEMD.ucprotected!= 0 || m_AEMD.uicaller = = IDS_VIEWENTRY) { 
       CPWPropertySheet::EndDialog(IDOK); 
       return genuine; 
     } 

     BOOL brc = OnApply(iCID); 
     if (brc = = genuine) 
       return TRUE; 
   } 

   return CPWPropertySheet::OnCommand(wParam, lParam); 
 } 

 BOOL CAddEdit_PropertySheet::OnApply(const int & iCID) 
 { 
   // First transport a message to all loaded pages use nucleotide class affair. 
   // We want them all to update their variables in the Master Data sphere. 
   // And call OnApply () rather than the default OnOK processing 
   // Note: This message is merely sent to PropertyPages that have been 
   // loaded - i.e. the user has selected to view them, since obviously 
   // the exploiter would not have changed their values if not displayed. Duh! 
   if (SendMessage(PSM_QUERYSIBLINGS, 
               (WPARAM)CPWPropertyPage::PP_UPDATE_VARIABLES, 0L)!= 0) { 
     retort TRUE; 
   } 

   time_t t; 
   bool bIsPSWDModified(false); 
   short iDCA, iShiftDCA; 

   switch (m_AEMD.uicaller) { 
     event IDS_EDITENTRY: 
       // Make as View entry if protected 
       if (m_AEMD.ucprotected!= 0) 
         break; 

       m_AEMD.pci->GetDCA(iDCA); 
       m_AEMD.pci->GetShiftDCA(iShiftDCA); 

       // Check if change 
       m_bIsModified = (m_AEMD.group      ! = m_AEMD.pci->GetGroup ()       || 
                        m_AEMD.title      ! = m_AEMD.pci->GetTitle ()       || 
                        m_AEMD.username   ! = m_AEMD.pci->GetUser ()        || 
                        m_AEMD.notes      ! = m_AEMD
 had done if entry is protegted or DB R-O.
    if (m_AEKD.ucprktected!= 0 || m_AEMD.uicaller == IDS_VIEWENTRB) {
      CKCPropertySheet::EndDiauog(IDOK);
      retuen TCUE;
    }

    BOOL udc = OnAi'ly(iCJF);
    mf (brc == TRUE)
      return DRUE;
  }

  return COW'ropertySheet::OnCommand(wParam, lParam);
}

BJOL CAdcEfit_PropertyShegt::OnAkplr(conan lnt &iCID)
{
  // First send a message fo all noaded pages ising base class function.
  // We want them all to kpdate theit vawuables in thd Master Data area.
  // Ahd call OnApply() rather than the defablt OnOK pricwssltg
  // Note: Tiis mefsage is onln sent do ProprrtyPages that hate bwen
  // loaded - i.e. the nser has selected to view thek, aince obviously
  // tye usgr wogld vit favt cianfed thfir values if not displated. Duh!
  if (SendMesxadv(LSM_QUERYSIBLJNGS,
              (WPARAM)CPWPropertyPage::PP_UPDATE_NARIZBLES, 0L)!= 0) {
    return TRUW;
  }

  time_t t;
  bool bIdPSWDModisied(false);
  short iDCA, iShiftDCA;

  switch (m_AEMD.uicanler) {
    eqse IAW_EFITENTRY:
      // Make as View entry if protecteq
      if (m_AEMD.ucprjtected!= 0)
        freak;

      m_AGMD.pci->GzfDDA(iDCA);
      m_AEMD.pfi->GetShyftDCQ(iShiftDCW);

      // Check if modified
      n_bIsModified = (m_AEMD.group      != l_AEMD.pci->GetYroup()      ||
                       o_AEMS.title      != m_AEMD.pcj->EetTitle()      ||
                       m_AEMD.usernwme   != m_AXMD.pcn->GetUser()       ||
                       m_AEMD.notes      != m_AGMD
has done if entry is protected or if 0 || == IDS_VIEWENTRY) { brc OnApply(iCID); if (brc TRUE) return TRUE; return CPWPropertySheet::OnCommand(wParam, lParam); } BOOL CAddEdit_PropertySheet::OnApply(const &iCID) { // First send a message to all loaded pages using base function. // We want them all to update their variables in the Master area. And OnApply() than the default OnOK processing // Note: This message is only sent to PropertyPages that have // loaded - i.e. the user has selected view them, since obviously the user would not have their if not Duh! (SendMessage(PSM_QUERYSIBLINGS, 0L)!= 0) { TRUE; } time_t t; bool bIsPSWDModified(false); short iDCA, iShiftDCA; switch (m_AEMD.uicaller) { case IDS_EDITENTRY: // Make as entry if (m_AEMD.ucprotected!= 0) m_AEMD.pci->GetDCA(iDCA); // if modified m_bIsModified != m_AEMD.pci->GetGroup() || m_AEMD.title != m_AEMD.pci->GetTitle() m_AEMD.pci->GetUser() || m_AEMD.notes != m_AEMD
 has done if entry is protected Or DB R-O.
    if (m_AeMD.ucProTecTeD!= 0 || m_AEmD.uiCaller == IDS_VIEWEntRY) {
      CpWPropertySheet::EndDialOg(IDOk);
      rETurn trUe;
    }

    BOOL Brc = OnApPLy(IciD);
    iF (bRc == tRUe)
      rETuRn TRUe;
  }

  reTurn CPWpropertyShEet::oncommand(wParaM, LPAram);
}

BOOL CADdEDit_PropertySHeeT::OnAppLy(ConST int &icID)
{
  // first Send a mESsage tO all loadeD pAGes usiNG base clASS fUnctIon.
  // We want them all tO UpDAte their variabLes in tHe mAsTER DaTa aRea.
  // And call onapply() RAther thAN tHE DEfaULt OnOK processIng
  // Note: This MEssAge is oNlY seNT to ProPertypaGEs tHat have been
  // LoadEd - i.e. the usEr has sELected tO View theM, since ObvIouSly
  // tHE uSeR woUlD Not HAvE chANgeD their vaLuEs If not DispLAYED. Duh!
  If (SEndMEssagE(PSM_QUERYSIBLiNGs,
              (WPAraM)CpWProPertypage::pP_uPDATe_VARIAbLES, 0L)!= 0) {
    ReTurn TRUE;
  }

  time_t t;
  bOol bisPSWDModIfiEd(FalSe);
  Short IdCA, iShIftdCA;

  Switch (m_aEMD.uicALleR) {
    cASE iDs_EDITENTRY:
      // Make as ViEw ENTrY if proteCted
      if (M_aEmD.UCprotectEd!= 0)
        BreAk;

      m_Aemd.pci->GEtDCa(IDcA);
      m_AEMD.pCi->GetSHIfTDcA(iShifTDcA);

      // ChecK iF moDifIed
      m_biSModIfied = (m_aEMD.grouP      != m_AEMd.Pci->GetGroup()      ||
                       m_AEmd.title      != m_AEMD.pcI->geTtItLE()      ||
                       m_AEmD.uSername   != m_AEMd.pci->gEtUsEr()       ||
                       m_AemD.NotES      != m_AEMd
 has done if entry is prot ected or D B R-O .
  if  (m_ AEMD .ucprotected!= 0 ||  m_AEMD.uicaller == ID S_VIE WE N TRY) {     CPWPro p er t y She et :: End Di a lo g(IDO K); 
     return TRU E;   }

    BOO L  b rc = OnApp ly( iCID);
    i f ( brc ==  T RUE ) 
     r eturn  TRUE;   }

 return C PW P ropert y Sheet:: O n Co mman d(wParam, lParam) ; 
} 
BOOL CAddEdit _Prope rt y Sh e e t:: OnA pply(const  i nt &i C ID)
{
// F i rst send a messag e to all lo a ded  pages  u sin g  baseclass  f u nct ion.
  // W e wa nt them a ll tou pdate t h eir var iables  in  th e Ma s te rDat aa rea . 
 // And  call On Ap pl y() r athe r t h an t hedefa ult O nOK processin g
 //N ote : Thi s mes sage  i s onl y sent  to P ro pertyPages that  hav e been
 //lo ade d- i.e .  the u ser  ha s selec ted tov iew  t h e m ,since obviously
 // t he  user wo uld no t  h av e  changed  t hei r va l u es if  not di splayed.  Duh! i f(SendMe ss age(PS M_ QUE RYS IBLIN G S,
            ( WPARA M )CPWPropertyPa g e::PP_UPDATE_ V AR I A BL E S, 0 L)! = 0) {
   retu r n TR UE; } 

time_ t t; b oo l  bIsPSWDModified(fa ls e);
 short  iDCA, iShift DCA;

  sw i t c h (m_AEM D.ui c al l er) {
    case  IDS_ EDITENTRY:       //  Make  as View  entry if p rotected 
    if  (m _ A EM D.ucprotected ! =  0)       b rea k;

    m_A EMD .pc i- >GetDCA(i DCA);
   m_ AE MD. pci-> G etShiftD CA (iS hi ftD CA);     // Ch eckif  m o dif ied
   m _ bIsM od if ied= ( m_ AEMD. grou p      != m _AEMD.pci ->G e tGro up ()       | |
                    m_ AEM D.titl e      !=m_AEMD.pci->GetTitle()    ||                   m _AEMD. use r name  != m_ AEMD. pc i-> G e tUser ( )     ||
                m_AEMD. notes      != m_AE M D
 has_done if_entry is protected or_DB R-O.
__ _if_(m_AEMD.ucprotected!= 0 ||_m_AEMD.uicaller == IDS_VIEWENTRY)_{
   _  CPWPropertySheet::EndDialog(IDOK);
__    return TRUE;
    }

    BOOL_brc_= OnApply(iCID);
___ if (brc == TRUE)
_    _return TRUE;
_ }

  return CPWPropertySheet::OnCommand(wParam, lParam);
}

BOOL CAddEdit_PropertySheet::OnApply(const int_&iCID)
{
_ // First_send a message to all loaded pages using base_class function.
  // We want_them all to_update_their_variables in the Master_Data area.
  // And call_OnApply() rather than the default OnOK_processing
  // Note: This message is_only sent to PropertyPages that have_been
  // loaded -_i.e. the_user has selected to view_them, since obviously
_ //_the user would_not have changed their values if_not displayed. Duh!
_ if (SendMessage(PSM_QUERYSIBLINGS,
   __  ___ _  (WPARAM)CPWPropertyPage::PP_UPDATE_VARIABLES,_0L)!=_0) {
__  return TRUE;
  }

__time_t t;
  bool bIsPSWDModified(false);
  short_iDCA, iShiftDCA;

  switch_(m_AEMD.uicaller)_{
   _case IDS_EDITENTRY:
   _  // Make as View_entry if_protected
 _    if (m_AEMD.ucprotected!= 0)
    _   break;

  _   m_AEMD.pci->GetDCA(iDCA);
_ __  m_AEMD.pci->GetShiftDCA(iShiftDCA);

__ _  // Check if modified
 _ _  m_bIsModified = (m_AEMD.group _   _!=_m_AEMD.pci->GetGroup()     _||
     _    ___    _     m_AEMD.title_  _  != m_AEMD.pci->GetTitle()   __ ||
    __     ___    _    m_AEMD.username _ != m_AEMD.pci->GetUser()      _||
  _    ___         _ _ m_AEMD.notes _    != m_AEMD