// NETCMD.h : main header file for the NETCMD application // //{{AFX_INCLUDES() #include "..\\..\\..\\..\\include\\l_ocx40.h" #include "..\\..\\..\\..\\include\\ltnetocx.h" //#include "..\\..\\..\\..\\include\\ltdlgocx.h" #include "leadnet.h" //#include "leaddlg.h" #include "lead.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) //}}AFX_MSG DECLARE_MESSAGE_MAP() }; class CBitmapWnd; ///////////////////////////////////////////////////////////////////////////// // CNETCMDDlg dialog class CNETCMDDlg : public CDialog { // Construction BOOL m_bServerStarted; public: CNETCMDDlg(CWnd* pParent = NULL); // standard constructor ILEADRasterDlgFile_D * m_pRasterFileDlg; ILEADRasterDlgKrn_D * m_pRasterKrnDlg; void UpdateMenuStatus(void); void StatusUpdate(CString cs); CBitmapWnd * CreateNewBitmapWnd(CString csCaption, long nLeft, long nTop, long nWidth, long nHeight); CLead * 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(CLead* pLead); void SortLBitmaps(void); void RemoveLBitmap(CLead* pLead); CLead* FindLBitmap(long nBitmapID); void FreeLBitmaps(void); void DeleteLBitmap(CLead* pLead); void ShutDownServer(BOOL bGraceful); void ShutDownConnections(BOOL bGraceful); void DisconnectRemoteServer(BOOL bGraceful); int DisplayLEADError(int nCode); CStatusBarCtrl m_StatusBar; 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(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); // Dialog Data //{{AFX_DATA(CNETCMDDlg) enum { IDD = IDD_NETCMD_DIALOG }; CLeadNet m_LEADNet1; // CLeadDlg m_LEADDlg1; CLead m_LEAD1; //}}AFX_DATA // ClassWizard generated virtual function overrides //{{AFX_VIRTUAL(CNETCMDDlg) protected: virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support //}}AFX_VIRTUAL // Implementation protected: 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 OnInetAcceptLeadnetctrl1(short iServer); afx_msg void OnInetConnectedLeadnetctrl1(short iComputer); afx_msg void OnInetDisconnectedLeadnetctrl1(short iComputer); afx_msg void OnInetReceiveBitmapLeadnetctrl1(short iComputer, long hBitmap); afx_msg void OnInetReceiveCmdLeadnetctrl1(short iComputer, short InetCommand, long nCommandID, short nError, LPDISPATCH Params, long nExtraDataSize, const VARIANT FAR& ExtraData); afx_msg void OnInetReceiveRspLeadnetctrl1(short iComputer, short InetCommand, long nCommandID, short nError, short nStatus, LPDISPATCH Params, long nExtraDataSize, const VARIANT FAR& ExtraData); 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(); DECLARE_EVENTSINK_MAP() //}}AFX_MSG DECLARE_MESSAGE_MAP() };