标题:XP 和 WIN7 不能通用
取消只看楼主
glchenjin
Rank: 1
等 级:新手上路
帖 子:6
专家分:0
注 册:2014-8-17
结帖率:100%
 问题点数:0 回复次数:0 
XP 和 WIN7 不能通用
Private Declare Function FindWindow Lib "user32" Alias "FindWindowA" (ByVal lpClassName As String, ByVal lpWindowName As String) As Long
Private Declare Function SetParent Lib "user32" (ByVal hWndChild As Long, ByVal hWndNewParent As Long) As Long
Private Sub Command1_Click()
  Dim i&
  i = FindWindow("wndclass_desked_gsk", vbNullString)
  SetParent Me.hWnd, i
End Sub
Private Sub Command2_Click()
  SetParent Me.hWnd, 0
End Sub
这段代码XP里可以移动窗体,win7里不行,请问高手是什么原因
搜索更多相关主题的帖子: 通用 
2014-08-19 23:28



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-435169-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.270301 second(s), 8 queries.
Copyright©2004-2025, BCCN.NET, All Rights Reserved