Click here to Skip to main content
15,921,959 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Checking a CWnd pointer Pin
Hadi Dayvary22-Nov-07 2:02
professionalHadi Dayvary22-Nov-07 2:02 
AnswerRe: Checking a CWnd pointer Pin
jhwurmbach22-Nov-07 5:43
jhwurmbach22-Nov-07 5:43 
GeneralRe: Checking a CWnd pointer Pin
Iain Clarke, Warrior Programmer22-Nov-07 6:09
Iain Clarke, Warrior Programmer22-Nov-07 6:09 
QuestionDisable Activex Controls on Another Application Pin
narayanagvs22-Nov-07 0:52
narayanagvs22-Nov-07 0:52 
QuestionHow do I create a CDialog object without showing it? Pin
arnold_w22-Nov-07 0:26
arnold_w22-Nov-07 0:26 
AnswerRe: How do I create a CDialog object without showing it? Pin
CPallini22-Nov-07 0:42
mveCPallini22-Nov-07 0:42 
GeneralRe: How do I create a CDialog object without showing it? Pin
arnold_w22-Nov-07 1:37
arnold_w22-Nov-07 1:37 
GeneralRe: How do I create a CDialog object without showing it? Pin
CPallini22-Nov-07 2:00
mveCPallini22-Nov-07 2:00 
GeneralRe: How do I create a CDialog object without showing it? Pin
Malli_S22-Nov-07 2:13
Malli_S22-Nov-07 2:13 
GeneralRe: How do I create a CDialog object without showing it? Pin
CPallini22-Nov-07 2:21
mveCPallini22-Nov-07 2:21 
GeneralRe: How do I create a CDialog object without showing it? Pin
arnold_w22-Nov-07 2:22
arnold_w22-Nov-07 2:22 
GeneralRe: How do I create a CDialog object without showing it? Pin
arnold_w22-Nov-07 2:16
arnold_w22-Nov-07 2:16 
AnswerRe: How do I create a CDialog object without showing it? Pin
Malli_S22-Nov-07 2:09
Malli_S22-Nov-07 2:09 
GeneralRe: How do I create a CDialog object without showing it? Pin
arnold_w22-Nov-07 2:19
arnold_w22-Nov-07 2:19 
QuestionDynamic Port allocation Pin
Shreyas Ganesh22-Nov-07 0:24
Shreyas Ganesh22-Nov-07 0:24 
AnswerRe: Dynamic Port allocation Pin
Moak29-Nov-07 23:50
Moak29-Nov-07 23:50 
QuestionTCHAR[500] to const char* Pin
Paulraj G21-Nov-07 23:47
Paulraj G21-Nov-07 23:47 
AnswerRe: TCHAR[500] to const char* Pin
CPallini22-Nov-07 0:11
mveCPallini22-Nov-07 0:11 
AnswerRe: TCHAR[500] to const char* Pin
winter7723-Nov-07 19:32
winter7723-Nov-07 19:32 
QuestionOn Timer Pin
Chandrasekharan P21-Nov-07 23:40
Chandrasekharan P21-Nov-07 23:40 
AnswerRe: On Timer Pin
KarstenK22-Nov-07 0:35
mveKarstenK22-Nov-07 0:35 
AnswerRe: On Timer Pin
GauranG Shah22-Nov-07 1:58
GauranG Shah22-Nov-07 1:58 
AnswerRe: On Timer Pin
pierre_ribery22-Nov-07 11:14
pierre_ribery22-Nov-07 11:14 
GeneralRe: On Timer Pin
Chandrasekharan P22-Nov-07 16:31
Chandrasekharan P22-Nov-07 16:31 
GeneralRe: On Timer Pin
pierre_ribery22-Nov-07 19:43
pierre_ribery22-Nov-07 19:43 
ok, if I understand you correc, you want to increment the value of an edit box every 1 second, starting from 0 going to 100. If that is the case, then a timer is the way to go.

Your timer needs to be set up for 1000ms(1sec). You have set it up for 100ms only.

SetTimer(1,1000,NULL);

Now create a member variable for your edit control of type "value" and set its datatype to int. Lets call it "value".

In OnTimer:

if (nIDEvent==1)
{
if(value < 100)
{
value++;
UpdateData(FALSE);
}
}

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.