As I'm noob, i want to ask all: How can I realise the treatment of a button, when in the application in that time works another function?
For example:
void Loop()
{
while (true);
}
static LRESULT CALLBACK MainDlgProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam)
{
// checking the buttons
}
int PASCAL WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPWSTR lpszCmdLine, int nCmdShow)
{
Loop();
}
I want to check buttons state when Loop() executes:)
Please explaine me this moment.