unit1.h

来自「萬年曆查詢星期:輸入年月日就可以查詢當天是星期幾」· C头文件 代码 · 共 56 行

H
56
字号
//---------------------------------------------------------------------------

#ifndef Unit1H
#define Unit1H
//---------------------------------------------------------------------------
#include <Classes.hpp>
#include <Controls.hpp>
#include <StdCtrls.hpp>
#include <Forms.hpp>
#include <Mask.hpp>
#include <dblookup.hpp>
#include <ComCtrls.hpp>
#include "ccalendr.h"
#include <Grids.hpp>
//---------------------------------------------------------------------------
class TForm1 : public TForm
{
__published:	// IDE-managed Components
        TLabel *Label1;
        TMaskEdit *MediYear;
        TLabel *Label2;
        TButton *btnSearch;
        TButton *btnClose;
	TComboBox *CBDay;
	TComboBox *CBMonth;
	TLabel *Label3;
	TLabel *Label4;
	TLabel *lblLeap;
        void __fastcall btnCloseClick(TObject *Sender);
	void __fastcall MediYearChange(TObject *Sender);
	void __fastcall CBMonthChange(TObject *Sender);
	void __fastcall CBDayChange(TObject *Sender);
	void __fastcall btnSearchClick(TObject *Sender);
private:	// User declarations
        int LeapYear;
        int month;
        int day;
        int year;
private:
		void CheckYear();
		void CheckLeapYear();
		void Doit();
		int GetInput();
		void Determine();
		void EnabledFalse();
		void CheckDayFromSmallMonth();
		void CheckDayFromLeapMonth();

public:		// User declarations
        __fastcall TForm1(TComponent* Owner);
};
//---------------------------------------------------------------------------
extern PACKAGE TForm1 *Form1;
//---------------------------------------------------------------------------
#endif

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?