动态移动控件

[入库:2005年8月18日] [更新:2007年3月24日]

本文简介:选择自 shawls 的 blog

private declare function sendmessage lib "user32" alias _
"sendmessagea" (byval hwnd as long, byval wmsg as long, _
byval wparam as long, lparam as any) as long
const wm_syscommand = &h112
const sc_move = &hf012

'---- 在 窗 体 中 添 加 一 命 令 按 钮command1, 双 击 写 代 码 如 下:

private sub command1_click()
dim ren as integer
ren = sendmessage(command1.hwnd, wm_syscommand, sc_move, 0)
end sub

'---- 在 窗 体 中 添 加 命 令 按 钮command2, 双 击 写 如 下 代 码:

private sub command2_click()
unload me
end sub

本文关键:动态,移动,控件
  相关方案
Google
 

本站最佳浏览方式为 分辨率 1024x768 IE 6.0(或更高版本的 IE浏览器)

go top