News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

Change font and color in MessageBox

Started by Magnum, April 18, 2010, 11:23:40 PM

Previous topic - Next topic

Magnum

I have been looking for a way to change the font,size, and color for a MessageBox without any luck.

Is it possible?

Have a great day,
                         Andy

hutch--

All thinngs are possible but its easier to create a normal resource dialog box where you can tweak almost anything you like.
Download site for MASM32      New MASM Forum
https://masm32.com          https://masm32.com/board/index.php

donkey

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.
"Ahhh, what an awful dream. Ones and zeroes everywhere...[shudder] and I thought I saw a two." -- Bender
"It was just a dream, Bender. There's no such thing as two". -- Fry
-- Futurama

Donkey's Stable