June 4th, 2009, 02:31 PM
regarding command button usage
i wished to exchange the data of my dialog box to variables only if the user clicks on the OK command button and not if he clicks on CANCEL button
My code is
above m_ok is variable that i have attached to command button and is of category "control" .....it never goes into this loop......kindly please tel what modifications i need to do??
int index=pDoc->GetBusIndex (m_BusNo);
pDoc->AppendBus(busindex,b->m_x1 ,b->m_y1 ,b->m_x2 ,b->m_y2 ,z,atol(m_BusNo),b->m_bOrien ,m_BusType,m_Volts,m_LoadAngle,m_BusName);
June 4th, 2009, 02:54 PM
Re: regarding command button usage
What do you expect this does ? What it really does, it checks if the pointer to m_ok is still there.. .but it isn't because after DoModal () all resources are destroyed.
DoModal () has a return value... you can use it to determine what button was pressed.
Last edited by Skizmo; June 4th, 2009 at 02:57 PM.
Tags for this Thread
Click Here to Expand Forum to Full Width
This is a CodeGuru survey question.