Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Right Mouse Button Event

Status
Not open for further replies.

trent101

Programmer
Nov 4, 2005
50
AU
OK, I have a few pproblems in my MFC SDI app.

the first is im trying to handle the right mouse button down event for a CButton. I have been trying to do this for days, I can handle the single and double click but no the right mouse click, I have tried using that OnRButtonDown message but I get errors when I declare the function in the header file.

The second problem is I want to know is it possible to draw anything other than standard text to a dialog box. I want to draw bold text but there is no settings for this in the toolbox.

Any help would be appreciated.

thanks....

Trent
 
Hey,

atm im using these messages in my message map

ON_CONTROL_REFLECT_EX(BN_CLICKED, OnClickedEx)
ON_CONTROL_REFLECT_EX(BN_DOUBLECLICKED, OnDblClickedEx)

they work fine, but i have read the cbutton overview and there is no mention of any right mouse clicks or down or anything... CWnd has a OnRButtonDown or something similar but i get errors when i try n use them...

any ideas
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top