in my code for what happens when I click on my MAIN BUTTON runs my function light hack.
Inside my lighthack function is a for(;;) {} forever loop. Inside this forever loop
is a break when a condition is met. The problem I am having is when I click on this button
my program goes none-responding until the condition in the forever loop has been met.
Upon this time nothing else on my program works. How can I have this loop running
and the program still respond to events?
case IDC_MAIN_BUTTON:
{
LightHack(); // Inside this function is a for(;;) loop
ShowWindow(*phwnd,SW_HIDE);
};