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
Text File  |  1995-11-14  |  2KB  |  59 lines

  1. // aboutlib.cpp : implementation file
  2. //
  3.  
  4. #include "stdafx.h"
  5. #include "rwmfc.h"
  6. #include "aboutlib.h"
  7.  
  8. #ifdef _DEBUG
  9. #undef THIS_FILE
  10. static char BASED_CODE THIS_FILE[] = __FILE__;
  11. #endif
  12.  
  13. /////////////////////////////////////////////////////////////////////////////
  14. // CAboutLibraryDialog dialog
  15.  
  16.  
  17. CAboutLibraryDialog::CAboutLibraryDialog(CWnd* pParent /*=NULL*/)
  18.     : CDialog(CAboutLibraryDialog::IDD, pParent)
  19. {
  20.     //{{AFX_DATA_INIT(CAboutLibraryDialog)
  21.         // NOTE: the ClassWizard will add member initialization here
  22.     //}}AFX_DATA_INIT
  23. }
  24.  
  25. void CAboutLibraryDialog::DoDataExchange(CDataExchange* pDX)
  26. {
  27.     CDialog::DoDataExchange(pDX);
  28.     //{{AFX_DATA_MAP(CAboutLibraryDialog)
  29.         // NOTE: the ClassWizard will add DDX and DDV calls here
  30.     //}}AFX_DATA_MAP
  31. }
  32.  
  33. BEGIN_MESSAGE_MAP(CAboutLibraryDialog, CDialog)
  34.     //{{AFX_MSG_MAP(CAboutLibraryDialog)
  35.     //}}AFX_MSG_MAP
  36. END_MESSAGE_MAP()
  37.  
  38.  
  39. /////////////////////////////////////////////////////////////////////////////
  40. // CAboutLibraryDialog message handlers
  41.  
  42. BOOL CAboutLibraryDialog::OnInitDialog()
  43. {
  44.     CDialog::OnInitDialog();
  45.  
  46.     char   versionString[80];
  47.     RwBool isFixedPointLib;
  48.     RwBool isDebuggingLib;    
  49.     ::RwGetSystemInfo(rwVERSIONSTRING, versionString,   sizeof(versionString));
  50.     ::RwGetSystemInfo(rwFIXEDPOINTLIB, &isFixedPointLib, sizeof(isFixedPointLib));
  51.     ::RwGetSystemInfo(rwDEBUGGINGLIB,  &isDebuggingLib,  sizeof(isDebuggingLib));
  52.     
  53.     SetDlgItemText(IDC_ABOUTLIBRARY_VERSION,  versionString);
  54.     SetDlgItemText(IDC_ABOUTLIBRARY_NUMERICS, (isFixedPointLib ? "Fixed-Point" : "Floating-Point"));
  55.     SetDlgItemText(IDC_ABOUTLIBRARY_KERNEL,   (isDebuggingLib  ? "Debugging"   : "Retail"));
  56.     
  57.     return TRUE;
  58. }
  59.