// NETCMD.h : main header file for the NETCMD application // //{{AFX_INCLUDES() #include "rasterinetsink.h" //}}AFX_INCLUDES #ifndef __AFXWIN_H__ #error include 'stdafx.h' before including this file for PCH #endif #include "resource.h" // main symbols ///////////////////////////////////////////////////////////////////////////// // CNETCMDApp: // See NETCMD.cpp for the implementation of this class // class CNETCMDApp : public CWinApp { public: CNETCMDApp(); // Overrides // ClassWizard generated virtual function overrides //{{AFX_VIRTUAL(CNETCMDApp) public: virtual BOOL InitInstance(); //}}AFX_VIRTUAL // Implementation //{{AFX_MSG(CNETCMDApp) // NOTE - the ClassWizard will add and remove member functions here. // DO NOT EDIT what you see in these blocks of generated code ! //}}AFX_MSG DECLARE_MESSAGE_MAP() }; class CBitmapWnd; ///////////////////////////////////////////////////////////////////////////// // CNETCMDDlg dialog class CNETCMDDlg : public CDialog { // Construction public: void RecalcSize (CBitmapWnd * pBmp, int & cx, int & cy); DWORD m_dwInetCookie; CRasterInetSink * m_pRasterInetSink; CNETCMDDlg(CWnd* pParent = NULL); // standard constructor void UpdateMenuStatus(void); void StatusUpdate(CString cs); CBitmapWnd * CreateNewBitmapWnd(CString csCaption, long nLeft, long nTop, long nWidth, long nHeight, BOOL bRecalc); CLEADRasterView * CreateNewLeadBitmap(void); void LocalLoadBitmap(void); void LocalSaveBitmap(void); void LocalSendBitmap(void); void RedimKids(void); void AddKid(CBitmapWnd* pKid); void SortKids(void); void RemoveKid(CBitmapWnd* pKid); CBitmapWnd* FindKid(HWND hKid); void FreeKids(void); void DeleteKid(CBitmapWnd* pKid); void RedimLBitmaps(void); void AddLBitmap(CLEADRasterView* pLead); void SortLBitmaps(void); void RemoveLBitmap(CLEADRasterView* pLead); CLEADRasterView* FindLBitmap(long nBitmapID); void FreeLBitmaps(void); void DeleteLBitmap(CLEADRasterView* pLead); void ShutDownServer(BOOL bGraceful); void ShutDownConnections(BOOL bGraceful); void DisconnectRemoteServer(BOOL bGraceful); void RemoveSendList(int iComp); void AddSendList(); CStatusBarCtrl m_StatusBar; int m_nSendListNum; int * m_picomps; long m_lKids; long *m_aKids; CBitmapWnd *m_pActiveKid; short m_hServer; short m_hRemoteServer; long m_nCommandID; long m_nBitmapID; BOOL m_bRemoteLoaded; BOOL m_bRemoteCreated; long m_nLastBitmapID; long m_nLastWindowID; long *m_aBitmaps; CString m_szAddress; short ProcessLoadCommand(CString csFile, short nBPP); long ProcessCreateWinCommand(short iComputer, CString csCaption, long nLeft, long nTop, long nWidth, long nHeight); short ProcessAttachBitmapCommand(long nBitmapID, long nWindowID); short ProcessSaveCommand(CString csFile, long nBitmapID, long nFormat, long nBPP, long nQFactor, long bMP); short ProcessFlipCommand(long nBitmapID); short ProcessGetCommand(long nBitmapID); void OnInetConnected(short iComputer); void OnInetDisconnected(short iComputer); void OnInetReceiveBitmap(short iComputer, long hBitmap); void OnInetReceiveCmd(short iComputer, short InetCommand, long nCommandID, short nError, LPDISPATCH Params, long nExtraDataSize, ILEADRasterVariant * ExtraData); void OnInetAccept(short iServer); void OnInetReceiveRsp(short iComputer, short InetCommand, long nCommandID, short nError, short nStatus, LPDISPATCH Params, long nExtraDataSize, ILEADRasterVariant * ExtraData); // Dialog Data //{{AFX_DATA(CNETCMDDlg) enum { IDD = IDD_NETCMD_DIALOG }; ILEADRasterDlgKrn * m_pRasterKrnDlg; ILEADRasterDlgFile * m_pRasterFileDlg; CLEADRasterView m_LEAD1; //}}AFX_DATA // ClassWizard generated virtual function overrides //{{AFX_VIRTUAL(CNETCMDDlg) protected: virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support //}}AFX_VIRTUAL // Implementation public: ILEADRasterInet * m_pLEADNet; protected: BOOL m_nServerStarted; ILEADRasterProcess * m_pltRasProc; ILEADRasterIO * m_pltRasIO; HICON m_hIcon; // Generated message map functions //{{AFX_MSG(CNETCMDDlg) virtual BOOL OnInitDialog(); afx_msg void OnSysCommand(UINT nID, LPARAM lParam); afx_msg void OnPaint(); afx_msg HCURSOR OnQueryDragIcon(); afx_msg void OnFileOpen(); afx_msg void OnFileSave(); afx_msg void OnFileExit(); afx_msg void OnClose(); afx_msg void OnUpdateFileSave(CCmdUI* pCmdUI); afx_msg void OnEditCopy(); afx_msg void OnEditPaste(); afx_msg void OnUpdateEditCopy(CCmdUI* pCmdUI); afx_msg void OnUpdateEditPaste(CCmdUI* pCmdUI); afx_msg void OnServerStartup(); afx_msg void OnServerShutdown(); afx_msg void OnServerCloseallconnections(); afx_msg void OnUpdateServerStartup(CCmdUI* pCmdUI); afx_msg void OnUpdateServerShutdown(CCmdUI* pCmdUI); afx_msg void OnUpdateServerCloseallconnections(CCmdUI* pCmdUI); afx_msg void OnServerConnecttoremoteserver(); afx_msg void OnServerDisconnectfromremoteserver(); afx_msg void OnUpdateServerConnecttoremoteserver(CCmdUI* pCmdUI); afx_msg void OnUpdateServerDisconnectfromremoteserver(CCmdUI* pCmdUI); afx_msg void OnLocalLoadbitmap(); afx_msg void OnLocalSavebitmap(); afx_msg void OnUpdateLocalLoadbitmap(CCmdUI* pCmdUI); afx_msg void OnUpdateLocalSavebitmap(CCmdUI* pCmdUI); afx_msg void OnRemoteLoadbitmap(); afx_msg void OnUpdateRemoteLoadbitmap(CCmdUI* pCmdUI); afx_msg void OnRemoteCreatewindow(); afx_msg void OnUpdateRemoteCreatewindow(CCmdUI* pCmdUI); afx_msg void OnRemoteAttachbitmaptowindow(); afx_msg void OnUpdateRemoteAttachbitmaptowindow(CCmdUI* pCmdUI); afx_msg void OnRemoteSavebitmap(); afx_msg void OnUpdateRemoteSavebitmap(CCmdUI* pCmdUI); afx_msg void OnRemoteFlipbitmap(); afx_msg void OnUpdateRemoteFlipbitmap(CCmdUI* pCmdUI); afx_msg void OnRemoteGetbitmap(); afx_msg void OnUpdateRemoteGetbitmap(CCmdUI* pCmdUI); afx_msg void OnLocalSendbitmap(); afx_msg void OnUpdateLocalSendbitmap(CCmdUI* pCmdUI); afx_msg void OnDestroy(); afx_msg void OnActivate(UINT nState, CWnd* pWndOther, BOOL bMinimized); DECLARE_EVENTSINK_MAP() //}}AFX_MSG DECLARE_MESSAGE_MAP() };