home *** CD-ROM | disk | FTP | other *** search
/ Xentax forum attachments archive / xentax.7z / 8090 / ModelEdit.7z / AddChildModelDlg.cpp < prev    next >
Encoding:
C/C++ Source or Header  |  2006-03-08  |  1.3 KB  |  56 lines

  1. // AddChildModelDlg.cpp : implementation file
  2. //
  3.  
  4. #include "stdafx.h"
  5. #include "resource.h"
  6. #include "AddChildModelDlg.h"
  7.  
  8. #ifdef _DEBUG
  9. #define new DEBUG_NEW
  10. #undef THIS_FILE
  11. static char THIS_FILE[] = __FILE__;
  12. #endif
  13.  
  14. /////////////////////////////////////////////////////////////////////////////
  15. // CAddChildModelDlg
  16.  
  17. IMPLEMENT_DYNAMIC(CAddChildModelDlg, CFileDialog)
  18.  
  19. CAddChildModelDlg::CAddChildModelDlg(BOOL bOpenFileDialog, LPCTSTR lpszDefExt, LPCTSTR lpszFileName,
  20.         DWORD dwFlags, LPCTSTR lpszFilter, CWnd* pParentWnd) :
  21.         CFileDialog(bOpenFileDialog, lpszDefExt, lpszFileName, dwFlags, lpszFilter, pParentWnd)
  22. {
  23.     m_bScaleSkeleton = FALSE;
  24.  
  25.     m_ofn.Flags |= OFN_ENABLETEMPLATE;
  26.     m_ofn.lpTemplateName = MAKEINTRESOURCE( IDD_ADDCHILDMODEL );
  27. }
  28.  
  29. void CAddChildModelDlg::OnInitDone( )
  30. {
  31.     CButton *pCheck;
  32.  
  33.     pCheck = ( CButton * )GetDlgItem( IDC_SCALESKELETON );
  34.     if( pCheck )
  35.         pCheck->SetCheck( m_bScaleSkeleton );
  36. }
  37.  
  38. void CAddChildModelDlg::OnCheck() 
  39. {
  40.     CButton *pCheck;
  41.  
  42.     pCheck = ( CButton * )GetDlgItem( IDC_SCALESKELETON );
  43.     if( pCheck )
  44.         m_bScaleSkeleton = pCheck->GetCheck( );
  45. }
  46.  
  47.  
  48.  
  49.  
  50. BEGIN_MESSAGE_MAP(CAddChildModelDlg, CFileDialog)
  51.     //{{AFX_MSG_MAP(CAddChildModelDlg)
  52.         ON_BN_CLICKED(IDC_IMPORT_USEUVCOORDS, OnCheck)
  53.     //}}AFX_MSG_MAP
  54. END_MESSAGE_MAP()
  55.  
  56.