⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 slide027.html

📁 《Big C++ 》Third Edition电子书和代码全集-Part1
💻 HTML
字号:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
	<meta content="blendTrans(Duration=2)" http-equiv="Page-Enter">
	<title>Big C++: Chptr. 27 -- Graphical User Interfaces</title>
	<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
  <meta name="Copyright" content="2005 John Wiley & Sons">
  <meta name="Author" content="Kurt Schmidt">
</head>


<body>
<div onclick="document.location='slide028.html'">
<h2><font color='#009999'>27.8 Mouse Events</font></h2>
<ul>
  <li><font size="+1">To handle mouse input in a graphical window, you install 
    a function that is notified when mouse events occur.</font></li>
  <li><font size="+1">There are several kinds of mouse events:</font> 
    <ul>
      <li><font size="+1">motion</font></li>
      <li><font size="+1">dragging (moving while depressing a mouse button)</font></li>
      <li><font size="+1">mouse button going down</font></li>
      <li><font size="+1">mouse button going up</font></li>
      <li><font size="+1">clicking (mouse button going up and down within a short 
        period)</font></li>
      <li><font size="+1">double clicking</font></li>
    </ul>
  </li>
  <li><font size="+1">You install the mouse handler with the <tt>EVT_MOUSE_EVENTS</tt> 
    macros.
	<blockquote>
      <pre>BEGIN_EVENT_TABLE(TriangleWindow, wxWindow)
   EVT_MOUSE_EVENTS(TriangleWindow::OnMouseEvent)
   . . .</pre>
    </blockquote> </font></li>
</ul>
<hr>
<center><small>
	<a href='slide026.html'>prev</a>
	|<a href='slide001.html'>top</a>
	|<a href='slide028.html'>next</a>
</small></center>
</div>
</body>
</html>

⌨️ 快捷键说明

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