Can someone please tell me what APIs and arguements are used to create a Fixed Single style window with a minimize button? I need an example using SetWindowLong. Thank you
Printable View
Can someone please tell me what APIs and arguements are used to create a Fixed Single style window with a minimize button? I need an example using SetWindowLong. Thank you
Just set the BorderStyle to Fixed Single and the MinButton property to True ;)
I know but I need to change the window style while the program is running so I need to use SetWindowLong
No you can still set the properties at runtime.
This doesn't work:
Private Sub Command1_Click()
Me.BorderStyle = 1
Me.MinButton = True
End Sub
It should here is an example for changing the forms borderstyle to None
Code:Form1.BorderStyle = 0
Form1.Caption = Form1.Caption
If you really must use API then have a look at the following thread...
http://www.vbforums.com/showthread.p...e+form+runtime
Actually this is better. :D
Post #9 on down...
http://www.vbforums.com/showthread.php?threadid=202781