unit9.cpp
来自「VC做的图象处理软件」· C++ 代码 · 共 43 行
CPP
43 行
//---------------------------------------------------------------------------
#include <vcl.h>
#pragma hdrstop
#include "Unit9.h"
//---------------------------------------------------------------------------
#pragma package(smart_init)
#pragma resource "*.dfm"
TForm9 *Form9;
extern int iReturnValue; //取值窗口返回值
extern int iThre; //锐化参数 阈值
//---------------------------------------------------------------------------
__fastcall TForm9::TForm9(TComponent* Owner)
: TForm(Owner)
{
}
//---------------------------------------------------------------------------
void __fastcall TForm9::BitBtn2Click(TObject *Sender)
{
this->Close();
}
//---------------------------------------------------------------------------
void __fastcall TForm9::FormShow(TObject *Sender)
{
iReturnValue=0;
}
//---------------------------------------------------------------------------
void __fastcall TForm9::BitBtn1Click(TObject *Sender)
{
iThre=StrToInt(Edit1->Text);
if(iThre<0||iThre>200)
{
MessageBox(NULL,"阈值设置错误,请保持在0到200之间","error",MB_OK);
return;
}
iReturnValue=1;
this->Close();
}
//---------------------------------------------------------------------------
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?