PPExplorerDlg.h
上传用户:huashan618
上传日期:2013-03-26
资源大小:261k
文件大小:2k
- // PPExplorerDlg.h : 头文件
- //
- #pragma once
- #include "afxwin.h"
- #include "myframewnd.h"
- #include ".\webview\customtabctrl.h"
- //#include "webbrowser2.h"
- //#include "ieview.h"
- #define THUMN_WIDTH 10
- #define THUMN_HEIGHT 32
- #define FROM_LEFT 10
- #define FROM_RIGHT 10
- #define MENU_FROM_TOP 36
- //#define CONTEXT_FROM_TOP
- #define THUMN_FROM 2
- #define TOOL_HEIGHT 75
- #define FROM_BOTTOM 20//窗口距底高
- #define TITLE_HEIGTH 32//标题框高
- //托消息
- #define WM_NOTIFY_MIN WM_USER+105
- #define IDC_NC 1001
- //#define CTRL_TOTICALWIDTH 240//主题框最小宽度
- // CPPExplorerDlg 对话框
- //enum WinStatus{LEFT,NORMAL,RIGHT};
- class CPPExplorerDlg : public CDialog
- {
- // 构造
- public:
- CPPExplorerDlg(CWnd* pParent = NULL); // 标准构造函数
- // 对话框数据
- enum { IDD = IDD_PPEXPLORER_DIALOG };
- protected:
- virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV 支持
- // 实现
- protected:
- HICON m_hIcon;
- int m_cxwnd,m_cywnd;//窗口大小
- CRect m_left,m_right,m_rthumn;
- // 生成的消息映射函数
- virtual BOOL OnInitDialog();
- afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
- afx_msg void OnPaint();
- afx_msg HCURSOR OnQueryDragIcon();
- DECLARE_MESSAGE_MAP()
- private:
- // 浏览窗口
- CWnd m_adverse;
- // CWnd m_wc;
- BOOL m_status;//为真是为正常状态
- CButton m_thumn;
- CDC m_maindc;//背景图DC
- BOOL m_fmove;
- BOOL m_fmin;
- ULONG_PTR m_gtoken;
- CRect m_posfocus,m_oldfocus;
- int m_start;
- private:
- void SetDlgSkin(void);
- //回收所有已创对象
- void ClearAllObject(void);
- public:
- CStatusBar m_statusbar;
- afx_msg void OnBnClickedButtThumn();
- afx_msg void OnDestroy();
- afx_msg void OnMouseMove(UINT nFlags, CPoint point);
- afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
- afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
- afx_msg LRESULT OnNotifyRegion(WPARAM wParam,LPARAM lParam);
- afx_msg LRESULT OnStatusBarMessage(WPARAM wParam=NULL,LPARAM lParam=NULL);
- afx_msg LRESULT OnCreateNewIEView(WPARAM wParam,LPARAM lParam);
- private:
- // 关闭按钮
- CButton m_butclose;
- // 最大化按钮
- CButton m_butmax;
- // 最小化按钮
- CButton m_butmin;
- // 初始化子窗口
- void InitialChildWindow(void);
-
- public:
- afx_msg void OnBnClickedButClose();
- afx_msg void OnBnClickedButMaxwin();
- afx_msg void OnBnClickedButMinwin();
- };