Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Command Bars
  New Posts New Posts RSS Feed - OnRButtonUp in CXTPControlButton ???
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

OnRButtonUp in CXTPControlButton ???

 Post Reply Post Reply
Author
Message
softz View Drop Down
Newbie
Newbie
Avatar

Joined: 29 December 2003
Location: Singapore
Status: Offline
Points: 4
Post Options Post Options   Thanks (0) Thanks(0)   Quote softz Quote  Post ReplyReply Direct Link To This Post Topic: OnRButtonUp in CXTPControlButton ???
    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



Edited by softz
Regards,
SoftZ
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.219 seconds.