一
在Powerbulider巧妙地調用API函數SendMessage
二
SendMessage函數說明
說明
調用一個窗口的窗口函數
返回值
Long
參數表
參數 類型及說明
hwnd Long
wMsg Long
wParam Long
lParam Any
Powerbuilder中已使用函數Send函數對其進行了封裝
函數原形
Send函數說明
說明
調用一個窗口的窗口函數
返回值
Long
參數表
參數 類型及說明
handle Long
message# Long
lowword Long
long long
定義外部函數引用聲明
funcation long SendMessage (long hwnd As Long
funcation long ReleaseCapture() Library
定義實例變量
Constant long LB_ITEMFROMPOINT =
Constant long HTCAPTION =
Constant long WM_NCLBUTTONDOWN =
Constant long EM_GETLINE =
Constant long EM_GETLINECOUNT =
Constant long EM_GETLINECOUNT =
Constant long EM_GETLINE =
Constant long TVM_SETITEMHEIGHT =
Constant long EM_LINESCROLL =
Constant long EM_LIMITTEXT=
Powerscript:
在列表框的自定義事件ue_mousemove(pbm_mousemove)中寫入如下代碼
pos = unitstopixels(parent
idx = SendMessage(handle(this)
Powerscript:
窗口的open事件
[
From:http://tw.wingwit.com/Article/program/PB/201311/24597.html