CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    May 2014
    Posts
    205

    Question How to make button stay down in winapi?

    Edit: Wrong title of the question

    How to enable checkbox or disable? I know that it has some enable bit but how to do it?
    Last edited by crazy boy; July 10th, 2015 at 05:01 AM.

  2. #2
    GCDEF is offline Elite Member Power Poster
    Join Date
    Nov 2003
    Location
    Florida
    Posts
    12,635

    Re: How to make button stay down in winapi?

    The same way you do any other window. Either CWnd::Enable() or EnableWindow().

  3. #3
    Join Date
    May 2014
    Posts
    205

    Re: How to make button stay down in winapi?

    I was inaccurate. I mean how to toggle state of checkbox. I found the answer:
    https://msdn.microsoft.com/en-us/lib...=vs.85%29.aspx

  4. #4
    Join Date
    Nov 2000
    Location
    Voronezh, Russia
    Posts
    6,620

    Re: How to make button stay down in winapi?

    Quote Originally Posted by crazy boy View Post
    I was inaccurate.
    You were. And according to what I can see for a couple of weeks in CG forums, you desperately need to catch up with WinAPI basics, principles and terminology. So the advice seems inevitable: get some good reading on Win32 API programming, like some book from Petzold's Programming Windows.
    Last edited by Igor Vartanov; July 11th, 2015 at 01:23 AM.
    Best regards,
    Igor

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured