Windows API Calls for Powerbuilder 5.0

¹®Á¦

PostMessageA( )

ÇØ°á

This function posts a message (such as minimize or close) in the message queue associated with the thread that created the specified window and then returns without waiting for that thread to process the message. There is no Powerbuilder equivalent. For more information on the codes associated with this function see the MSDN.

Global External Function:
FUNCTION boolean PostMessageA(ulong hwndle,UINT wmsg,ulong wParam,ulong lParam) &
                                                Library "User32.dll"
Script:
ulong l_handle
boolean rtn
l_handle = handle(w_main)
rtn = PostMessageA(l_handle,274,61472,0)        // 61472 = minimize, 61488 = maximize,
                                                                // 61728 = normal state

 

ÂüÁ¶