Hi,

i have a button (mybutton_1) derived from CCoeControl which captures pointer events.
Now i try to call HideMe() from CMyAppUi class to hide the button (mybutton_1->MakeVisible(EFalse) on a pointer event on mybutton_1.

Maybe its too late, but i just dont get it?
How can i call HideMe() from CCoeControl? or can i hide the button directly in CCoeControl?



Code:
class CMyButton: public CCoeControl 
	{
public:
 	void HandlePointerEventL(const TPointerEvent &aEvent);


class CMyAppUi: public CAknViewAppUi
        {
public: 
 	void HideMe();
        CMyButton* mybutton_1;
Code:
void CMyAppUi::ConstructL()
        {
	mybutton_1=CMyButton::NewL(wg);
	mybutton_1->MakeVisible(ETrue);


void CMyAppUi::HideMe()
       {
       mybutton_1->MakeVisible(EFalse);


void CMyButton::HandlePointerEventL(const TPointerEvent &aEvent)
     {	
     if(aEvent...