imagedialog.h

来自「Vc.Net入门与提高源码」· C头文件 代码 · 共 41 行

H
41
字号
// File: ImageDialog.h
// Copyright (c) Microsoft Corporation.  All rights reserved.
//
// This source code is only intended as a supplement to the
// Microsoft Classes Reference and related electronic
// documentation provided with the library.
// See these sources for detailed information regarding the
// Microsoft C++ Libraries products.

#pragma once


// CImageDialog dialog

class CImageDialog : public CDialog
{
	DECLARE_DYNAMIC(CImageDialog)

public:
	CImageDialog(CWnd* pParent = NULL);   // standard constructor
	virtual ~CImageDialog();

	void SetTitle(LPCTSTR t)  { title = t; }
	HRESULT Load(LPCTSTR);
	BOOL OnInitDialog();

// Dialog Data
	enum { IDD = IDD_IMAGEDLG };

protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support

	DECLARE_MESSAGE_MAP()

private:
	CImage image;
	CString title;
public:
	afx_msg void OnPaint(void);
};

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?