Windows API Calls for Powerbuilder 5.0

¹®Á¦

GetBkColor( )

ÇØ°á

This function returns the background color reference number of the window targeted. The Powerbuilder equivalent is as follows:
ulong l_color
l_color = w_main.BackColor

Global External Function:
FUNCTION ulong GetBkColor (ulong hwnd) LIBRARY "Gdi32.dll"

Script:
ulong l_handle, l_device, l_color
l_handle = handle(w_main)
l_device = GetDC(l_handle)
l_color = GetBkColor(l_device)

 

ÂüÁ¶