Code:
bool close = false;
while(close == false)
{
if(MessageBox(NULL,"ONLY THE LUBEMAN CAN CLOSE THIS!!!!", "So Are You The LUBEMAN???",
MB_YESNO | MB_ICONERROR == IDYES))
{
close = true;
}
else if(MessageBox(NULL,"ONLY THE LUBEMAN CAN CLOSE THIS!!!!", "So Are You The LUBEMAN???",
MB_YESNO | MB_ICONERROR == IDNO))
{
close = false;
}
ok when i click close it just closes after asking the question it doesnt loop if i say no or anything? its like it just reads it and completely ignores the fact that IF then do this is there a reason it does this or what am i missing?
it completely skips the else if only asking the question once i just cant get the question to ask and if it says no then loop back if it says yes then exit and go destroy the window. i have no clue why its like the messagebox if's seem immune to the fact that { } normally ment follow these instructions only if ID_YES is done and its just done regardless.
any reason for this??? thanks
ive fiddled with this for a while and this is just the curent result im running with