////////////////////////////////////////////////////////////////////////////////
//
// PropertyManagerObject -      
// PropertyManagerEvent  -     
//
////////////////////////////////////////////////////////////////////////////////
#ifndef _CPROPMEN_H
#define _CPROPMEN_H

#ifndef _ABASEEVENT_H
#include "abaseEvent.h"
#endif

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

//-------------------------------------------------------------------------------
//     
// ---
int LibMessage( int     strId, int flags ); //    
int LibMessage( LPCTSTR str,   int flags ); //    
 
//   COM 
void DumpError(_com_error& e);              //    
void ShowError();                           //      HRESULT 

////////////////////////////////////////////////////////////////////////////////
//
// PropertyManagerEvent -      
//
////////////////////////////////////////////////////////////////////////////////
class PropertyManagerEvent : public ABaseEvent
{

protected:
  // Attributes
public:
	PropertyManagerEvent( LPDISPATCH manager );           
  virtual ~PropertyManagerEvent();

// Operations
public:

  // prButtonClick        -  .  " OCX ."
  afx_msg BOOL ButtonClick( long buttonID );
  
  // prChangeControlValue - " OCX ."
  afx_msg BOOL ChangeControlValue( LPDISPATCH ctrl );

  // prControlCommand     -   
  afx_msg BOOL ControlCommand( LPDISPATCH  ctrl, long buttonID );

  // prButtonUpdate        -    .
  afx_msg BOOL ButtonUpdate ( long buttonID, long* check, VARIANT_BOOL* _enable);

// prProcessActivate    -  	
  afx_msg BOOL ProcessActivate();

// prProcessDeactivate  -  
  afx_msg BOOL ProcessDeactivate();

// prCommandHelp        -    .
  afx_msg BOOL CommandHelp( long buttonID );

  DECLARE_EVENTSINK_MAP()

};

/////////////////////////////////////////////////////////////////////////////

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif 
