65.9K
CodeProject is changing. Read more.
Home

Fancy Message Box

starIcon
emptyStarIcon
starIcon
emptyStarIconemptyStarIconemptyStarIcon

1.74/5 (13 votes)

May 25, 2004

viewsIcon

51720

downloadIcon

1080

Fancy Message Box for use with MFC

Introduction

I always wanted to have some kind of replacement for the standard MFC Message Box available in VC++. So, the idea came up, and I created a simple COM based object which will display a message box you can see on the shot above. You can drag it and text will be scrolling up. Font size, color and scroll time are selectable.

Background

I have used some code for text scrolling ( despite that, had to fix some bugs with scroll timer settings) in the good sample I found here some time ago. Unfortunately cannot recall the author name. Sorry mate !

Using the code

Just open Demo project source file TestDlg.cpp - Handler for Button 1 is optional, use it if you like to change the default settings. Otherwise just use Button 2. Don't forget to initialize a COM object as usual. I think it is too easy for putting sample code and you'll find all you need in the source code.