How to insert a check Box in CMFCToolBar?

Lily Garda 21 Reputation points
2020-05-27T02:38:26.307+00:00

In my programme, I need to insert a check box button, which should display with a rectangle in front of text as a normal check button. But I didn't find a derived checkbox button from CMFCToolBarButton so that I couldn't use insert() method to add a checkbox button in CMFCToolBar. And for CMFCToolBar , in SetButtonStyle(nButtonId, TBBS_CHECKBOX) method, TBBS_CHECKBOX is also just to set the icon button checkable as a checkbox. Is there any way to solve it?

Many thanks!!

Not Monitored
Not Monitored
Tag not monitored by Microsoft.
35,995 questions
0 comments No comments
{count} votes

Accepted answer
  1. Dave Patrick 426.1K Reputation points MVP
    2020-05-27T02:52:21.107+00:00

    I'd try asking for help in dedicated forums here.

    https://social.msdn.microsoft.com/Forums/vstudio/en-US/home?forum=vcgeneral

    https://social.msdn.microsoft.com/Forums/vstudio/en-US/home?category=windowsforms

    --please don't forget to Accept as answer if the reply is helpful--


    Regards, Dave Patrick ....
    Microsoft Certified Professional
    Microsoft MVP [Windows Server] Datacenter Management

    Disclaimer: This posting is provided "AS IS" with no warranties or guarantees, and confers no rights.

    0 comments No comments

0 additional answers

Sort by: Most helpful