none
Message for CheckBox click RRS feed

  • Question

  • Hi all,

    I am working with MFC and BCGSoft in work and i've ran into a strange problem..

    In my Backstage view I have a form that's for options, in this form I have a checkbox.

    But when I click the checkbox the code I am trying to call will not trigger at all..

    I have added the Button Click event through the resource voice and properties tab but still nothing when changing the checkbox.

    I also have a save button on this same form and the message box for that works no problem.

    Any ideas on how I can resolve this?

    //OnSystemTheme Switch
    ON_BN_CLICKED(IDR_USE_SYSTEM_THEME, &CBackStageOptions::OnSystemTheme)
    
    
    //Trigger code
    void CBackStageOptions::OnSystemTheme()
    {
    	int i = 101;
    }
    

    Wednesday, January 15, 2020 4:22 PM

All replies

  • Use Spy++ and check if the WM_COMMAND message BN_CLICKED is occurring.

    If it's a special BCGSoft checkbox rather than the standard checkbox, it might behave differently. Have you tried a standard checkbox?

    Wednesday, January 15, 2020 4:47 PM
  • Hi David,

    Thanks for getting back to me. I just used a regular checkbox there and it worked no problem..

    I will switch these around till I figure out what needs to be done with the BCG Control

    Thanks for the help!

    Wednesday, January 15, 2020 5:04 PM
  • I just used a regular checkbox there and it worked no problem..

    I will switch these around till I figure out what needs to be done with the BCG Control

    Hello,

    accordingly you use a control of BCGSoft. You should better ask in a BCGSoft forum. https://www.bcgsoft.com/support.htm

    Regards, Guido

    Thursday, January 16, 2020 7:03 AM