Posts: 1,271
Threads: 399
Joined: Mar 2003
i have two questions.
how do i change the name of a drive (e.g. c:\) ?
how to rollup a window so that only the captionbar is visible ?
thanks
Posts: 12,140
Threads: 142
Joined: Dec 2002
dll kernel32 #SetVolumeLabel $lpRootPathName $lpVolumeName
SetVolumeLabel "c:\" "label" ;;set label
10
SetVolumeLabel "c:\" 0 ;;remove label
def CCHILDREN_TITLEBAR 5
type TITLEBARINFO cbSize RECT'rcTitleBar rgstate[CCHILDREN_TITLEBAR+1]
dll user32 #GetTitleBarInfo hwnd TITLEBARINFO*pti
int h=win("Quick Macros")
RECT r; GetWindowRect h &r ;;save
TITLEBARINFO ti.cbSize=sizeof(TITLEBARINFO)
GetTitleBarInfo h &ti
siz 0 ti.rcTitleBar.bottom-ti.rcTitleBar.top h 1
5
siz 0 r.bottom-r.top h 1 ;;restore
Posts: 1,271
Threads: 399
Joined: Mar 2003
do you have an idea why rollup doesn't work on calc.exe ?
Posts: 12,140
Threads: 142
Joined: Dec 2002
calculator restores itself. Only height. For example, max "Calculator" changes width, but not height.