How to wait for modal window's return value
A message box based on modal window widget with 2 buttons, one is ok, the other is cancel.When any button is clicked, modal window is hide and return the button value to the caller.
Can it be implemente in someway so it can be called like this?
int retValue = MessageBox(...);
Otherwise I have to fill callback fuction into the message box to get return result.