有幾十個image控件,用了好多類似的代碼,想用個函數比較省事但不知道怎么加,加在哪兒#include <vcl.h>#pragma hdrstop#include "Unit2.h"int t;int color;//---------------------------------------------------------------------------#pragma package(smart_init)#pragma resource "*.dfm"TForm2 *Form2;//---------------------------------------------------------------------------__fastcall TForm2::TForm2(TComponent* Owner): TForm(Owner){}//---------------------------------------------------------------------------ps:是新手,所以請盡量說的簡單一點
- 2 回答
- 0 關注
- 329 瀏覽
添加回答
舉報
0/150
提交
取消