Placing Logo on the Top DockBar of the F - 项目摘要 |
摘要
| 管理 |
论坛 文档
| 软件包 |
|
|
|
项目描述: |
Some time ago I participated in a project. We had to place our logo at some place in the right top corner of the frame window. I decided to place it on the top dockbar and created CLogo class for this purpose. This class is used for handling logo's location, tooltips and the message line in the status bar. Logo positions itself in the top right corner within parent dockbar. If the logo intersects with any toolbar then CLogo hides and otherwise it becomes visible. CLogo uses a string resource with the integer identifier of the logo window for displaying tooltips and the message line in the status bar. Besides, CLogo sends ON_LOGO_CLICK registered window message to the application main window when a user clicks on the logo window.
在框架窗口的Top DockBar里添加一个标志
不久前我参加了一个项目。我们不得不在框架窗口的右上角的某出添加标志。因此,我在Top DockBar里添加了一个标志并且创建了一个类CLogo.这个类用来在状态栏上显示标志的位置,工具提示及信息。Logo positions itself in the top right corner within parent dockbar.如果这个标志和任何的工具栏冲突,那么类CLogo将会隐藏,反之则会显示。类CLogo定义了一个字符串和一个整数来在状态栏上显示工具提示和信息。另外,当用户单击标志窗口时,类CLogo发送一个ON_LOGO_CLICK的注册信息给主窗体。
来源: http://www.codeguru.com/toolbar/LogoDemo.shtml |
类别: |
|
发布者:
cbd002
|
|
最新发布源码包 |
软件包 |
版本号 |
日期 |
本地下载 |
LogoDemo_demo |
 1.0  |
2004-04-18 |
下载 |
|
|