unit4.h

来自「本书《C++Builder与WindowsAPI经典范例》附含配套光盘包括132」· C头文件 代码 · 共 36 行

H
36
字号
//---------------------------------------------------------------------------
#ifndef Unit4H
#define Unit4H
//---------------------------------------------------------------------------
#include <Classes.hpp>
#include <Controls.hpp>
#include <StdCtrls.hpp>
#include <Forms.hpp>
#include <ComCtrls.hpp>
#include <ToolWin.hpp>
//---------------------------------------------------------------------------
class TForm1 : public TForm
{
__published:	// IDE-managed Components
    TStaticText *StaticText1;
    TToolBar *ToolBar1;
    TToolBar *ToolBar2;
    TComboBox *ComboBox1;
    TStaticText *StaticText2;
    TComboBox *ComboBox2;
    TStaticText *StaticText3;
    void __fastcall FormClose(TObject *Sender, TCloseAction &Action);
private:	// User declarations
    bool FPushed;
    ::TWndMethod OldComboBoxWP;
public:		// User declarations
    void DrawComboBox(HDC Hdc, bool pushed);
    void __fastcall NewComboBoxWP(TMessage &Msg);

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

⌨️ 快捷键说明

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