那位大哥帮我写一个返回显示器的当前分辨录的函数。

baoma2000 2003-10-20 11:16:20
那位大哥帮我写一个返回显示器的当前分辨录的函数。
...全文
21 12 打赏 收藏 转发到动态 举报
写回复
用AI写文章
12 条回复
切换为时间正序
请发表友善的回复…
发表回复
zxt1980 2003-10-24
  • 打赏
  • 举报
回复
up
zxlkxy 2003-10-23
  • 打赏
  • 举报
回复
sc
kmzs 2003-10-23
  • 打赏
  • 举报
回复
public sub main()
dim x,y
x=screen.width/15
y=screen.height/15
msgbox "你的电脑分辨率是" & x & " * " & y
end
end sub
jinxjun 2003-10-23
  • 打赏
  • 举报
回复
x = Screen.Width \ Screen.TwipsPerPixelX
y = Screen.Height \ Screen.TwipsPerPixelY
genway 2003-10-21
  • 打赏
  • 举报
回复
不用API吧?
屏幕宽=Screen.Width / Screen.TwipsPerPixelX
屏幕高=Screen.Height / Screen.TwipsPerPixelY

其中:
高值应为640、800、1024...(屏幕当前宽度)
宽值应为480、600、768...(屏幕当前宽度)
online 2003-10-21
  • 打赏
  • 举报
回复
public sub main()
dim x,y
x=screen.width/screen.twipsperpixelx
y=screen.height/screen.twipsperpixely
msgbox "你的电脑分辨率是" & x & " * " & y
end
end sub
apple800 2003-10-21
  • 打赏
  • 举报
回复
简单一点的:
public Function FunFaceSize()as string
FunFaceSize="的屏幕分辨率是:" & screen.winth/15 & "*" & screen.height/15
end function
sword281 2003-10-21
  • 打赏
  • 举报
回复
如用api
查getsystemmetrics函数
SM_CXSCREEN,
SM_CYSCREEN
明镜台2014 2003-10-21
  • 打赏
  • 举报
回复
關注﹗
intocsdn 2003-10-21
  • 打赏
  • 举报
回复
msgbox "当前分辨率:" & Screen.Width / 15 & " x " & Screen.Height / 15
hcj2002 2003-10-21
  • 打赏
  • 举报
回复
x = Screen.Width \ Screen.TwipsPerPixelX
y = Screen.Height \ Screen.TwipsPerPixelY
baoma2000 2003-10-20
  • 打赏
  • 举报
回复
用API应该不难吧,可是我一点都不会。

1,486

社区成员

发帖
与我相关
我的任务
社区描述
VB API
社区管理员
  • API
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧