You are here:

C/how to use MFC application wizard

Advertisement


Question
QUESTION: Hi sir, i would like to ask how recognize the static box in this project. i saw the project in this website http://multyremotes.com/traffic-control-system.htm

could you help me to find the static box.It already contain the coding for this circuit.I need your help.

Thanks

Static Text
Static Text  
ANSWER: Hello Prabakaran

The control that the web site refers to is the static text control. Look at my attached screenshot to see it.

Best regards
Zlatko


---------- FOLLOW-UP ----------

software using vc++
software using vc++  
QUESTION: Thanks but I dont know to recognize which is the  5 static boxes and the 5 member variable which in this software which stated in this web...Can you brief me more about it or if you have any other idea can you share with me. Please sir i really need your assistance. I have attached the image of the software and the website is "http://multyremotes.com/traffic-control-system.htm"

Answer
static text
static text  
Hello

The 5 static boxes are pictured in the attachment. Only two of the boxes (box 3 and box 5) are identified in the code. The identifiers for the other boxes don't matter because the are never changed. Whatever IDC_ visual studio assigns to them is OK.

I believe that what I have labeled as "5" is IDC_COUNT, and what I have labeled as "3" is IDC_Time

void CTimersDlg::OnEnbl1()
{
// TODO: Add your control notification handler code here
UpdateData(TRUE);
m_enb2 = FALSE;
...

GetDlgItem(IDC_COUNT)->EnableWindow(TRUE);  // BOX 5
GetDlgItem(IDC_Time)->EnableWindow(TRUE);   // BOX 3

...
SetTimer(ID_CLOCK_TIME, 1000, NULL);
SetTimer(ID_CLK_TIMR,1000,NULL);
UpdateData(FALSE);
}

C

All Answers


Answers by Expert:


Ask Experts

Volunteer


Zlatko

Expertise

No longer taking questions.

Experience

No longer taking questions.

Education/Credentials
No longer taking questions.

©2012 About.com, a part of The New York Times Company. All rights reserved.