Click here to Skip to main content
15,914,924 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi,

im doing a prog in which , when “Load” is entered in text box the check box has to be selected automatically ...i dono how to do it ,,, please help me

this is my code
C#
if (pWnd->GetDlgCtrlID("Load") == IDC_EDIT1)
    {
          // Set the text color to red
          pDC->SetTextColor(RGB(255, 0, 0));

          // Set the background mode for text to transparent
          // so background will show thru.
          pDC->SetBkMode(TRANSPARENT);

      // Return handle to our CBrush object
          hbr = m_brush;
     }




       if (pWnd->GetDlgCtrlID() == IDC_CHECK1)
       {
          // Set the text color to red
            pDC->SetTextColor(RGB(255, 0, 0));

          // Set the background mode for text to transparent
          // so background will show thru.
            pDC->SetBkMode(TRANSPARENT);


          DWORD dwStyle = pWnd->GetStyle("Load");

         if ( dwStyle &(BS_AUTOCHECKBOX |BS_CHECKBOX) )

          // Return handle to our CBrush object
            hbr = m_brush;
       }

thanks in advance
Posted
Updated 22-Mar-11 18:01pm
v4

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900