The MASM Forum Archive 2004 to 2012

General Forums => The Campus => Topic started by: Magnum on April 18, 2010, 11:23:40 PM

Title: Change font and color in MessageBox
Post by: Magnum on April 18, 2010, 11:23:40 PM
I have been looking for a way to change the font,size, and color for a MessageBox without any luck.

Is it possible?

Title: Re: Change font and color in MessageBox
Post by: hutch-- on April 19, 2010, 05:18:44 AM
All thinngs are possible but its easier to create a normal resource dialog box where you can tweak almost anything you like.
Title: Re: Change font and color in MessageBox
Post by: donkey on April 19, 2010, 06:14:24 PM
Quote from: Magnum on April 18, 2010, 11:23:40 PM
I have been looking for a way to change the font,size, and color for a MessageBox without any luck.

Is it possible?

I would generally say "why bother" because you could make your own message box easily enough. The MessageBox function sets up a modal dialog, that means that you do not have access to its dialog proc and therefore no way to change the behavior of the dialog, there are tricks you can use (such as message hooks) but its much easier just to make your own message box.
Title: Re: Change font and color in MessageBox
Post by: Vortex on April 23, 2010, 07:46:22 AM
Custom MessageBox (http://www.catch22.net/tuts/custom-messagebox)

http://www.masm32.com/board/index.php?topic=7375.0