この状況でクラス演算子を直接呼び出す必要があるのはなぜですか。
void __fastcall TForm2::statusDrawPanel(TStatusBar *StatusBar, TStatusPanel *Panel,
const TRect &Rect)
{
//if (Panel == StatusBar->Panels[1]) This doesn't work for me, compiler throws E2096 Illegal structure operation
if (Panel == StatusBar->Panels->operator [](1)) // but this is working
{
int i = 0;
}
}
BorlandのC++BuilderXE2を使用しています。また、どのような状況でクラス演算子を直接呼び出す必要があるのかをお聞きしたいと思います。