home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Learn 3D Graphics Programming on the PC
/
Learn_3D_Graphics_Programming_on_the_PC_Ferraro.iso
/
rwwin
/
aboutlib.cp_
/
aboutlib.bin
Wrap
Text File
|
1995-11-14
|
2KB
|
59 lines
// aboutlib.cpp : implementation file
//
#include "stdafx.h"
#include "rwmfc.h"
#include "aboutlib.h"
#ifdef _DEBUG
#undef THIS_FILE
static char BASED_CODE THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CAboutLibraryDialog dialog
CAboutLibraryDialog::CAboutLibraryDialog(CWnd* pParent /*=NULL*/)
: CDialog(CAboutLibraryDialog::IDD, pParent)
{
//{{AFX_DATA_INIT(CAboutLibraryDialog)
// NOTE: the ClassWizard will add member initialization here
//}}AFX_DATA_INIT
}
void CAboutLibraryDialog::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CAboutLibraryDialog)
// NOTE: the ClassWizard will add DDX and DDV calls here
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(CAboutLibraryDialog, CDialog)
//{{AFX_MSG_MAP(CAboutLibraryDialog)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CAboutLibraryDialog message handlers
BOOL CAboutLibraryDialog::OnInitDialog()
{
CDialog::OnInitDialog();
char versionString[80];
RwBool isFixedPointLib;
RwBool isDebuggingLib;
::RwGetSystemInfo(rwVERSIONSTRING, versionString, sizeof(versionString));
::RwGetSystemInfo(rwFIXEDPOINTLIB, &isFixedPointLib, sizeof(isFixedPointLib));
::RwGetSystemInfo(rwDEBUGGINGLIB, &isDebuggingLib, sizeof(isDebuggingLib));
SetDlgItemText(IDC_ABOUTLIBRARY_VERSION, versionString);
SetDlgItemText(IDC_ABOUTLIBRARY_NUMERICS, (isFixedPointLib ? "Fixed-Point" : "Floating-Point"));
SetDlgItemText(IDC_ABOUTLIBRARY_KERNEL, (isDebuggingLib ? "Debugging" : "Retail"));
return TRUE;
}