📄 slide022.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='slide023.html'">
<h2><font color='#009999'>27.7 Painting</font></h2>
<ul>
<li><font size="+1">Drawing images in a windowing environment is not quite as
straightforward as you might think.</font>
<ul>
<li><font size="+1">What happens when a user re-sizes the window? ... minimizes
the window? ... restores the window?</font></li>
<li><font size="+1">What happens when another frame pops up over the image
and then vanishes?</font></li>
</ul>
</li>
<li><font size="+1">The program has no idea when these events will happen.</font></li>
<li><font size="+1">When they do happen, the window manager knows the contents
of the window have been corrupted and sends a paint event to the program.</font></li>
<li><font size="+1">The program needs to draw the image not just once, but <i>every
time a paint even occurs</i>.</font></li>
<li><font size="+1">All drawing instructions must be placed into a function
that is is the target of paint events.
<blockquote><pre>EVT_PAINT(EllipseWindow::OnPaint)</pre></blockquote></font></li>
</ul>
<hr>
<center><small>
<a href='slide021.html'>prev</a>
|<a href='slide001.html'>top</a>
|<a href='slide023.html'>next</a>
</small></center>
</div>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -