GIDForums  

Go Back   GIDForums > Computer Programming Forums > MS Visual C++ / MFC Forum
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
 
 
Thread Tools Search this Thread Rate Thread
  #1  
Old 23-Mar-2005, 20:35
shinyhui shinyhui is offline
Awaiting Email Confirmation
 
Join Date: Feb 2005
Posts: 38
shinyhui is on a distinguished road
Lightbulb

Enable radio button and check box


How may i enabled radio button and check box? when during run time i set all my radio button and check box until something happen it only enable.

i set my code as m_radiobutton.EnableWindow(TRUE) and m_checkbox.EnableWindow(TRUE) but error... error stated left of '.EnableWindow' must have class/struct/union type

is there anybody have any idea?
  #2  
Old 23-Mar-2005, 23:51
LuciWiz's Avatar
LuciWiz LuciWiz is offline
Moderator
 
Join Date: Jul 2004
Location: Cluj-Napoca (Romania)
Posts: 1,037
LuciWiz is just really niceLuciWiz is just really niceLuciWiz is just really niceLuciWiz is just really nice
Quote:
Originally Posted by shinyhui
How may i enabled radio button and check box? when during run time i set all my radio button and check box until something happen it only enable.

i set my code as m_radiobutton.EnableWindow(TRUE) and m_checkbox.EnableWindow(TRUE) but error... error stated left of '.EnableWindow' must have class/struct/union type

is there anybody have any idea?

Did you associate your variables with the controls? Are they pointers to button and pointer to check box?

Regards,
Lucian
__________________
Please read these Guidelines before posting on the forum

"A person who never made a mistake never tried anything new."
Einstein
  #3  
Old 14-Jul-2008, 10:21
pensive.mb pensive.mb is offline
New Member
 
Join Date: Jun 2008
Posts: 2
pensive.mb is on a distinguished road
Smile

Re: Enable radio button and check box


CPP / C++ / C Code:
CButton *ChkPhysical = new CButton;	
ChkPhysical = reinterpret_cast<CButton *>(GetDlgItem(IDC_BOX_IDENTIFIER));
ChkPhysical->EnableWindow(FALSE);

Use this , this definitely works...
 


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
FLTK && fluid In Motion cable_guy_67 FLTK Forum 4 20-Mar-2008 03:52
Simple FLTK dialog box sample cable_guy_67 FLTK Forum 4 02-Nov-2004 08:46
How to set the control button in the pushed mode? mithila MS Visual C++ / MFC Forum 1 27-Sep-2004 06:32

Network Sites: GIDNetwork · GIDApp · GIDBlog · Learning Journal by J de Silva, The

All times are GMT -6. The time now is 13:00.


vBulletin, Copyright © 2000 - 2014, Jelsoft Enterprises Ltd.