BCGSoft Forums
BCGSoft Forums
Home | Profile | Register | Active Topics | Members | Search | FAQ
Save Password
Forgot your Password?

 All Forums
 BCGSuite for MFC
 BCGSuite for MFC
 CBCGPGridCtrl - click on header
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  


7 Posts

Posted - 05/18/2021 :  07:36:30 AM  Show Profile  Reply with Quote
I am new to BCGS so I apologize if this issue has previously been addressed in the forums (although I have been unable to find anything that helps me)

Is there a way to find if the user has right clicked on the header row and if so, find out which column they have right clicked on? I know I can use OnContextMenu to catch the right click - but I need to know if the click was on the header or the body of the grid, and if on the header, I need to know the column. Is there an easy way to do this?

Thank you


4187 Posts

Posted - 05/18/2021 :  11:05:05 AM  Show Profile  Visit Support's Homepage  Reply with Quote

Thank you for contacting us!

To find out which column a user have clicked please call grid.GetColumnsInfo().HitTestColumn, which returns an index of the corresponding column or -1 if not hit.

Best regards,

BCGSoft Technical Support
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To:
BCGSoft Forums © Copyright (c) 1998-2022 BCGSoft Co Ltd Go To Top Of Page
Snitz Forums 2000