Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

137 lines
3.4 KiB

// inputvw.cpp : implementation file
//
// This is a part of the Microsoft Foundation Classes C++ library.
// Copyright (C) 1992-1995 Microsoft Corporation
// All rights reserved.
//
// This source code is only intended as a supplement to the
// Microsoft Foundation Classes Reference and related
// electronic documentation provided with the library.
// See these sources for detailed information regarding the
// Microsoft Foundation Classes product.
#include "stdafx.h"
#include "viewex.h"
#ifdef _DEBUG
#undef THIS_FILE
static char BASED_CODE THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CInputView
IMPLEMENT_DYNCREATE(CInputView, CFormView)
/***********************************************************
Function:
Arguments:
Return:
Purpose:
Author(s):
Revision:
Date:
***********************************************************/
CInputView::CInputView()
: CFormView(CInputView::IDD)
{
//{{AFX_DATA_INIT(CInputView)
m_strData = "";
m_iColor = -1;
//}}AFX_DATA_INIT
}
/***********************************************************
Function:
Arguments:
Return:
Purpose:
Author(s):
Revision:
Date:
***********************************************************/
CInputView::~CInputView()
{
}
/***********************************************************
Function:
Arguments:
Return:
Purpose:
Author(s):
Revision:
Date:
***********************************************************/
void CInputView::OnUpdate(CView*, LPARAM, CObject*)
{
}
/***********************************************************
Function:
Arguments:
Return:
Purpose:
Author(s):
Revision:
Date:
***********************************************************/
void CInputView::DoDataExchange(CDataExchange* pDX)
{
CFormView::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CInputView)
DDX_Text(pDX, IDC_EDIT1, m_strData);
DDX_Radio(pDX, IDC_RADIO1, m_iColor);
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(CInputView, CFormView)
//{{AFX_MSG_MAP(CInputView)
ON_EN_CHANGE(IDC_EDIT1, OnDataChange)
ON_BN_CLICKED(IDC_RADIO1, OnDataChange)
ON_BN_CLICKED(IDC_RADIO2, OnDataChange)
ON_BN_CLICKED(IDC_RADIO3, OnDataChange)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CInputView message handlers
/***********************************************************
Function:
Arguments:
Return:
Purpose:
Author(s):
Revision:
Date:
***********************************************************/
void CInputView::OnDataChange()
{
/*if (!UpdateData())
return;
CMainDoc* pDoc = GetDocument();
COLORREF color = RGB(255 * (m_iColor == 0),
255 * (m_iColor == 1),
255 * (m_iColor == 2));
BOOL bUpdate = FALSE;
if (m_strData != pDoc->m_strData)
{
pDoc->m_strData = m_strData;
bUpdate = TRUE;
}
if (color != pDoc->m_colorData)
{
pDoc->m_colorData = color;
bUpdate = TRUE;
}
if (bUpdate)
{
// if the document stored data then we would call SetModifiedFlag here
pDoc->UpdateAllViews(this);
}*/
}
/////////////////////////////////////////////////////////////////////////////