加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 大数据 > 正文

VB实现全窗体移动

发布时间:2020-12-16 23:16:28 所属栏目:大数据 来源:网络整理
导读:Private Declare Function ReleaseCapture Lib "user32" () As LongPrivate Declare Function SendMessage Lib "user32" Alias "SendMessageA" (ByVal hwnd As Long,ByVal wMsg As Long,ByVal wParam As Long,lParam As Any) As LongPrivate Const WM_NCLBUT

http://topic.csdn.net/t/20030524/18/1829023.html

http://zhidao.baidu.com/question/93411647.html?fr=qrl&cid=867&index=5&fr2=query

我想把form5移动到form3中picture1的位置,下面是我的代码(在form3的code中): 

Dim r2 As RECT 

GetWindowRect Picture1.hwnd,r2 

Form5.ScaleMode = vbPixels '设置坐标单位为像素

Form5.Move r2.Left,r2.Top 

Form5.Show 

为什么移动的坐标仍然是默认的缇而不是屏幕像素呢? 
请指教! 
问题补充:
要实现窗口的正确移动,应该怎么做?
将form5的左上角的位置挪到form3中picture1左上角的位置

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读