Windows API Calls for Powerbuilder 5.0

¹®Á¦

GetClassNameA( )

ÇØ°á

This function returns the class name of any object or window whose handle it receives. Be sure to allocate enough space for the string or you'll get a GPF when you exit Powerbuilder. There is no Powerbuilder equivalent to this function.

Global External Function:
Function long GetClassNameA(ulong hwnd, ref string cname, int buf) Library "User32.dll"

Script:
string l_class
long rtn
ulong l_handle
l_handle = handle(w_main)
l_class = space(50)
rtn = GetClassNameA(l_handle,l_class,50)
Messagebox("Classname", l_class)

 

ÂüÁ¶