|
void TitlePnlClick(TObject *Sender);
=> void __fastcall TitlePnlClick(TObject *Sender);
요렇게 수정해보세요.
부산촌님 님이 쓰신 글 :
: 클래스를 하나 정의하고 그내부에 Panle을 정의하고
: 그정의된 Pnale->OnClick를 처리 해주려고 하니까 이게 맘대로 안되는 군요!!!
:
:
: W.pnlLHTitle[i][j]->OnClick = TitlePnlClick;
:
: typedef struct
: {
: TPageControl *PC;
: TScrollBox *ScrBox[3];
: TPanel *pnlLHTitle[3][50];
:
: }strWeather;
:
: class TDesignWeather
: {
: private:
: void TitlePnlClick(TObject *Sender);
: public:
: strWeather W;
: public:
: TDesignWeather();
: ~TDesignWeather();
: };
:
: void TDesignWeather::TDesignCreatePnlTitle(TWinControl *F)
: {
: W.pnlLHTitle[0][0] = new TPanel(W.PC);
: W.pnlLHTitle[0][0]->Parent = W.pnlWeather[0][0];
:
: W.pnlLHTitle[i][j]->OnClick = TitlePnlClick; <--------요기
:
: }
: 이렇게 할려고 하는데 '요기' 부분이 에러가 나네요!!!
:
: 고수님들께 해결방안을 부탁드립니다...
|