📄 vector_control.shtml
字号:
<html><head><meta HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1"><meta NAME="Author" CONTENT="Guy Gascoigne - Piggford"><title>Controls - Custom 3-D Vector Control</title></head><body background="../fancyhome/back.gif" bgcolor="#FFFFFF" link="#B50029" vlink="#8E2323"alink="#FF0000" bgproperties="fixed"><table WIDTH="100%"> <tr WIDTH="100%"> <td><!--#exec cgi="/cgi/ads.cgi"--></td> <td></td> </tr></table><h3 align="center"><font COLOR="#AOAO99">Custom 3-D Vector Control</font></h3><hr align="center"><p>This code was contributed by <a HREF="mailto:s2848447@t2.technion.ac.il">Eran Yariv</a><!-- start --><p align="center"><img src="vector_control_1.jpg" WIDTH="284" HEIGHT="175"></p><p align="center"> </p><h3 align="left">This control has the following features:</h3><ul> <li><h4 align="left">A 3D vector MFC control derived from CButton.</h4> </li> <li><h4 align="left">Real-time light rendering on a 3D ball.</h4> </li> <li><h4 align="left">Variable ball radius and position.</h4> </li> <li><h4 align="left">Supports bitmap background (tiled).</h4> </li> <li><h4 align="left">Supports vertical gradient color background (from color to color, as visiable in screen capture above).</h4> </li> <li><h4 align="left">Variable ball color (diffuse), light color and ambient color.</h4> </li> <li><h4 align="left">Variable specular intensity.</h4> </li> <li><h4 align="left">Supports attached controls (for automatic update).<br> That is, you can specify IDs of other controls that will reflect (textually) the value of a specific vector component. The vector control will automatically update (calling SetwindowText) the display. See the 3 static text controls in the example above.</h4> </li> <li><h4 align="left">Variable mouse sensitivity.</h4> </li> <li><h4 align="left">Supports front clipping (vector will not have negative Z values).</h4> </li> <li><h4 align="left">Supports callback functions for the following events:<br> 1. The trackball has moved (vector is changing).<br> 2. The user dropped the trackball (released left mouse button). i.e., the vector was changed.<br> </h4> </li></ul><p><a href="vector_control_source.zip">A dialog-based sample application (screen capture above) andthe control source code can be found here</a></p><!-- end --><p>Posted on: April 11, 98. </p><hr><table BORDER="0" WIDTH="100%"> <tr> <td WIDTH="33%"><font SIZE="-1"><a HREF="http://www.codeguru.com">Goto HomePage</a></font> </td> <td WIDTH="33%"><p align="center"><font SIZE="-2">
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -