SinusDlg.cpp
上传用户:guanxf518
上传日期:2007-01-02
资源大小:21k
文件大小:7k
- // SinusDlg.cpp : Implementierungsdatei
- //
- #include "stdafx.h"
- #include "Sinus.h"
- #include "SinusDlg.h"
- #ifdef _DEBUG
- #define new DEBUG_NEW
- #undef THIS_FILE
- static char THIS_FILE[] = __FILE__;
- #endif
- /////////////////////////////////////////////////////////////////////////////
- // CAboutDlg-Dialogfeld f黵 Anwendungsbefehl "Info"
- class CAboutDlg : public CDialog
- {
- public:
- CAboutDlg();
- // Dialogfelddaten
- //{{AFX_DATA(CAboutDlg)
- enum { IDD = IDD_ABOUTBOX };
- //}}AFX_DATA
- // Vom Klassenassistenten generierte 躡erladungen virtueller Funktionen
- //{{AFX_VIRTUAL(CAboutDlg)
- protected:
- virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV-Unterst黷zung
- //}}AFX_VIRTUAL
- // Implementierung
- protected:
- //{{AFX_MSG(CAboutDlg)
- //}}AFX_MSG
- DECLARE_MESSAGE_MAP()
- };
- CAboutDlg::CAboutDlg() : CDialog(CAboutDlg::IDD)
- {
- //{{AFX_DATA_INIT(CAboutDlg)
- //}}AFX_DATA_INIT
- }
- void CAboutDlg::DoDataExchange(CDataExchange* pDX)
- {
- CDialog::DoDataExchange(pDX);
- //{{AFX_DATA_MAP(CAboutDlg)
- //}}AFX_DATA_MAP
- }
- BEGIN_MESSAGE_MAP(CAboutDlg, CDialog)
- //{{AFX_MSG_MAP(CAboutDlg)
- // Keine Nachrichten-Handler
- //}}AFX_MSG_MAP
- END_MESSAGE_MAP()
- /////////////////////////////////////////////////////////////////////////////
- // CSinusDlg Dialogfeld
- CSinusDlg::CSinusDlg(CWnd* pParent /*=NULL*/)
- : CDialog(CSinusDlg::IDD, pParent)
- {
- //{{AFX_DATA_INIT(CSinusDlg)
- m_strText = _T("");
- //}}AFX_DATA_INIT
- // Beachten Sie, dass LoadIcon unter Win32 keinen nachfolgenden DestroyIcon-Aufruf ben鰐igt
- m_hIcon = AfxGetApp()->LoadIcon(IDR_MAINFRAME);
- }
- void CSinusDlg::DoDataExchange(CDataExchange* pDX)
- {
- CDialog::DoDataExchange(pDX);
- //{{AFX_DATA_MAP(CSinusDlg)
- DDX_Control(pDX, IDC_SPEED_SLIDER, m_ctrlSpeed);
- DDX_Control(pDX, IDC_STATIC_SINUS, m_ctrlSinus);
- DDX_Text(pDX, IDC_TEXT_EDIT, m_strText);
- //}}AFX_DATA_MAP
- }
- BEGIN_MESSAGE_MAP(CSinusDlg, CDialog)
- //{{AFX_MSG_MAP(CSinusDlg)
- ON_WM_SYSCOMMAND()
- ON_WM_PAINT()
- ON_WM_QUERYDRAGICON()
- ON_EN_CHANGE(IDC_TEXT_EDIT, OnChangeTextEdit)
- ON_WM_HSCROLL()
- ON_BN_CLICKED(IDC_BTN_SET_FONT, OnBtnSetFont)
- //}}AFX_MSG_MAP
- END_MESSAGE_MAP()
- /////////////////////////////////////////////////////////////////////////////
- // CSinusDlg Nachrichten-Handler
- BOOL CSinusDlg::OnInitDialog()
- {
- CDialog::OnInitDialog();
- // Hinzuf黦en des Men黚efehls "Info..." zum Systemmen