Print Page | Close Window

OnRButtonUp in CXTPControlButton ???

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Command Bars
Forum Description: Topics Related to Codejock Command Bars
URL: http://forum.codejock.com/forum_posts.asp?TID=1012
Printed Date: 23 November 2024 at 5:16am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: OnRButtonUp in CXTPControlButton ???
Posted By: softz
Subject: OnRButtonUp in CXTPControlButton ???
Date Posted: 02 August 2004 at 9:22pm

Hi,

I'm currently using an Appbar application. Hence, I've a few buttons on the Appbar which I used CXTPControlButton to make them function as and when a user click on them. According to the help file, CXTPControlButton is derived from CXTPControl. Therefore, I should be able to use the functions or override functions in CXTPControl right? Here is my question. May I know how to use the OnRButtonUp(CPoint) of CXTPControl in CXTPControl? I've managed to put the function in and compile without any errors. Unfortunately, nothing happens when I performed a right click on the button. May I know how do I make this thing work?

PS: Sample code as follows

// file.h
class CMyClass : public CXTPControlButton
{
public:
    CMyClass(void);
    virtual ~CMyClass(void);
    DECLARE_MESSAGE_MAP()
    virtual void OnRButtonUp(CPoint point);
};

// file.cpp
CMyClass::CMyClass(void)
{
}

CMyClass::~CMyClass(void)
{
}

BEGIN_MESSAGE_MAP(
CMyClass, CXTPControlButton)
END_MESSAGE_MAP()

void
CMyClass::OnRButtonUp(CPoint point)
{
    TRACE(_T("!@#!%$!@%$!#\n"));

    __super::OnRButtonUp(point);
}

Thank you very much

Regards



-------------
Regards,
SoftZ



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net