Go4Expert

Go4Expert (http://www.go4expert.com/)
-   MFC (http://www.go4expert.com/forums/mfc/)
-   -   How to visible or available a Textbox in MFC ? (http://www.go4expert.com/forums/visible-available-textbox-mfc-t1959/)

zippor 21Nov2006 21:01

How to visible or available a Textbox in MFC ?
 
I have a Textbox and a button.
When my program run, the textbox's visible (default). After the button's clicked, the textbox changes status (available).
How do i have to do? Thanks

shabbir 21Nov2006 23:20

Re: How to visible or available a Textbox in MFC ?
 
Do you mean invisible? Just call the ShowWindow(SW_HIDE) for the textBox window.

zippor 22Nov2006 00:33

Re: How to visible or available a Textbox in MFC ?
 
Ya, it's mean invisible, but where to call ShowWindow(SW_HIDE)? ( both of the textbox and the button belongs to be dialog).

shabbir 22Nov2006 10:32

Re: How to visible or available a Textbox in MFC ?
 
If you have the DDX control of the text box then use that variable with . and ShowWindow function will be in the list.

If not you can use the GetDlgItem function to get the hwnd and then CWnd from the hWnd and then call the ShowWindow for it


All times are GMT +5.5. The time now is 17:14.