rendered paste body#define WINVER 0x0501
#include <afxwin.h> // MFC core and standard components
#include <afxext.h> // MFC extensions
#include <afxdisp.h> // MFC Automation classes
#ifndef _AFX_NO_OLE_SUPPORT
#include <afxdtctl.h> // MFC support for Internet Explorer 4 Common Controls
#endif
#ifndef _AFX_NO_AFXCMN_SUPPORT
#include <afxcmn.h> // MFC support for Windows Common Controls
#endif // _AFX_NO_AFXCMN_SUPPORT
#include "resource.h"
struct CMyDialog : public CDialog
{
enum { IDD = IDD_DIALOG1 };
CMyDialog()
: CDialog(CMyDialog::IDD, NULL)
{
}
virtual BOOL OnInitDialog()
{
CDialog::OnInitDialog();
CStatic *m_pLabel = new CStatic;
m_pLabel->Create(_T("Kuryn Rules"), WS_CHILD | WS_VISIBLE, CRect(10, 60, 260, 60), this, 0x188);
ASSERT(m_pLabel != TRUE);
m_pLabel->SetWindowText(_T("Kuryn Rules"));
return TRUE;
}
DECLARE_MESSAGE_MAP()
};
BEGIN_MESSAGE_MAP(CMyDialog, CDialog)
END_MESSAGE_MAP()
struct CMyApp : public CWinApp
{
BOOL InitInstance()
{
INITCOMMONCONTROLSEX initCtrls;
initCtrls.dwSize = sizeof(initCtrls);
initCtrls.dwICC = ICC_WIN95_CLASSES;
InitCommonControlsEx(&initCtrls);
AfxEnableControlContainer();
CMyDialog dlg;
m_pMainWnd = &dlg;
dlg.DoModal();
return TRUE;
}
};
CMyApp theApp;