Posts: 12,097
Threads: 142
Joined: Dec 2002
Use SetWindowLong, then force window to repaint. Removing border also removes caption.
int h=win("Notepad")
SetWindowLong(h GWL_STYLE GetWindowLong(h GWL_STYLE)~(WS_BORDER|WS_DLGFRAME|WS_THICKFRAME))
siz 200 200 h
Posts: 1,271
Threads: 399
Joined: Mar 2003
nice.
and how to switch back to the original state ?
Posts: 1,271
Threads: 399
Joined: Mar 2003
the forum mailer said 'error sending mail' ... but it seems to work ...
Posts: 1,271
Threads: 399
Joined: Mar 2003
new approach ...
and how to switch back to the original state ?
Posts: 12,097
Threads: 142
Joined: Dec 2002
int h=win("Notepad")
act h
RECT r; GetWindowRect(h &r)
int pst=SetWindowLong(h GWL_STYLE GetWindowLong(h GWL_STYLE)~(WS_BORDER|WS_DLGFRAME|WS_THICKFRAME))
MoveWindow(h r.left r.top r.right-r.left r.bottom-r.top-1 1)
3
SetWindowLong(h GWL_STYLE pst)
MoveWindow(h r.left r.top r.right-r.left r.bottom-r.top 1)
Posts: 1,271
Threads: 399
Joined: Mar 2003
thanks