Windows API Calls for Powerbuilder 5.0

¹®Á¦

CloseWindow( )

ÇØ°á

This function does not close a window as one might think. CloseWindow minimizes the window that is targeted. The closest Powerbuilder equivalent is the WindowState command, but this is limited to PB windows only.
The syntax in Powerbuilder is as follows: <window>.WindowState = Minimized!

Global External Function:
FUNCTION boolean CloseWindow(ulong w_handle) LIBRARY "User32.dll"

Script:
boolean rtn
ulong l_handle
l_handle = FindWindowA(0,"File manager") // Be sure to use the exact title of the window you
                                                          // are targeting.
rtn = CloseWindow(l_handle)

ÂüÁ¶