TextEffectDlg.cpp 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. // TextEffectDlg.cpp : implementation file
  2. //
  3. #include "stdafx.h"
  4. #include "SkinBuilder.h"
  5. #include "TextEffectDlg.h"
  6. #include ".\texteffectdlg.h"
  7. // CTextEffectDlg dialog
  8. IMPLEMENT_DYNAMIC( CTextEffectDlg , CDialog )
  9. CTextEffectDlg::CTextEffectDlg( CWnd * pParent /*=NULL*/ ) : CDialog( CTextEffectDlg::IDD,pParent )
  10. {
  11. m_pTextEffect = NULL;
  12. }
  13. CTextEffectDlg::~CTextEffectDlg()
  14. {
  15. }
  16. void CTextEffectDlg::DoDataExchange( CDataExchange * pDX )
  17. {
  18. CDialog::DoDataExchange( pDX );
  19. }
  20. BEGIN_MESSAGE_MAP(CTextEffectDlg, CDialog)
  21. ON_EN_CHANGE(IDC_EDIT_OFFSETX, OnEnChangeEditOffsetx)
  22. END_MESSAGE_MAP()
  23. void CTextEffectDlg::SetTextEffect( SkinTextType * pText )
  24. {
  25. m_pTextEffect = pText;
  26. memcpy( &m_textEffect,m_pTextEffect,sizeof( m_textEffect ) );
  27. }
  28. // CTextEffectDlg message handlers
  29. void CTextEffectDlg::OnOK()
  30. {
  31. // TODO: Add your specialized code here and/or call the base class
  32. if ( m_pTextEffect )
  33. {
  34. memcpy( m_pTextEffect,&m_textEffect,sizeof( m_textEffect ) );
  35. }
  36. CDialog::OnOK();
  37. }
  38. void CTextEffectDlg::OnEnChangeEditOffsetx()
  39. {
  40. // TODO: If this is a RICHEDIT control, the control will not
  41. // send this notification unless you override the CDialog::OnInitDialog()
  42. // function and call CRichEditCtrl().SetEventMask()
  43. // with the ENM_CHANGE flag ORed into the mask.
  44. // TODO: Add your control notification handler code here
  45. }