Introduction to WIN32 Development (5) menus with radio tags

Source: Internet
Author: User
Tags resource win32

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.