Hi all!,
I want to do some operations after a button has been clicked.
The operation needs some calls to return a true so it can be returned from this method.
Code sample:
Code:
void CTerraformer::OnButtonFormTerra()
{
while (!m_bDone)
{
m_bDone = makeSomeOperationsHere();
MSG msg;
while (PeekMessage(&msg, NULL, 0, 0, true))
{
TranslateMessage(&msg);
DispatchMessage(&msg);
}
}
}
I saw a construct like the code sample above and to me it looks like
a mixture of MFC and pure WIN32 API programming.
My question: Is this a clean way to code MFC ???
Regards,
Robert