// MainFrm.h : interface of the CMainFrame class
//
/////////////////////////////////////////////////////////////////////////////

#if !defined(AFX_MAINFRM_H__B1A6D98A_38B0_414D_BA3E_179F21EF6788__INCLUDED_)
#define AFX_MAINFRM_H__B1A6D98A_38B0_414D_BA3E_179F21EF6788__INCLUDED_

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

class CMainFrame : public CFrameWnd
{
  
protected: // create from serialization only
  CMainFrame();
  DECLARE_DYNCREATE(CMainFrame)

// Attributes
public:

// Operations
public:

// Overrides
  // ClassWizard generated virtual function overrides
  //{{AFX_VIRTUAL(CMainFrame)
  public:
  virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
  protected:
  virtual BOOL OnCommand(WPARAM wParam, LPARAM lParam);
  virtual BOOL OnCreateClient(LPCREATESTRUCT lpcs, CCreateContext* pContext);
  //}}AFX_VIRTUAL

// Implementation
public:
	void HideOwner( void );
	void EnsureOwnerExists(LPCTSTR name);
  void SelectOwner( void );
  void AddOwner( LPCTSTR owner );
  void RemoveAllOwners( void );
  void UpdateBars( void );
  void SetCountIndicator( UINT selected, UINT total );
  void SetErrIndicator( UINT errCount );
  void SetSizeIndicator( size_t selected, size_t total );
  virtual ~CMainFrame();
#ifdef _DEBUG
  virtual void AssertValid() const;
  virtual void Dump(CDumpContext& dc) const;
#endif

protected:  // control bar embedded members
  CStatusBar  m_wndStatusBar;
  CToolBar    m_wndToolBar;

  CSplitterWnd m_wndSplitter;

// Generated message map functions
protected:
  CDialogBar m_wndDialogBar;
  //{{AFX_MSG(CMainFrame)
  afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
  afx_msg void OnViewSettings();
	afx_msg void OnUserInfo();
	//}}AFX_MSG
  afx_msg void OnUpdateComboOwners(CCmdUI* pCmdUI);
  DECLARE_MESSAGE_MAP()
private:
	void UpdateOwnerIndicator( void );
	CString GetUserNameAt(int idx);
};

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

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

#endif // !defined(AFX_MAINFRM_H__B1A6D98A_38B0_414D_BA3E_179F21EF6788__INCLUDED_)
