??
-
// MyParDlg.cpp : implementation file
//#include "stdafx.h"
#include "MyPar.h"
#include "MyParDlg.h"#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif/////////////////////////////////////////////////////////////////////////////
// CAboutDlg dialog used for App Aboutclass CAboutDlg : public CDialog
{
public:
CAboutDlg();// Dialog Data
//{{AFX_DATA(CAboutDlg)
enum { IDD = IDD_ABOUTBOX };
//}}AFX_DATA// ClassWizard generated virtual function overrides //{{AFX\_VIRTUAL(CAboutDlg) protected: virtual void DoDataExchange(CDataExchange\* pDX); // DDX/DDV support //}}AFX\_VIRTUAL
// Implementation
protected:
//{{AFX_MSG(CAboutDlg)
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};CAboutDlg::CAboutDlg() : CDialog(CAboutDlg::IDD)
{
//{{AFX_DATA_INIT(CAboutDlg)
//}}AFX_DATA_INIT
}void CAboutDlg::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CAboutDlg)
//}}AFX_DATA_MAP
}BEGIN_MESSAGE_MAP(CAboutDlg, CDialog)
//{{AFX_MSG_MAP(CAboutDlg)
// No message handlers
//}}AFX_MSG_MAP
END_MESSAGE_MAP()/////////////////////////////////////////////////////////////////////////////
// CMyParDlg dialogCMyParDlg::CMyParDlg(CWnd* pParent /*=NULL*/)
: CDialog(CMyParDlg::IDD, pParent)
{
//{{AFX_DATA_INIT(CMyParDlg)
m_sCity = _T("");
//}}AFX_DATA_INIT
// Note that LoadIcon does not require a subsequent DestroyIcon in Win32
m_hIcon = AfxGetApp()->LoadIcon(IDR_MAINFRAME);
}void CMyParDlg::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CMyParDlg)
DDX_Control(pDX, IDC_IMAGE, m_Image);
DDX_Control(pDX, IDC_COMBO_CHECKOUT_MONTHYEAR, m_cbCheckoutMonthYear);
DDX_Control(pDX, IDC_COMBO_GUEST_ROOMS, m_cbGuestRooms);
DDX_Control(pDX, IDC_COMBO_HOTELS, m_cbHotels);
DDX_Control(pDX, IDC_COMBO_STATE_PROV, m_cbStateProv);
DDX_Control(pDX, IDC_COMBO_CHECKIN_DAY, m_cbCheckinDay);
DDX_Control(pDX, IDC_COMBO_CHECKIN_MONTH_YEAR, m_cbCheckinMonthYear);
DDX_Control(pDX, IDC_COMBO_CHECKOUT_DAY, m_cbCheckoutDay);
DDX_Control(pDX, IDC_COMBO_COUNTRY, m_cbCountry);
DDX_Control(pDX, IDC_COMBO_SEARCH_WITHIN, m_cbSearchWithin);
DDX_Text(pDX, IDC_EDIT_CITY, m_sCity);
//}}AFX_DATA_MAP
}BEGIN_MESSAGE_MAP(CMyParDlg, CDialog)
//{{AFX_MSG_MAP(CMyParDlg)
ON_WM_SYSCOMMAND()
ON_WM_PAINT()
ON_WM_QUERYDRAGICON()
ON_BN_CLICKED(IDC_BUTTON1, OnStart)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()/////////////////////////
-
// MyParDlg.cpp : implementation file
//#include "stdafx.h"
#include "MyPar.h"
#include "MyParDlg.h"#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif/////////////////////////////////////////////////////////////////////////////
// CAboutDlg dialog used for App Aboutclass CAboutDlg : public CDialog
{
public:
CAboutDlg();// Dialog Data
//{{AFX_DATA(CAboutDlg)
enum { IDD = IDD_ABOUTBOX };
//}}AFX_DATA// ClassWizard generated virtual function overrides //{{AFX\_VIRTUAL(CAboutDlg) protected: virtual void DoDataExchange(CDataExchange\* pDX); // DDX/DDV support //}}AFX\_VIRTUAL
// Implementation
protected:
//{{AFX_MSG(CAboutDlg)
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};CAboutDlg::CAboutDlg() : CDialog(CAboutDlg::IDD)
{
//{{AFX_DATA_INIT(CAboutDlg)
//}}AFX_DATA_INIT
}void CAboutDlg::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CAboutDlg)
//}}AFX_DATA_MAP
}BEGIN_MESSAGE_MAP(CAboutDlg, CDialog)
//{{AFX_MSG_MAP(CAboutDlg)
// No message handlers
//}}AFX_MSG_MAP
END_MESSAGE_MAP()/////////////////////////////////////////////////////////////////////////////
// CMyParDlg dialogCMyParDlg::CMyParDlg(CWnd* pParent /*=NULL*/)
: CDialog(CMyParDlg::IDD, pParent)
{
//{{AFX_DATA_INIT(CMyParDlg)
m_sCity = _T("");
//}}AFX_DATA_INIT
// Note that LoadIcon does not require a subsequent DestroyIcon in Win32
m_hIcon = AfxGetApp()->LoadIcon(IDR_MAINFRAME);
}void CMyParDlg::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CMyParDlg)
DDX_Control(pDX, IDC_IMAGE, m_Image);
DDX_Control(pDX, IDC_COMBO_CHECKOUT_MONTHYEAR, m_cbCheckoutMonthYear);
DDX_Control(pDX, IDC_COMBO_GUEST_ROOMS, m_cbGuestRooms);
DDX_Control(pDX, IDC_COMBO_HOTELS, m_cbHotels);
DDX_Control(pDX, IDC_COMBO_STATE_PROV, m_cbStateProv);
DDX_Control(pDX, IDC_COMBO_CHECKIN_DAY, m_cbCheckinDay);
DDX_Control(pDX, IDC_COMBO_CHECKIN_MONTH_YEAR, m_cbCheckinMonthYear);
DDX_Control(pDX, IDC_COMBO_CHECKOUT_DAY, m_cbCheckoutDay);
DDX_Control(pDX, IDC_COMBO_COUNTRY, m_cbCountry);
DDX_Control(pDX, IDC_COMBO_SEARCH_WITHIN, m_cbSearchWithin);
DDX_Text(pDX, IDC_EDIT_CITY, m_sCity);
//}}AFX_DATA_MAP
}BEGIN_MESSAGE_MAP(CMyParDlg, CDialog)
//{{AFX_MSG_MAP(CMyParDlg)
ON_WM_SYSCOMMAND()
ON_WM_PAINT()
ON_WM_QUERYDRAGICON()
ON_BN_CLICKED(IDC_BUTTON1, OnStart)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()/////////////////////////
I agree.
-
// MyParDlg.cpp : implementation file
//#include "stdafx.h"
#include "MyPar.h"
#include "MyParDlg.h"#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif/////////////////////////////////////////////////////////////////////////////
// CAboutDlg dialog used for App Aboutclass CAboutDlg : public CDialog
{
public:
CAboutDlg();// Dialog Data
//{{AFX_DATA(CAboutDlg)
enum { IDD = IDD_ABOUTBOX };
//}}AFX_DATA// ClassWizard generated virtual function overrides //{{AFX\_VIRTUAL(CAboutDlg) protected: virtual void DoDataExchange(CDataExchange\* pDX); // DDX/DDV support //}}AFX\_VIRTUAL
// Implementation
protected:
//{{AFX_MSG(CAboutDlg)
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};CAboutDlg::CAboutDlg() : CDialog(CAboutDlg::IDD)
{
//{{AFX_DATA_INIT(CAboutDlg)
//}}AFX_DATA_INIT
}void CAboutDlg::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CAboutDlg)
//}}AFX_DATA_MAP
}BEGIN_MESSAGE_MAP(CAboutDlg, CDialog)
//{{AFX_MSG_MAP(CAboutDlg)
// No message handlers
//}}AFX_MSG_MAP
END_MESSAGE_MAP()/////////////////////////////////////////////////////////////////////////////
// CMyParDlg dialogCMyParDlg::CMyParDlg(CWnd* pParent /*=NULL*/)
: CDialog(CMyParDlg::IDD, pParent)
{
//{{AFX_DATA_INIT(CMyParDlg)
m_sCity = _T("");
//}}AFX_DATA_INIT
// Note that LoadIcon does not require a subsequent DestroyIcon in Win32
m_hIcon = AfxGetApp()->LoadIcon(IDR_MAINFRAME);
}void CMyParDlg::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CMyParDlg)
DDX_Control(pDX, IDC_IMAGE, m_Image);
DDX_Control(pDX, IDC_COMBO_CHECKOUT_MONTHYEAR, m_cbCheckoutMonthYear);
DDX_Control(pDX, IDC_COMBO_GUEST_ROOMS, m_cbGuestRooms);
DDX_Control(pDX, IDC_COMBO_HOTELS, m_cbHotels);
DDX_Control(pDX, IDC_COMBO_STATE_PROV, m_cbStateProv);
DDX_Control(pDX, IDC_COMBO_CHECKIN_DAY, m_cbCheckinDay);
DDX_Control(pDX, IDC_COMBO_CHECKIN_MONTH_YEAR, m_cbCheckinMonthYear);
DDX_Control(pDX, IDC_COMBO_CHECKOUT_DAY, m_cbCheckoutDay);
DDX_Control(pDX, IDC_COMBO_COUNTRY, m_cbCountry);
DDX_Control(pDX, IDC_COMBO_SEARCH_WITHIN, m_cbSearchWithin);
DDX_Text(pDX, IDC_EDIT_CITY, m_sCity);
//}}AFX_DATA_MAP
}BEGIN_MESSAGE_MAP(CMyParDlg, CDialog)
//{{AFX_MSG_MAP(CMyParDlg)
ON_WM_SYSCOMMAND()
ON_WM_PAINT()
ON_WM_QUERYDRAGICON()
ON_BN_CLICKED(IDC_BUTTON1, OnStart)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()/////////////////////////
-
// MyParDlg.cpp : implementation file
//#include "stdafx.h"
#include "MyPar.h"
#include "MyParDlg.h"#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif/////////////////////////////////////////////////////////////////////////////
// CAboutDlg dialog used for App Aboutclass CAboutDlg : public CDialog
{
public:
CAboutDlg();// Dialog Data
//{{AFX_DATA(CAboutDlg)
enum { IDD = IDD_ABOUTBOX };
//}}AFX_DATA// ClassWizard generated virtual function overrides //{{AFX\_VIRTUAL(CAboutDlg) protected: virtual void DoDataExchange(CDataExchange\* pDX); // DDX/DDV support //}}AFX\_VIRTUAL
// Implementation
protected:
//{{AFX_MSG(CAboutDlg)
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};CAboutDlg::CAboutDlg() : CDialog(CAboutDlg::IDD)
{
//{{AFX_DATA_INIT(CAboutDlg)
//}}AFX_DATA_INIT
}void CAboutDlg::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CAboutDlg)
//}}AFX_DATA_MAP
}BEGIN_MESSAGE_MAP(CAboutDlg, CDialog)
//{{AFX_MSG_MAP(CAboutDlg)
// No message handlers
//}}AFX_MSG_MAP
END_MESSAGE_MAP()/////////////////////////////////////////////////////////////////////////////
// CMyParDlg dialogCMyParDlg::CMyParDlg(CWnd* pParent /*=NULL*/)
: CDialog(CMyParDlg::IDD, pParent)
{
//{{AFX_DATA_INIT(CMyParDlg)
m_sCity = _T("");
//}}AFX_DATA_INIT
// Note that LoadIcon does not require a subsequent DestroyIcon in Win32
m_hIcon = AfxGetApp()->LoadIcon(IDR_MAINFRAME);
}void CMyParDlg::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CMyParDlg)
DDX_Control(pDX, IDC_IMAGE, m_Image);
DDX_Control(pDX, IDC_COMBO_CHECKOUT_MONTHYEAR, m_cbCheckoutMonthYear);
DDX_Control(pDX, IDC_COMBO_GUEST_ROOMS, m_cbGuestRooms);
DDX_Control(pDX, IDC_COMBO_HOTELS, m_cbHotels);
DDX_Control(pDX, IDC_COMBO_STATE_PROV, m_cbStateProv);
DDX_Control(pDX, IDC_COMBO_CHECKIN_DAY, m_cbCheckinDay);
DDX_Control(pDX, IDC_COMBO_CHECKIN_MONTH_YEAR, m_cbCheckinMonthYear);
DDX_Control(pDX, IDC_COMBO_CHECKOUT_DAY, m_cbCheckoutDay);
DDX_Control(pDX, IDC_COMBO_COUNTRY, m_cbCountry);
DDX_Control(pDX, IDC_COMBO_SEARCH_WITHIN, m_cbSearchWithin);
DDX_Text(pDX, IDC_EDIT_CITY, m_sCity);
//}}AFX_DATA_MAP
}BEGIN_MESSAGE_MAP(CMyParDlg, CDialog)
//{{AFX_MSG_MAP(CMyParDlg)
ON_WM_SYSCOMMAND()
ON_WM_PAINT()
ON_WM_QUERYDRAGICON()
ON_BN_CLICKED(IDC_BUTTON1, OnStart)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()/////////////////////////
What is it? if its an article you can submit it on the codeproject if you have any question please say it if you have any bug in this code please dont copy all your code. and please use of correct title.
Of one Essence is the human race thus has Creation put the base One Limb impacted is sufficient For all Others to feel the Mace (Saadi )
-
// MyParDlg.cpp : implementation file
//#include "stdafx.h"
#include "MyPar.h"
#include "MyParDlg.h"#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif/////////////////////////////////////////////////////////////////////////////
// CAboutDlg dialog used for App Aboutclass CAboutDlg : public CDialog
{
public:
CAboutDlg();// Dialog Data
//{{AFX_DATA(CAboutDlg)
enum { IDD = IDD_ABOUTBOX };
//}}AFX_DATA// ClassWizard generated virtual function overrides //{{AFX\_VIRTUAL(CAboutDlg) protected: virtual void DoDataExchange(CDataExchange\* pDX); // DDX/DDV support //}}AFX\_VIRTUAL
// Implementation
protected:
//{{AFX_MSG(CAboutDlg)
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};CAboutDlg::CAboutDlg() : CDialog(CAboutDlg::IDD)
{
//{{AFX_DATA_INIT(CAboutDlg)
//}}AFX_DATA_INIT
}void CAboutDlg::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CAboutDlg)
//}}AFX_DATA_MAP
}BEGIN_MESSAGE_MAP(CAboutDlg, CDialog)
//{{AFX_MSG_MAP(CAboutDlg)
// No message handlers
//}}AFX_MSG_MAP
END_MESSAGE_MAP()/////////////////////////////////////////////////////////////////////////////
// CMyParDlg dialogCMyParDlg::CMyParDlg(CWnd* pParent /*=NULL*/)
: CDialog(CMyParDlg::IDD, pParent)
{
//{{AFX_DATA_INIT(CMyParDlg)
m_sCity = _T("");
//}}AFX_DATA_INIT
// Note that LoadIcon does not require a subsequent DestroyIcon in Win32
m_hIcon = AfxGetApp()->LoadIcon(IDR_MAINFRAME);
}void CMyParDlg::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CMyParDlg)
DDX_Control(pDX, IDC_IMAGE, m_Image);
DDX_Control(pDX, IDC_COMBO_CHECKOUT_MONTHYEAR, m_cbCheckoutMonthYear);
DDX_Control(pDX, IDC_COMBO_GUEST_ROOMS, m_cbGuestRooms);
DDX_Control(pDX, IDC_COMBO_HOTELS, m_cbHotels);
DDX_Control(pDX, IDC_COMBO_STATE_PROV, m_cbStateProv);
DDX_Control(pDX, IDC_COMBO_CHECKIN_DAY, m_cbCheckinDay);
DDX_Control(pDX, IDC_COMBO_CHECKIN_MONTH_YEAR, m_cbCheckinMonthYear);
DDX_Control(pDX, IDC_COMBO_CHECKOUT_DAY, m_cbCheckoutDay);
DDX_Control(pDX, IDC_COMBO_COUNTRY, m_cbCountry);
DDX_Control(pDX, IDC_COMBO_SEARCH_WITHIN, m_cbSearchWithin);
DDX_Text(pDX, IDC_EDIT_CITY, m_sCity);
//}}AFX_DATA_MAP
}BEGIN_MESSAGE_MAP(CMyParDlg, CDialog)
//{{AFX_MSG_MAP(CMyParDlg)
ON_WM_SYSCOMMAND()
ON_WM_PAINT()
ON_WM_QUERYDRAGICON()
ON_BN_CLICKED(IDC_BUTTON1, OnStart)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()/////////////////////////