Change Style and ExStyle of a window...

Share your advanced PureBasic knowledge/code with the community.
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Change Style and ExStyle of a window...

Post by BackupUser »

Code updated for 5.20+

Restored from previous forum. Originally posted by Eddy.

My 4th contribution :)
TOTAL Win Style Customization...Easy way to do it.

Code: Select all

;**********************************************
NewStyle.l = .... ;new window style 
NewExStyle.l = .... ;new window Exstyle
OpenWindow(0,0,0,100,200, "Win Customization", NewStyle)

SetWindowLong_(WindowID(0), #GWL_EXSTYLE, @NewExStyle);Set Exstyle    
SetWindowPos_(WindowID(0), #HWND_TOPMOST,0,0,0,0,#SWP_NOMOVE|#SWP_NOSIZE);Always on top, if you want :)

;**********************************************
Example:
viewtopic.php?t=5204">http://forums.pur ... styles.asp


Blast !!!!
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by Eddy.

It works on gadget...Try it

Armageddon command : Format All +S +Pain \now
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by VPureBasic.

Hi All,
TOTAL Win Style Customization...Easy way to do it.
Or, you can use the integrated library "WindowEx" that I wrote. U can find it at Paul's site.

Ex: SetWindowStyle( WindowID( x ), Style, XStyle )

Roger
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by Eddy.

link please :)

Armageddon command : Format All +S +Pain \now
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by VPureBasic.

Here it is...
Originally posted by Eddy

link please :)

Armageddon command : Format All +S +Pain \now
http://www.reelmediaproductions.com/pb/asmlibrary.html

and you will a lot of good stuff for PB there.

Roger
Post Reply