Windows API Calls for Powerbuilder 5.0

¹®Á¦

DestroyWindow( )

ÇØ°á

This function sends a destroy message to the targeted window. The closest Powerbuilder equivalent is Close(<window>), but this is limited to PB windows only.

Global External Function:
FUNCTION boolean DestroyWindow(ulong w_handle) LIBRARY "USER32.DLL"

Script:
boolean rtn
ulong l_handle
open(w_win2) // Open a test window
l_handle = handle(w_win2)
rtn = DestroyWindow(l_handle)

 

ÂüÁ¶