Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Right click on Button

Tags:

c++

winapi

I see there are BN_CLICKED and BN_DBLCLK notification messages for a button control. but how would i catch a right click message for any button control?

like image 794
cpx Avatar asked Oct 27 '09 15:10

cpx


1 Answers

You can use WM_RBUTTONDOWN, WM_RBUTTONUP, and WM_RBUTTONDBLCLK.

like image 51
Brian R. Bondy Avatar answered Sep 19 '22 19:09

Brian R. Bondy