Skip to content

Commit

Permalink
Updated base class to CRhinoDialog
Browse files Browse the repository at this point in the history
  • Loading branch information
dalefugier committed Dec 11, 2023
1 parent 3e8e594 commit 14380e5
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 7 deletions.
15 changes: 11 additions & 4 deletions cpp/SampleUserInterface/SampleModalDialog.cpp
Original file line number Diff line number Diff line change
@@ -1,19 +1,26 @@
#include "stdafx.h"
#include "SampleModalDialog.h"

IMPLEMENT_DYNAMIC(CSampleModalDialog, CDialog)
IMPLEMENT_DYNAMIC(CSampleModalDialog, CRhinoDialog)

CSampleModalDialog::CSampleModalDialog(CWnd* pParent /*=NULL*/)
: CDialog(CSampleModalDialog::IDD, pParent)
: CRhinoDialog(CSampleModalDialog::IDD, pParent)
{
}

void CSampleModalDialog::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
CRhinoDialog::DoDataExchange(pDX);
}

BEGIN_MESSAGE_MAP(CSampleModalDialog, CDialog)
BEGIN_MESSAGE_MAP(CSampleModalDialog, CRhinoDialog)
END_MESSAGE_MAP()

// CSampleModalDialog message handlers

BOOL CSampleModalDialog::OnInitDialog()
{
CRhinoDialog::OnInitDialog();

return TRUE;
}
7 changes: 4 additions & 3 deletions cpp/SampleUserInterface/SampleModalDialog.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,18 @@

#include "resource.h"

class CSampleModalDialog : public CDialog
class CSampleModalDialog : public CRhinoDialog
{
DECLARE_DYNAMIC(CSampleModalDialog)

public:
CSampleModalDialog(CWnd* pParent = 0); // standard constructor
CSampleModalDialog(CWnd* pParent = nullptr);

// Dialog Data
enum { IDD = IDD_MODAL_DIALOG };

protected:
virtual void DoDataExchange(CDataExchange* pDX) override; // DDX/DDV support
virtual void DoDataExchange(CDataExchange* pDX) override;
virtual BOOL OnInitDialog() override;
DECLARE_MESSAGE_MAP()
};

0 comments on commit 14380e5

Please sign in to comment.