Click here to Skip to main content
15,883,705 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.8K   18.2K   385  
Gives you total control when it comes to resizing windows
#pragma once
#include "Example08Dlg.h"
#include "Example11Dlg.h"

// CSwitchBoardDlg dialog

class CSwitchBoardDlg : public CDialog
{
  DECLARE_DYNAMIC(CSwitchBoardDlg)

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

// Dialog Data
  enum { IDD = IDD_SWITCH_BOARD_DLG };

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

  DECLARE_MESSAGE_MAP()
private:
  afx_msg void OnDestroy();
private:
  CExample11Dlg * m_pModelessSheet;
  CExample08APpg * m_pPageA;
  CExample08BPpg * m_pPageB;
  void DestroyPropertyModelessSheet();
private:
  afx_msg void OnBnClickedButtonEx1();
  afx_msg void OnBnClickedButtonEx2();
  afx_msg void OnBnClickedButtonEx3();
  afx_msg void OnBnClickedButtonEx4();
  afx_msg void OnBnClickedButtonEx5();
  afx_msg void OnBnClickedButtonEx6();
  afx_msg void OnBnClickedButtonEx7();
  afx_msg void OnBnClickedButtonEx8();
  afx_msg void OnBnClickedButtonTest();
  afx_msg void OnBnClickedButtonEx9();
  afx_msg void OnBnClickedButtonEx10();
  afx_msg void OnBnClickedButtonEx11();
};

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