Better Tip of the Day dialog | CodeGuru

Better Tip of the Day dialog

Download Source Code and Example New VC++ look Tip of the day Standard Component Gallery Tip of the Day dialog Microsoft supplies a standard Component Gallery item called Tip of the day. IMHO this dialog is quite ugly, so I wrote another one which reproduces the look of the VC++ 4.0 Tip of the Day […]

Written By
CodeGuru Staff
CodeGuru Staff
Aug 7, 1998
2 minute read
CodeGuru content and product recommendations are editorially independent. We may make money when you click on links to our partners. Learn More

Download Source Code
and Example






New VC++ look Tip of the day



Standard Component Gallery Tip of the Day dialog

Microsoft supplies a standard Component Gallery
item called Tip of the day. IMHO this dialog is quite ugly, so I wrote
another one which reproduces the look of the VC++ 4.0 Tip of the Day dialog.
System color changes are handled correctly, that is the lightbulb is displayed
correctly on the background (COLOR_BTNSHADOW). Therefore the lightbuld
is stored in a resource bitmap and the outside of the bulb is filled with
COLOR_BTNSHADOW prior to displaying.

There is another most useful feature: the Microsoft
supplied Tip of the day class opens the Tip file in the current directory
whereas my Tip of the Day class opens the dialog in the folder where the
executable resides.

To integrate the new Tip of the day dialog into
your
application proceed as follows:



  • Use the Insert-Component command and insert the tip of the day component.
    This will add TipDlg.h and TipDlg.cpp to your project.

  • Edit stdafx.h and remove the #include <e:\MSDEV\Projects\Tip\TipDlg.h>
    or whatever line.

  • Replace the two automatically generated files  TipDlg.h and TipDlg.cpp
    with those supplied in the sample

  • Replace the IDD_TIP dialog with the one supplied in the sample.

  • That should be all.


The sample compiles with VC++ 4.0 and should also compile with more recent


versions of MFC and or VC++.



Last updated: 17 July 1998

CodeGuru Logo

CodeGuru covers topics related to Microsoft-related software development, mobile development, database management, and web application programming. In addition to tutorials and how-tos that teach programmers how to code in Microsoft-related languages and frameworks like C# and .Net, we also publish articles on software development tools, the latest in developer news, and advice for project managers. Cloud services such as Microsoft Azure and database options including SQL Server and MSSQL are also frequently covered.

Property of TechnologyAdvice. © 2026 TechnologyAdvice. All Rights Reserved

Advertiser Disclosure: Some of the products that appear on this site are from companies from which TechnologyAdvice receives compensation. This compensation may impact how and where products appear on this site including, for example, the order in which they appear. TechnologyAdvice does not include all companies or all types of products available in the marketplace.