Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8143135
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T13:01:15+00:00 2026-06-06T13:01:15+00:00

I tried a tutorial about C and ATL about a basic dialog. It has

  • 0

I tried a tutorial about C and ATL about a basic dialog. It has a window, and 2 buttons inside. In the beginning of the tutorial, there are 2 buttons and they all exit the application. But, these 2 buttons are created by default. So, I tried creating another button that can exit the application, and I failed.

My aim is to use radio buttons with this project. I want to create some radio buttons and when I press a button, I want to execute some commands.

Here are the links – In my opinion, the tutorial link is unrelated, but I guess it won’t hurt: Tutorial, Working Project, Problematic Project.

Thanks in advance.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-06T13:01:17+00:00Added an answer on June 6, 2026 at 1:01 pm
    1. You add a button onto dialog resource template
    2. You associate an identifier with the button in properties pane right there in resource editor, e.g. IDC_MYBUTT
    3. You will find #define for the chosen constant IDC_MYBUTT in resource.h file on the project
    4. You add handlers to button events on your dialog class. Those are COMMAND_ID_HANDLER macros on Sample ATL Dialog Window code, which connect the event (underlying WM_COMMAND message sent to the window) with specific method (both IDOK and IDCANCEL buttons execute OnCommand in the sample code).
    5. There on the handler you decide how to handle, and in particular to end the dialog or not.

    COMMAND_HANDLER, COMMAND_ID_HANDLER and friends are described on MSDN: Message Map Macros (ATL).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is there anyone who has any good tutorial about admob for android apps? from
There is a great tutorial here about windows forms How to inject Javascript in
I've been following this fantastic tutorial about mass inserting data. All is well, I've
I have read the Google python regex tutorial about regular expression and tried to
I am newbie with git. It tried this tutorial, but after the command, i
I want to Embed SVG into XUL. I tried to use the this tutorial
I have a compiling problem. I followed tutorial about Hello world program for Android
I was about to start learning x64 assembly using this tutorial (series) but setting
Given Ryan Bates's great tutorial on Virtual Attributes , how would I go about
I've tried to implement the 'Layout with Dijit' tutorial http://dojotoolkit.org/documentation/tutorials/1.7/dijit_layout/ as a JSP. My

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.