unit2.h
来自「本书《C++Builder与WindowsAPI经典范例》附含配套光盘包括132」· C头文件 代码 · 共 38 行
H
38 行
//---------------------------------------------------------------------------
#ifndef Unit2H
#define Unit2H
//---------------------------------------------------------------------------
#include <Classes.hpp>
#include <Controls.hpp>
#include <StdCtrls.hpp>
#include <Forms.hpp>
#include <ExtCtrls.hpp>
#include <ComCtrls.hpp>
#include <ToolWin.hpp>
#include <Graphics.hpp>
//---------------------------------------------------------------------------
class TForm1 : public TForm
{
__published: // IDE-managed Components
TToolBar *ToolBar1;
TButton *Button1;
TStaticText *StaticText1;
TImage *Image1;
TImage *Image2;
TButton *Button2;
void __fastcall Button1Click(TObject *Sender);
void __fastcall FormClose(TObject *Sender, TCloseAction &Action);
void __fastcall Button2Click(TObject *Sender);
private: // User declarations
HWND HButton;
HBITMAP HOldBitmap;
public: // User declarations
//自定义函数--返回<开始>按钮handle
HWND DesktopHandle(char *str);
__fastcall TForm1(TComponent* Owner);
};
//---------------------------------------------------------------------------
extern PACKAGE TForm1 *Form1;
//---------------------------------------------------------------------------
#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?