初步修复
This commit is contained in:
parent
8fc4357cc6
commit
e4714f3f0e
46705 changed files with 12004901 additions and 0 deletions
|
|
@ -0,0 +1,69 @@
|
|||
// AllocationOptionsDlg.cpp : implementation file
|
||||
//
|
||||
|
||||
#include "stdafx.h"
|
||||
#include "reportcustomheap.h"
|
||||
#include "AllocationOptionsDlg.h"
|
||||
|
||||
#ifdef _DEBUG
|
||||
#define new DEBUG_NEW
|
||||
#undef THIS_FILE
|
||||
static char THIS_FILE[] = __FILE__;
|
||||
#endif
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// CAllocationOptionsDlg dialog
|
||||
|
||||
|
||||
CAllocationOptionsDlg::CAllocationOptionsDlg(CWnd* pParent /*=NULL*/)
|
||||
: CDialog(CAllocationOptionsDlg::IDD, pParent)
|
||||
{
|
||||
//{{AFX_DATA_INIT(CAllocationOptionsDlg)
|
||||
// NOTE: the ClassWizard will add member initialization here
|
||||
//}}AFX_DATA_INIT
|
||||
}
|
||||
|
||||
|
||||
void CAllocationOptionsDlg::DoDataExchange(CDataExchange* pDX)
|
||||
{
|
||||
CDialog::DoDataExchange(pDX);
|
||||
//{{AFX_DATA_MAP(CAllocationOptionsDlg)
|
||||
DDX_Control(pDX, IDC_CHK_USE_CUSTOM_HEAP, m_ctrlUseCustomHeap);
|
||||
DDX_Control(pDX, IDC_CHK_ENABLE_ROW_BATCH_ALLOCATION, m_ctrlRowsBatchAlloc);
|
||||
//}}AFX_DATA_MAP
|
||||
}
|
||||
|
||||
|
||||
BEGIN_MESSAGE_MAP(CAllocationOptionsDlg, CDialog)
|
||||
//{{AFX_MSG_MAP(CAllocationOptionsDlg)
|
||||
//}}AFX_MSG_MAP
|
||||
END_MESSAGE_MAP()
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// CAllocationOptionsDlg message handlers
|
||||
|
||||
BOOL CAllocationOptionsDlg::OnInitDialog()
|
||||
{
|
||||
CDialog::OnInitDialog();
|
||||
|
||||
m_ctrlUseCustomHeap.SetCheck(1);
|
||||
m_ctrlRowsBatchAlloc.SetCheck(1);
|
||||
|
||||
return TRUE; // return TRUE unless you set the focus to a control
|
||||
// EXCEPTION: OCX Property Pages should return FALSE
|
||||
}
|
||||
|
||||
void CAllocationOptionsDlg::OnOK()
|
||||
{
|
||||
if (m_ctrlUseCustomHeap.GetCheck())
|
||||
{
|
||||
VERIFY(CXTPReportControl::UseReportCustomHeap());
|
||||
}
|
||||
|
||||
if (m_ctrlRowsBatchAlloc.GetCheck())
|
||||
{
|
||||
CXTPReportControl::UseRowBatchAllocation();
|
||||
}
|
||||
|
||||
CDialog::OnOK();
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue