Click here to Skip to main content
15,884,176 members
Articles / Desktop Programming / MFC

MFC/C++ Helper Class for Window Resizing

Rate me:
Please Sign up or sign in to vote.
4.91/5 (139 votes)
21 Oct 2014CPOL25 min read 658.9K   18.2K   385  
Gives you total control when it comes to resizing windows
#pragma once
#include "WndResizer.h"

// CExample02Dlg dialog

class CExample02Dlg : public CDialog
{
	DECLARE_DYNAMIC(CExample02Dlg)

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

// Dialog Data
	enum { IDD = IDD_EX02_DLG };

private:
  CWndResizer m_resizer;

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

	DECLARE_MESSAGE_MAP()
public:
  virtual BOOL OnInitDialog();
};

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Denmark Denmark
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions