Gedrain
April 28th, 1999, 10:31 AM
HHHHEEEEEEEEY people
i have a new question today :))
I know now when a button is clicked but, how can i wait in my function.
this is the function where i get when the mouse is clicked
BOOL Claden::OnCmdMsg(UINT nID, int nCode, void* pExtra, AFX_CMDHANDLERINFO* pHandlerInfo)
{
if (nID==IDC_OKFACTOR)
{
check=TRUE;
}
return CDialog::OnCmdMsg(nID, nCode, pExtra, pHandlerInfo);
}
i maid a variable Check when the button OK is pressed check becomes TRUE. But now i have a other function where i must wait while not CHECK = true
like this
void Claden::Onladen()
{
while (check==false); //while not OK button is pressed then wait
}
but i maid that function and my WINDOW is stuck like hell i can't click the button ok :((
hm real weird the WHILE thing does it but i don't now i can fixed :((
help me
thx
i have a new question today :))
I know now when a button is clicked but, how can i wait in my function.
this is the function where i get when the mouse is clicked
BOOL Claden::OnCmdMsg(UINT nID, int nCode, void* pExtra, AFX_CMDHANDLERINFO* pHandlerInfo)
{
if (nID==IDC_OKFACTOR)
{
check=TRUE;
}
return CDialog::OnCmdMsg(nID, nCode, pExtra, pHandlerInfo);
}
i maid a variable Check when the button OK is pressed check becomes TRUE. But now i have a other function where i must wait while not CHECK = true
like this
void Claden::Onladen()
{
while (check==false); //while not OK button is pressed then wait
}
but i maid that function and my WINDOW is stuck like hell i can't click the button ok :((
hm real weird the WHILE thing does it but i don't now i can fixed :((
help me
thx