14220.html

来自「以电子书的形式收集了VB一些常见问题解决方法,可以很方便的查找自己需要解决的问题」· HTML 代码 · 共 23 行

HTML
23
字号
<html>
  <head>
    <title>Re: 图形问题</title>
  </head>
  <body bgcolor="#FFFFFF" vlink="#808080">
    <center>
      <h1>Re: 图形问题</h1>
    </center>
<hr size=7 width=75%>

<hr size=7 width=75%><p>
Posted by <a href="mailto:garytsan@yahoo.com">Gary Tsang</a> on June 14, 1999 at 10:46:12:<p>
In Reply to: <a href="14212.html">图形问题</a> posted by 阿宝 on June 14, 1999 at 08:54:17:<p>
: 我在form中秀一张图,想在图上的某些区域再滑鼠按下时<br>: 产生如button的功能,该如何做<p>若是矩形的区域可用以下方法:<br>Private Sub Form_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)<br>If Button=vbLeftButton Then <br>If X>=leftX and X<=RightX and Y>=TopY and Y<=BottomY Then<br>'add your code here<br>End If<br>End If<br>End Sub<br>若是不规则的区域...看"VB6 & Windows API讲座"P333吧!
<br>
<br><hr size=7 width=75%><p>
<a name="followups">Follow Ups:</a><br>
<ul><!--insert: 14220-->
</ul><!--end: 14220-->
<br><hr size=7 width=75%><p>

</body></html>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?