sandyrepope
31-01-2008, 20:25
In the help file it says that the owner window can be specified. I usually use 0 here.
Could someone explain what the owner window is?
Also, why use it?
Thanks
Sandy
ErosOlmi
31-01-2008, 20:31
If you specify a owner window handle, MESSAGEBOX will be modal.
It means user cannot go back to the calling window until he/she reply to the messagebox.
It is preferable that you always specify a window handle. 0 (zero) is by default the desktop.
The window handle is the DWORD number returned by DIALOG NEW (http://www.thinbasic.com/public/products/thinBasic/help/html/dialog_new.htm) ... TO hWnd when a new window is created.
Ciao
Eros