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

  • SEARCH
  • Home
  • 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 6109171
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T14:22:30+00:00 2026-05-23T14:22:30+00:00

I want to detect when any control on a dialog box is changed by

  • 0

I want to detect when any control on a dialog box is changed by user action. For example, when data is entered in a text box, a date is entered in a date-time picker, a check box is checked or unchecked, etc. Up to now I have ignored such notifications and simply retrieved the state of the controls when the user pushes some button but now I want to know a change has taken place (I want to enable the Apply button on a property sheet). I don’t really care what change has taken place, all I want to know is that something has changed. By change I do NOT mean a change in focus but some actual action by the user to change a control.

I use plain old c++, no MFC or anything fancy.

How do I go about this?

  • 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-05-23T14:22:31+00:00Added an answer on May 23, 2026 at 2:22 pm

    You can test whether a checkbox has been checked with the BN_CLICKED notification code which you’d get through WM_COMMAND.

    switch( uMsg ) {
      ...
      case WM_COMMAND: {
        switch( HIWORD( wParam ) ) {
        case BN_CLICKED: {
          if( Button_GetCheck( lParam ) == BST_CHECKED ) {
            ...
          }
    
          break;
        }
        default:
          return false;
        }
        break;
      }
      default:
        return false;
    }
    
    return true;
    

    That is an example of how your DialogProc might be set up. You can switch on lParam or LOWORD( wParam ) to identify which button.

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

Sidebar

Related Questions

Edited // I want to detect flash support ( not user string agent )
The final outcome I want is actually detect if the clipboard contains any Image,
I want to know how can I detect if the user is already logged
How can I detect changes in any control of the form in C#? As
i want to detect to see if an element was dragged out of container.
I want to detect when an include in a jsp occurs in a web
I want to detect and replace tab characters in a bit of HTML like
I want to detect one kind of object such as person in the picture,
I want to detect when my touchpad is clicked! I normally use a usb
I want to detect the presence of a scroll bar in a DIV using

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.