|
-
Aug 4th, 2000, 06:44 PM
#1
Thread Starter
Fanatic Member
I have a Window without a titlebar and I need to subclass it (no problem with that). Now the problem is: to make VB not crash I would have to end my application by clicking the x button. But I don't have the x button. I have created my own form with custom close, min, max etc buttons. Now is there a way of exiting program without having to worry about what method I use to end?
-
Aug 4th, 2000, 07:35 PM
#2
Frenzied Member
I think the best way is just to send the window the WM_CLOSE message (use callwindowproc or sendmessage, wParam = lParam = 0)
-
Aug 4th, 2000, 07:42 PM
#3
The Unload statement triggers the QueryUnload event.
Code:
Private Sub Xit_Click()
Unload Me
End Sub
-
Aug 4th, 2000, 07:48 PM
#4
Thread Starter
Fanatic Member
Thanks!!
I was able to do it either way.
-
Aug 4th, 2000, 08:20 PM
#5
The Unload statement trigger's not only the QueryUnload event but also the Unload and Terminate events respectivly.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|