How to set/remove ES_READONLY style of CEdit at runtime?
C / C++ / MFC
3
Posts
3
Posters
0
Views
1
Watching
-
How to set/remove ES_READONLY style of CEdit at runtime?
-
How to set/remove ES_READONLY style of CEdit at runtime?
Have you tried
ModifyStyle()
, orSetReadOnly()
?"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"Some people are making such thorough preparation for rainy days that they aren't enjoying today's sunshine." - William Feather
-
How to set/remove ES_READONLY style of CEdit at runtime?
To change it at runtime, you can't use the flag
ES_READONLY
directly. You have to use theEM_SETREADONLY
message. See MSDN.