// MainFrm.h : interface of the CMainFrame class // ///////////////////////////////////////////////////////////////////////////// #if !defined(AFX_MAINFRM_H__671D31DA_1141_11D4_812A_00105A07EA1C__INCLUDED_) #define AFX_MAINFRM_H__671D31DA_1141_11D4_812A_00105A07EA1C__INCLUDED_ #if _MSC_VER >= 1000 #pragma once #endif // _MSC_VER >= 1000 #include "MyNet.h" #include "ListDlg.h" class CMainFrame : public CMDIFrameWnd { DECLARE_DYNAMIC(CMainFrame) public: CMainFrame(); // Attributes public: // Operations public: // Overrides // ClassWizard generated virtual function overrides //{{AFX_VIRTUAL(CMainFrame) virtual BOOL PreCreateWindow(CREATESTRUCT& cs); //}}AFX_VIRTUAL // Implementation private: public: HWND m_hLastLoadedWnd; HKEY m_hResultKey; L_INT m_nCommandID; L_INT m_nImageIndex; L_TCHAR m_szImageDir[L_MAXPATH]; L_TCHAR m_ImageNameList[L_MAXPATH][80]; L_TCHAR m_szRegKeyPath[80]; L_TCHAR m_szKeyClass[15]; L_BOOL m_bBitmapAttachedToWindow; L_BOOL m_bCreateBitmapWindow; L_BOOL m_bGetBitmap; L_BOOL m_bLoadPathStarted; L_BOOL IsConnected(); L_BOOL m_bServerStarted; L_BOOL m_bConnectedToRemoteServer; CString m_strAddress; CString m_strImageName; L_UINT32 m_uWindowID; L_UINT32 m_uBitmapID; CMyNet m_Inet; LInet * m_pInetRemoteServer; LBitmapBase* m_pBitmapBase; CImageListDialog* pImageListDlg; public: L_INT GetNextCommandID(); void UpdateStatusbar(LPCTSTR lpszString); void UpdateStatusbar(LPCTSTR lpszString, L_INT nRet); void InitializeVariables(); 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; // Generated message map functions protected: //{{AFX_MSG(CMainFrame) afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct); afx_msg void OnServerStartup(); afx_msg void OnUpdateServerStartup(CCmdUI* pCmdUI); afx_msg void OnServerShutdown(); afx_msg void OnUpdateServerShutdown(CCmdUI* pCmdUI); afx_msg void OnHelpInstructions(); afx_msg void OnServerConnecttoremoteserver(); afx_msg void OnUpdateServerConnecttoremoteserver(CCmdUI* pCmdUI); afx_msg void OnServerDisconnectfromremoveserver(); afx_msg void OnUpdateServerDisconnectfromremoveserver(CCmdUI* pCmdUI); afx_msg void OnServerCloseallconnections(); afx_msg void OnUpdateServerCloseallconnections(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 OnRemoteFlipbitmap(); afx_msg void OnUpdateRemoteFlipbitmap(CCmdUI* pCmdUI); afx_msg void OnRemoteGetbitmap(); afx_msg void OnUpdateRemoteGetbitmap(CCmdUI* pCmdUI); afx_msg void OnRemoteSavebitmap(); afx_msg void OnUpdateRemoteSavebitmap(CCmdUI* pCmdUI); afx_msg void OnRemoteSendsizewincmd(); afx_msg void OnRemoteSendshowwincmd(); afx_msg void OnRemoteSendclosewincmd(); afx_msg void OnRemoteSendfreebitmapcmd(); afx_msg void OnRemoteSendsetrectcmd(); afx_msg void OnUpdateRemoteSendclosewincmd(CCmdUI* pCmdUI); afx_msg void OnUpdateRemoteSendfreebitmapcmd(CCmdUI* pCmdUI); afx_msg void OnUpdateRemoteSendsetrectcmd(CCmdUI* pCmdUI); afx_msg void OnUpdateRemoteSendshowwincmd(CCmdUI* pCmdUI); afx_msg void OnUpdateRemoteSendsizewincmd(CCmdUI* pCmdUI); afx_msg void OnRemoteReversebitmap(); afx_msg void OnUpdateRemoteReversebitmap(CCmdUI* pCmdUI); afx_msg void OnRemote90clockwise(); afx_msg void OnUpdateRemote90clockwise(CCmdUI* pCmdUI); afx_msg void OnRemote180clockwise(); afx_msg void OnUpdateRemote180clockwise(CCmdUI* pCmdUI); afx_msg void OnRemoteShearbitmap(); afx_msg void OnUpdateRemoteShearbitmap(CCmdUI* pCmdUI); afx_msg void OnRemoteResizebitmap(); afx_msg void OnUpdateRemoteResizebitmap(CCmdUI* pCmdUI); afx_msg void OnRemotePosterize(); afx_msg void OnUpdateRemotePosterize(CCmdUI* pCmdUI); afx_msg void OnRemoteAddnoise(); afx_msg void OnUpdateRemoteAddnoise(CCmdUI* pCmdUI); afx_msg void OnRemoteOilify(); afx_msg void OnUpdateRemoteOilify(CCmdUI* pCmdUI); afx_msg void OnRemoteResolution(); afx_msg void OnUpdateRemoteResolution(CCmdUI* pCmdUI); afx_msg void OnRemoteInvert(); afx_msg void OnUpdateRemoteInvert(CCmdUI* pCmdUI); afx_msg void OnRemoteContrast(); afx_msg void OnUpdateRemoteContrast(CCmdUI* pCmdUI); afx_msg void OnRemoteSaturation(); afx_msg void OnUpdateRemoteSaturation(CCmdUI* pCmdUI); afx_msg void OnRemoteGammacorrection(); afx_msg void OnUpdateRemoteGammacorrection(CCmdUI* pCmdUI); afx_msg void OnRemoteLoadpath(); afx_msg void OnUpdateRemoteLoadpath(CCmdUI* pCmdUI); afx_msg void OnServerImagespath(); afx_msg void OnUpdateServerImagespath(CCmdUI* pCmdUI); afx_msg void OnPaletteChanged(CWnd* pFocusWnd); afx_msg void OnSysColorChange(); afx_msg BOOL OnQueryNewPalette(); //}}AFX_MSG DECLARE_MESSAGE_MAP() }; ///////////////////////////////////////////////////////////////////////////// //{{AFX_INSERT_LOCATION}} // Microsoft Developer Studio will insert additional declarations immediately before the previous line. #endif // !defined(AFX_MAINFRM_H__671D31DA_1141_11D4_812A_00105A07EA1C__INCLUDED_)