mypos.cpp

    技术2022-05-20  39

    // MyPos.cpp : implementation file//

    #include "stdafx.h"#include "myapp.h"#include "MyPos.h"

    #ifdef _DEBUG#define new DEBUG_NEW#undef THIS_FILEstatic char THIS_FILE[] = __FILE__;#endif

    /// MyPos dialog

    MyPos::MyPos(CWnd* pParent /*=NULL*/) : CDialog(MyPos::IDD, pParent){ //{{AFX_DATA_INIT(MyPos) m_posx = 0; m_posy = 0; //}}AFX_DATA_INIT}

    void MyPos::DoDataExchange(CDataExchange* pDX){ CDialog::DoDataExchange(pDX); //{{AFX_DATA_MAP(MyPos) DDX_Text(pDX, IDC_EDIT_X, m_posx); DDX_Text(pDX, IDC_EDIT_Y, m_posy); //}}AFX_DATA_MAP}

    BEGIN_MESSAGE_MAP(MyPos, CDialog) //{{AFX_MSG_MAP(MyPos)  //}}AFX_MSG_MAPEND_MESSAGE_MAP()

    /// MyPos message handlers

    void MyPos::OnOK() { // TODO: Add extra validation here UpdateData(); 

     CDialog::OnOK();}

    void MyPos::OnCancel() { // TODO: Add extra cleanup here   CDialog::OnCancel();}

     

     


    最新回复(0)