I have a MDI window containing multiple tabs. What I want to do is to disabled the close event every time the user clicked the exit button on the tab. But I didn't know how to accomplish those. Can anyone please help me with this? Thank you.
Here is the sample tab and exit button I was referring from my question above.
and this is what I have so far. Still the window is closing every time i clicked the exit button.
integer ext
ext = MessageBox("","You are not allowed to close this tab",(Exclamation!),(OK!))
if (ext = 1) then
Open(w_main)
end if
That's not easy. You should handle with user32.dll api and remove, modify and draw the menubar.
Open Global External Functions tab and insert:
And now: