Quantcast
Channel: CodeGuru Forums - Visual C++ Programming
Viewing all articles
Browse latest Browse all 3026

[RESOLVED] Regarding member function

$
0
0
Hi,

I was reading a c++ code written in embarcadero ide to add vertical colour text in popup menu.

While reading the code, I had seen following instructions.

private:
Code:

void __fastcall ExpandMenuItemWidth(TObject *Sender, TCanvas *ACanvas,int &Width, int &Height);
Code:

void __fastcall DrawNewItem(TObject *Sender, TCanvas *ACanvas, const TRect &ARect, bool Selected);
The above two methods used in the code like below:
Code:

PopupMenu1->Items->Items[i]->OnMeasureItem = ExpandMenuItemWidth;

PopupMenu1->Items->Items[i]->OnDrawItem = DrawNewItem;

What is happening when we are using member function without parameters like above?
I found above code at: http://edn.embarcadero.com/article/26632
Thanks in advance,

Viewing all articles
Browse latest Browse all 3026

Trending Articles