|
-
Jul 4th, 2002, 07:37 PM
#1
Thread Starter
Addicted Member
changinh control on the fly
Suppose I have a edit control in my dialog .Now I want to change it into check control or any other at runtime.Is it possible?
If yes then how
-
Jul 5th, 2002, 06:37 PM
#2
Monday Morning Lunatic
Easiest way is just to hide the old one, and display a new control instead (create them both at the start if you want, or just keep creating/destroying them).
The controls can't just "morph" into a new type, they have to be created specifically somehow.
I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
-- Linus Torvalds
-
Jul 5th, 2002, 11:01 PM
#3
PowerPoster
You'll have to do like Parskie said. Although, if you have created a button (of class "BUTTON"), you can change it to a checkbox, radio button, or a frame by changing its style using SetWindowLong accordingly.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|