Open file-explorer on specific folder + set window position?

Windows specific forum
User avatar
skywalk
Addict
Addict
Posts: 3972
Joined: Wed Dec 23, 2009 10:14 pm
Location: Boston, MA

Re: Open file-explorer on specific folder + set window posit

Post by skywalk »

Kukulkan wrote:; Folder to open explorer in
; does not work with drive only (like "c:" or "f:")
Folder.s = "c:\"

~~~
GetWindowRect_(hWnd,r.RECT)
MoveWindow_(hWnd,550,50,r\right-r\left,r\bottom-r\top,1)
You can set Folder.s = "C:\" if you catch the return values for the api calls and use CAPS for 'C' or 'F'.

ri.i = MoveWindow_(hWnd,550,50,r\right-r\left,r\bottom-r\top,#SWP_SHOWWINDOW)
The nice thing about standards is there are so many to choose from. ~ Andrew Tanenbaum
Post Reply