Click here to Skip to main content
15,893,337 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 662.9K   18.2K   385  
Gives you total control when it comes to resizing windows
#pragma once
#include "WndResizer.h"

// CExample05Dlg dialog

class CExample05Dlg : public CDialog
{
	DECLARE_DYNAMIC(CExample05Dlg)

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

// Dialog Data
	enum { IDD = IDD_EX05_DLG };

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

	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