home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / os / mswindo / programm / misc / 1008 < prev    next >
Encoding:
Internet Message Format  |  1992-07-25  |  981 b 

  1. Path: sparky!uunet!wupost!waikato.ac.nz!comp.vuw.ac.nz!cc-server4.massey.ac.nz!acmebbs!olson!stefan
  2. Newsgroups: comp.os.ms-windows.programmer.misc
  3. Subject: Re: How to deactivate a check-box control
  4. Message-ID: <ckLeoB1w164w@olson.acme.gen.nz>
  5. From: stefan@olson.acme.gen.nz (Stefan Olson)
  6. Date: Fri, 24 Jul 92 07:36:59 +12
  7. References: <1992Jul22.060546.606@cco.caltech.edu>
  8. Lines: 17
  9.  
  10. heathh@cco.caltech.edu (Heath Ian Hunnicutt) writes:
  11.  
  12. >     How can I "deactivate" a check box control in a dialog
  13. > box from within the dialog procedure?  I mean turn it gray and
  14. > unresponsive, not just uncheck it. 
  15.  
  16. EnableWindow (hwndCheckBox, FALSE) ; // To gray it.
  17. EnableWindow (hwndCheckBox, TRUE)  ; // To put it back to normal
  18.  
  19. ...Stefan
  20.  
  21.  
  22.  
  23. ------------------------------------------------------------------------
  24.    Stefan Olson                     Mail: stefan@olson.acme.gen.nz
  25.    Kindness in giving creates love.
  26. ------------------------------------------------------------------------
  27.