![]() |
|
#1
|
|||
|
|||
Problems with SetCheckHi,
I have a check button in a CPropertyPage. It needs to change it's state based on data from the item selected from a list box. I've done similar things in other places and haven't had any problems using: if( someBool ) m_cButton.SetCheck(BST_CHECKED); else m_cButton.SetCheck(BST_UNCHECKED); in the event handler for list selection change, where m_cButton is bound in DoDataExchange. For some reason however when I do this here it always unchecks the button, no matter the value passed to SetCheck, which I've checked in the debugger. I have also tried CheckDlgButton and (CButton*)GetDlgItem(IDC_CHECKID)->SetCheck but get the same result. Does anyone have any idea what could be causing this? Thanks for any help. |
|||
Recent GIDBlog
Problems with the Navy (Enlisted) by crystalattice
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| IE 7 Problems | colliegirl | Computer Software Forum - Windows | 6 | 05-Jun-2008 08:10 |
| Recent problems with antivirus programmes | steven_symantec | Member Announcements, Advertisements & Offers | 3 | 14-Feb-2008 21:22 |
| Problems while burning CD's | netnut | Computer Software Forum - Windows | 16 | 17-Jan-2008 23:45 |
| Chaintech Geforce 5600 FX problems | bartster74 | Computer Hardware Forum | 8 | 04-May-2004 13:16 |
| Serious Problems: Exabyte Products and Service | pkazmercyk@comc | Computer Hardware Forum | 2 | 05-Feb-2004 07:59 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The