|
-
Aug 12th, 2000, 10:22 PM
#1
Thread Starter
Fanatic Member
I'd like to remove to Thickboarder, Min and max buttons, and the sysmenu from another window. I've already worked out the code to get the hwnd and the current style flags.
So far, I've tried most of the logic functions with the bits to try to turn them off.
the code looks something like this:
Code:
Dim newstyle As Long
oldstyle = GetWindowLong(hwnd&, GWL_STYLE)
newstyle = oldstyle Or (WS_CAPTION Or WS_MAXIMIZEBOX Or WS_MINIMIZEBOX Or WS_SYSMENU Or WS_THICKFRAME)
SetWindowLong hwnd&, GWL_STYLE, newstyle
I've tried "or not", "and", "or", "and not", "-", "+", and "xor"
None seem to have any effect.
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
|