Handsome brothers, ladies, good afternoon, I come to fraught, please be prepared.
Today, our goal is to achieve this menu effect in the following figure.
is a menu that resembles a radio button, and only one of several items is selected.
First, we design a menu resource in the Resource editor. This resource editor in the management of resource IDs, some problems, sometimes not synchronized updates, sometimes can not be saved, anyway, it will be confusing. If you have a problem, you can design the menu first, then open the resource.h and manually change the ID and its value. In order for these three menu items to form a group, they must have a sequential ID value, such as I have here to make them 501,502,503.
101 refers to the entire menu resource, and the latter three are submenu items. If you want to be more insured, you can right-click the resource file (the end of the. rc) In Solution Explorer, select View Code, and then check to see if it is correct.