By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,953 Members | 1,143 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,953 IT Pros & Developers. It's quick & easy.

Enable a CEdit Control

xarzu
P: 68
How do you change the enabled state of an CEdit control?

There does not seem to be any CEdit or CWnd member function that will do it.

In MSDN, there mentions something about a Control Table.

ControlCondition Table
http://msdn2.microsoft.com/en-US/library/aa368035.aspx

How do I make use of this?

There seems to be some way of doing this using the
pCmdUI pointer and saying pCmdUI->Enable( FALSE );
but the pCmdUI pointer needs to passed into a method.

So using the Class Wizard, I looked up what possible
method this might be associated with the edit control.

All I see as options are for
EN_ALIGN_LTR_EC
EN_ALIGN_RTR_EC
EN_CHANGE
EN_ERRSPACE
EN_HSCROLL
EN_KILLFOCUS
EN_UPDATE
EN_VSCROLL
and NM_THEMECHANGED
Aug 8 '07 #1
Share this question for a faster answer!
Share on Google+

Post your reply

Sign in to post your reply or Sign up for a free account.