root/RetrieveDlg.cpp

/* [<][>][^][v][top][bottom][index][help] */

DEFINITIONS

This source file includes following definitions.
  1. CRetrieveDlg
  2. DoDataExchange
  3. BEGIN_MESSAGE_MAP
  4. OnOK

/*
 * Copyright (C) 2002-2003 chik, s.hiranaka
 * For license terms, see the file COPYING in this directory.
 */

// RetrieveDlg.cpp : インプリメンテーション ファイル
//

#include "stdafx.h"
#include "Pochy.h"
#include "RetrieveDlg.h"

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

/////////////////////////////////////////////////////////////////////////////
// CRetrieveDlg ダイアログ


CRetrieveDlg::CRetrieveDlg(CWnd* pParent /*=NULL*/)
        : CDialog(CRetrieveDlg::IDD, pParent)
{
        //{{AFX_DATA_INIT(CRetrieveDlg)
        //}}AFX_DATA_INIT
}


void CRetrieveDlg::DoDataExchange(CDataExchange* pDX)
{
        CDialog::DoDataExchange(pDX);
        //{{AFX_DATA_MAP(CRetrieveDlg)
        DDX_Control(pDX, IDC_EDIT2, m_ec);
        //}}AFX_DATA_MAP
}


BEGIN_MESSAGE_MAP(CRetrieveDlg, CDialog)
        //{{AFX_MSG_MAP(CRetrieveDlg)
        //}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CRetrieveDlg メッセージ ハンドラ

BOOL CRetrieveDlg::OnInitDialog() 
{
        CDialog::OnInitDialog();

        m_ec.SetFocus();
        return FALSE;  // コントロールにフォーカスを設定しないとき、戻り値は TRUE となります
                      // 例外: OCX プロパティ ページの戻り値は FALSE となります
}

void CRetrieveDlg::OnOK()
{
        CString buf;
        m_ec.GetWindowText(buf);
        ((CPochyApp*)AfxGetApp())->m_keyword = buf;
        CDialog::OnOK();
}

/* [<][>][^][v][top][bottom][index][help] */