#if !defined(AFX_PREVIEWDLG_H__D5C2E22C_3F03_4B0E_9D9F_80B686EDBD47__INCLUDED_) # define AFX_PREVIEWDLG_H__D5C2E22C_3F03_4B0E_9D9F_80B686EDBD47__INCLUDED_ # if _MSC_VER > 1000 # pragma once # endif // _MSC_VER > 1000 // PreviewDlg.h : header file // class CEmbeddedPreviewFrame; ///////////////////////////////////////////////////////////////////////////// // CPreviewDlg dialog class CPreviewDlg : public CDialog , private IIPCChannelCallback { public: enum { IDD = IDD_DIALOG_PREVIEW }; CPreviewDlg(CWnd* pParent = NULL); // standard constructor ~CPreviewDlg(); protected: virtual BOOL OnInitDialog(); virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support virtual void OnOK() { } virtual void OnCancel() { } virtual BOOL OnWndMsg(UINT message, WPARAM wParam, LPARAM lParam, LRESULT* pResult); 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(); private: void UpdatePosition(BOOL bShow = FALSE); void Close(); void SyncFrameSize(); void OnNtfReposition(); void OnNtfCommandBarsData(LPCTSTR xmlData); void OnNtfSetTitle(LPCTSTR lpTitle); void OnNtfPreviewSettings(const PREVIEW_SETTINGS* pSettings); void OnNtfSetWorkspaceColor(COLORREF crWorkspace); void OnNtfHideMenu(); DECLARE_MESSAGE_MAP(); afx_msg HBRUSH OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor); afx_msg BOOL OnSetCursor(CWnd* pWnd, UINT nHitTest, UINT message); afx_msg void OnLButtonDown(UINT nFlags, CPoint point); afx_msg void OnPaint(); private: CIPCChannel* m_pChannel; CEmbeddedPreviewFrame* m_pFrame; CDesignerRectTracker m_rectTracker; CBrush m_brWorkspace; const UINT WM_EMBEDDED_PREVIEW_FRAME_ON_MOVE; }; //{{AFX_INSERT_LOCATION}} // Microsoft Visual C++ will insert additional declarations immediately before the previous line. #endif // !defined(AFX_PREVIEWDLG_H__D5C2E22C_3F03_4B0E_9D9F_80B686EDBD47__INCLUDED_)