home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!wupost!waikato.ac.nz!comp.vuw.ac.nz!cc-server4.massey.ac.nz!acmebbs!olson!stefan
- Newsgroups: comp.os.ms-windows.programmer.misc
- Subject: Re: How to deactivate a check-box control
- Message-ID: <ckLeoB1w164w@olson.acme.gen.nz>
- From: stefan@olson.acme.gen.nz (Stefan Olson)
- Date: Fri, 24 Jul 92 07:36:59 +12
- References: <1992Jul22.060546.606@cco.caltech.edu>
- Lines: 17
-
- heathh@cco.caltech.edu (Heath Ian Hunnicutt) writes:
-
- > How can I "deactivate" a check box control in a dialog
- > box from within the dialog procedure? I mean turn it gray and
- > unresponsive, not just uncheck it.
-
- EnableWindow (hwndCheckBox, FALSE) ; // To gray it.
- EnableWindow (hwndCheckBox, TRUE) ; // To put it back to normal
-
- ...Stefan
-
-
-
- ------------------------------------------------------------------------
- Stefan Olson Mail: stefan@olson.acme.gen.nz
- Kindness in giving creates love.
- ------------------------------------------------------------------------
-