You've to call:

SendDlgItemMessage(hDlg, chechBoxId, WM_ENABLE, 0, 0); // Disable

SendDlgItemMessage(hDlg, chechBoxId, WM_ENABLE, 1, 0); // Enable

HTH,
Cabbi



                                                                           
             "spudgun0"                                                    
             <[EMAIL PROTECTED]                                             
             om>                                                           
             Sent by:                                                   To 
             [EMAIL PROTECTED]         [email protected]              
             s.com                                                      cc 
                                                                           
                                                                           
             14.09.2007 16:26                                              
                                                                           
                                                                   Subject 
             Please respond to         [c-prog] disabling a Check Box      
             [EMAIL PROTECTED]                                             
                   s.com                                                   
                                                                           
                                                                           
                                                                           
                                                                           



Caterpillar: Confidential Green                 Retain Until: 14.10.2007
                                                Retention Category:  G90 -
                                                General
                                                Matters/Administration


                                                                                
    
                                                                                
    
                                                                                
    
                                                                                
    
                                                                                
    
 hello....                                                                      
    
 I'm writing a C (not C++) program and I'm trying to write the code to          
    
 disable, run-time, a check box :                                               
    
 by disabling I mean make it grey in color and not responding to mouse          
    
 clicks ...                                                                     
    
                                                                                
    
 What it the message to send to the control, or to the parent Dialog            
    
 Box , to do this ? is there a speific Dialog function to do that ?             
    
                                                                                
    
 Thank You                                                                      
    
                                                                                
    
                                                                                
    
                                                                                
    
 

Reply via email to