home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
DOS/V Power Report 1997 March
/
VPR9703A.ISO
/
VPR_DATA
/
DOGA
/
SOURCES
/
MEDIT.LZH
/
DSELRESO.CPP
< prev
next >
Wrap
C/C++ Source or Header
|
1996-06-28
|
2KB
|
88 lines
/* Project medit
Project Team DoGA
Copyright (c) 1995. All Rights Reserved.
サブシステム: medit.apx Application
ファイル: dselreso.cpp
作成者: Taka2
概要
====
TDSelReso (TDialog) のインプリメンテーション用のソースファイル
*/
#include <owl\owlpch.h>
#pragma hdrstop
#include <owl\edit.h>
#include "dselreso.h"
//
// このアプリケーションで処理するすべてのメッセージ/コマンドの
// 応答テーブルを作成する
//
DEFINE_RESPONSE_TABLE1(TDSelReso, TDialog)
//{{TDSelResoRSP_TBL_BEGIN}}
EV_BN_CLICKED(IDOK, CmOK),
//{{TDSelResoRSP_TBL_END}}
END_RESPONSE_TABLE;
//{{TDSelReso Implementation}}
TDSelReso::TDSelReso (TWindow* parent, int iwidth, int iheight):
TDialog(parent, IDD_REND_RESO, NULL)
{
// INSERT>> コンストラクタ用のコードはここに
editwidth = new TEdit(this, IDC_REND_WIDTH);
editheight = new TEdit(this, IDC_REND_HEIGHT);
selwidth = iwidth;
selheight = iheight;
}
TDSelReso::~TDSelReso ()
{
Destroy();
// INSERT>> デストラクタ用のコードはここに
}
void TDSelReso::SetupWindow ()
{
TDialog::SetupWindow();
// INSERT>> 追加のコードはここに
char mes[32];
wsprintf(mes, "%d", selwidth);
editwidth->SetText(mes);
wsprintf(mes, "%d", selheight);
editheight->SetText(mes);
}
void TDSelReso::CmOK ()
{
// INSERT>> 追加コードはここに
int n;
char mes[32];
editwidth->GetText(mes, 32);
n = atoi(mes);
if (0 < n && n <= 2048) selwidth = n;
editheight->GetText(mes, 32);
n = atoi(mes);
if (0 < n && n <= 2048) selheight = n;
CloseWindow(IDOK);
}