전자공학 자동제어 프로그래밍 - 다이얼로그 박스
본 자료는 8페이지 의 미리보기를 제공합니다. 이미지를 클릭하여 주세요.
닫기
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
해당 자료는 8페이지 까지만 미리보기를 제공합니다.
8페이지 이후부터 다운로드 후 확인할 수 있습니다.

목차

1. 다이얼로그 박스의 구현
2. 다이얼로그를 갖는 문자열 출력 프로그램

본문내용

ntInfo* /*pInfo*/)
{
// TODO: add cleanup after printing
}
/////////////////////////////////////////////////////////////////////////////
// CContView diagnostics
#ifdef _DEBUG
void CContView::AssertValid() const
{
CView::AssertValid();
}
void CContView::Dump(CDumpContext& dc) const
{
CView::Dump(dc);
}
CContDoc* CContView::GetDocument() // non-debug version is inline
{
ASSERT(m_pDocument->IsKindOf(RUNTIME_CLASS(CContDoc)));
return (CContDoc*)m_pDocument;
}
#endif //_DEBUG
/////////////////////////////////////////////////////////////////////////////
// CContView message handlers
void CContView::OnLButtonDown(UINT nFlags, CPoint point)
{
// TODO: Add your message handler code here and/or call default
GetDocument()->SetLocation(point);
CView::OnLButtonDown(nFlags, point);
}
void CContView::OnControl()
{
CContDoc* pDoc = GetDocument();
ASSERT_VALID(pDoc);
// TODO: Add your command handler code here
CClientDC dc(this);
CPoint pt = pDoc->GetLocation();
dc.TextOut(pt.x, pt.y, pDoc->GetString() );
}
CContDlg.h
f !defined(AFX_CONTDLG_H__3D49ADE4_57E9_4555_90B4_76E7E5BB2885__INCLUdfine AFX_CONTDLG_H__3D49ADE4_57E9_4555_90B4_76E7E5BB2885__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// ContDlg.h : header file
//
/////////////////////////////////////////////////////////////////////////////
// CContDlg dialog
class CContDlg : public CDialog
{
// Construction
public:
CContDlg(CWnd* pParent = NULL); // standard constructor
// Dialog Data
//{{AFX_DATA(CContDlg)
enum { IDD = IDD_CONTDLG };
CString m_nText;
//}}AFX_DATA
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CContDlg)
protected:
virtual void DoDataExchange(CDataExchange* pDX); //DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
// Generated message map functions
//{{AFX_MSG(CContDlg)
// NOTE: the ClassWizard will add member functions here
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif //
!defined(AFX_CONTDLG_H__3D49ADE4_57E9_4555_90B4_76E7E5BB2885__INCLUDED_)
CContDlg.cpp
// ContDlg.cpp : implementation file
#include "stdafx.h"
#include "Cont.h"
#include "ContDlg.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CContDlg dialog
CContDlg::CContDlg(CWnd* pParent /*=NULL*/)
: CDialog(CContDlg::IDD, pParent)
{
//{{AFX_DATA_INIT(CContDlg)
m_nText = _T("");
//}}AFX_DATA_INIT
}
void CContDlg::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CContDlg)
DDX_Text(pDX, IDC_EDIT, m_nText);
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(CContDlg, CDialog)
//{{AFX_MSG_MAP(CContDlg)
// NOTE: the ClassWizard will add message map macros here
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CContDlg message handlers
  • 가격3,000
  • 페이지수23페이지
  • 등록일2004.09.23
  • 저작시기2004.09
  • 파일형식한글(hwp)
  • 자료번호#268400
본 자료는 최근 2주간 다운받은 회원이 없습니다.
청소해
다운로드 장바구니