umsgbox.h
来自「可实现科研信息管理系统的功能,有项目管理,教师管理,科研项目管理等多项内容」· C头文件 代码 · 共 42 行
H
42 行
//自定义的消息框 袁军
//---------------------------------------------------------------------------
#ifndef UMsgBoxH
#define UMsgBoxH
#include "UTemplate.h"
#include <Buttons.hpp>
#include <Classes.hpp>
#include <Controls.hpp>
#include <ExtCtrls.hpp>
#include <Graphics.hpp>
#include <StdCtrls.hpp>
//---------------------------------------------------------------------------
class TFormMsgBox : public TFormTemplate
{
__published: // IDE-managed Components
TSpeedButton *SBtnYes;
TSpeedButton *SBtnNo;
TSpeedButton *SBtnCancel;
TLabel *LabelMsg;
TImage *ImageInformation;
TImage *ImageError;
TImage *ImageWarning;
TImage *ImageYes;
TImage *ImageNo;
TImage *ImageCancel;
void __fastcall MsgBox(AnsiString Caption, AnsiString Text, int BtnCount,int Msgtype);
void __fastcall SBtnCloseTempClick(TObject *Sender);
void __fastcall SBtnYesClick(TObject *Sender);
void __fastcall SBtnNoClick(TObject *Sender);
void __fastcall SBtnCancelClick(TObject *Sender);
private: // User declarations
public: // User declarations
__fastcall TFormMsgBox(TComponent* Owner);
int Id;
//bool ismsgbox;
};
//---------------------------------------------------------------------------
extern PACKAGE TFormMsgBox *FormMsgBox;
//---------------------------------------------------------------------------
#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?