Tip-Static control like 'Outlook Today's Tip'

Sample Image

Environment: VC6 SP2, NT4 SP5, CE 2.11, Windows Y2K

This Tip-Static control very smoothly show and hide Today's tip.
I think this control is so simple and useful.
Just use it!!


  1. Include TipStatic.cpp and TipStatic.h in your project.
  2. Create a new CTipStatic class object and just invoke Create function.
    	In your header file.
    	#include "TipStatic.cpp"
    	class CMyDialog : public CDialog
    	// Attributes
    		CTipStatic m_ctrTipStatic;
    	In your cpp file.
    	int CMyDialog::OnCreate(LPCREATESTRUCT lpCreateStruct) 
    		if (CDialog::OnCreate(lpCreateStruct) == -1)
    			return -1;
    			CRect(10,10, 100,120),this, IDC_TIP_STATIC);
    		return 0;
  3. Initialize CTipStatic class object by using AddTip(), SetSliderColor(), SetSliderMode().
    	BOOL CStaticTipDlg::OnInitDialog()
    		// TODO: Add extra initialization here
    		// Add Tip..
    		m_ctrTipStatic.AddTip("Hi\n Welcome to Cool-Tip Static!!\n\nSmile Seo");
    		m_ctrTipStatic.AddTip("Second.. Tip");
    		m_ctrTipStatic.AddTip("Third.. Tip");
    		return TRUE;  // return TRUE  unless you set the focus to a control
  4. Just call ShowNextTip() or ShowPrevTip().

Member Functions

Function prototype Description
void AddTip(CString strTip) Add tip-text to the CTipStatic
void SetSliderColor(COLORREF colSlider) If you use 'Slider', this 'colSlider' is wonderful effect just like 'Outlook today's tip'.
void SetSliderMode(BOOL bSlider) Use 'slider' mode on not

Ajou University C.C. 4th member.


Download demo project - 124 Kb
Download source - 2 Kb


  • Bug

    Posted by danandu on 07/17/2007 02:57am

    "MemDC.h is not found" error appears during compilation after commenting this line, the code compiles and it works

  • Nice.

    Posted by Legacy on 01/23/2004 12:00am

    Originally posted by: sob

    Very useful.
    Did that all by yourself did you?
    Keep up the good work!

    Admin: Please filter out these kinds of tutorials.

  • Posted by Legacy on 07/29/2000 12:00am

    Originally posted by:


Leave a Comment
  • Your email address will not be published. All fields are required.

Top White Papers and Webcasts

  • On-demand Event Event Date: November 17, 2015 Although enterprise adoption of open source has accelerated, some are still wary of it. But not all open source technologies are the same: some are designed with enterprises in mind. In this webinar, we'll discuss trends in open source development, innovation impacts, and what it means for the future.

  • Moving from an on-premises environment to Office 365 does not remove the need to plan for disruptions or reduce the business risk requirements for protecting email services. If anything, some risks increase with a move to the cloud. Read how to ease the transition every business faces if considering or already migrating to cloud email. This white paper discusses: Setting expectations when migrating to Office 365 Understanding the implications of relying solely on Exchange Online security Necessary archiving …

Most Popular Programming Stories

More for Developers

RSS Feeds

Thanks for your registration, follow us on our social networks to keep up-to-date