// 图片Dlg.h: 头文件 // #pragma once // C图片Dlg 对话框 class C图片Dlg : public CDialogEx { // 构造 public: C图片Dlg(CWnd* pParent = nullptr); // 标准构造函数 // 对话框数据 #ifdef AFX_DESIGN_TIME enum { IDD = IDD_MY_DIALOG }; #endif protected: virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV 支持 // 实现 protected: HICON m_hIcon; // 生成的消息映射函数 virtual BOOL OnInitDialog(); afx_msg void OnPaint(); afx_msg HCURSOR OnQueryDragIcon(); DECLARE_MESSAGE_MAP() public: CImage img; CDC* cdc; afx_msg void OnBnClickedButton1(); VOID showImg(); // afx_msg void OnSizing(UINT fwSide, LPRECT pRect); // afx_msg void OnSize(UINT nType, int cx, int cy); afx_msg void OnBnClickedButton2(); afx_msg void OnSize(UINT nType, int cx, int cy); afx_msg void OnBnClickedButton3(); CStatic m_Picture; };