PB高级用法-String(long,"address")

PB高级用法-String(long,”address”)

这个方法在pb中用得

long 指的是字符串的地址

//hwnd 这里一般是指pb中的某个控件
SendMessageA(hwnd,WM_USER+1,1,(LPARAM)"hello Send");
PostMessageA(hwnd,WM_USER+1,1,(LPARAM)"hello Post");
//在pb对应的控件的other事件中 
//1024  指的是 WM_USER   0x400
if message.number = 1024 + 1 then
    //这里是我的事件
    if wparam = 1 then
    String hello
    hello = string(lparam,"address")
    //... 就取到你想要的内容了
    end if
end if
posted @ 2017-03-23 09:31  蒋佳威  阅读(59)  评论(0)    收藏  举报  来源