// CommandBarsDesignerDesignerView.h // // (c)1998-2025 Codejock Software, All Rights Reserved. // // THIS SOURCE FILE IS THE PROPERTY OF CODEJOCK SOFTWARE AND IS NOT TO BE // RE-DISTRIBUTED BY ANY MEANS WHATSOEVER WITHOUT THE EXPRESSED WRITTEN // CONSENT OF CODEJOCK SOFTWARE. // // THIS SOURCE CODE CAN ONLY BE USED UNDER THE TERMS AND CONDITIONS OUTLINED // IN THE XTREME TOOLKIT PRO LICENSE AGREEMENT. CODEJOCK SOFTWARE GRANTS TO // YOU (ONE SOFTWARE DEVELOPER) THE LIMITED RIGHT TO USE THIS SOFTWARE ON A // SINGLE COMPUTER. // // CONTACT INFORMATION: // support@codejock.com // http://www.codejock.com // ///////////////////////////////////////////////////////////////////////////// #if !defined(AFX_COMMANDBARSDESIGNERPREVIEWVIEW_H__BC5E3607_EDDC_4AA8_B796_D69BFEBE79EF__INCLUDED_) # define AFX_COMMANDBARSDESIGNERPREVIEWVIEW_H__BC5E3607_EDDC_4AA8_B796_D69BFEBE79EF__INCLUDED_ # if _MSC_VER > 1000 # pragma once # endif // _MSC_VER > 1000 class CCommandBarsDesignerDoc; ///////////////////////////////////////////////////////////////////////////// // CCommandBarsDesignerPreviewView view class CCommandBarsDesignerPreviewView : public CView , private IIPCChannelCallback , public IEmbeddedFramePreview { protected: // create from serialization only CCommandBarsDesignerPreviewView(); DECLARE_DYNCREATE(CCommandBarsDesignerPreviewView) // Attributes public: CCommandBarsDesignerDoc* GetDocument(); // Operations public: // Overrides // ClassWizard generated virtual function overrides //{{AFX_VIRTUAL(CCommandBarsDesignerPreviewView) virtual void OnDraw(CDC* pDC); // overridden to draw this view virtual BOOL PreCreateWindow(CREATESTRUCT& cs); virtual void OnInitialUpdate(); virtual BOOL OnWndMsg(UINT message, WPARAM wParam, LPARAM lParam, LRESULT* pResult); virtual void OnActivateView(BOOL bActivate, CView* pActivateView, CView* pDeactiveView); //}}AFX_VIRTUAL private: // IIPCChannelCallback overrides virtual void OnIPCPeerConnected(); virtual LRESULT OnIPCNotificationReceived(WORD wCode, LPARAM lParam); virtual LRESULT OnIPCDataReceived(WORD wCode, const void* pData, SIZE_T cbSize); virtual void OnIPCPeerDisconnected(); // IEmbeddedFramePreview virtual void OnSetPreviewSettings(const PREVIEW_SETTINGS* pSettings); virtual void OnCommandBarsUpdated(LPCTSTR xmlData); virtual void OnTitleUpdated(LPCTSTR lpTitle); virtual void OnWorkspaceColorUpdated(COLORREF crBackground); virtual void OnHideMenu(); public: // Implementation virtual ~CCommandBarsDesignerPreviewView(); # ifdef _DEBUG virtual void AssertValid() const; virtual void Dump(CDumpContext& dc) const; # endif protected: void InitPreviewHost(); BOOL m_bWaitingForPreviewHost; CWnd m_wndPreviewHost; CIPCChannel* m_pChannel; // Generated message map functions protected: //{{AFX_MSG(CCommandBarsDesignerDesignerView) afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct); //}}AFX_MSG DECLARE_MESSAGE_MAP() }; ///////////////////////////////////////////////////////////////////////////// # ifndef _DEBUG // debug version in CommandBarsDesignerView.cpp inline CCommandBarsDesignerDoc* CCommandBarsDesignerPreviewView::GetDocument() { return (CCommandBarsDesignerDoc*)m_pDocument; } # endif //{{AFX_INSERT_LOCATION}} // Microsoft Visual C++ will insert additional declarations immediately before the previous line. #endif // !defined(AFX_COMMANDBARSDESIGNERPREVIEWVIEW_H__BC5E3607_EDDC_4AA8_B796_D69BFEBE79EF__INCLUDED_)