How can I change the font size and tipe of the msgbox, and how can I remove the close button(top right) from the msgbox?
Printable View
How can I change the font size and tipe of the msgbox, and how can I remove the close button(top right) from the msgbox?
Sounds to me that you may be better off building your own form to act as a messagebox. You can still control the icons, buttons, and such, but this way you could have control over the font size, color, typeface...
One way would be to set up a hook and catch the WM_CREATE message (when the messagebox is created). By doing this, you can subclass the messagebox when it gets created. Then you can set the font via the WM_SETFONT message.
You know, on the AmigaDos OS, there was a nifty program that let you use different dialogs for the standard message boxes and such. It would be nifty to do that here as well. Subclass the Message Box and display your own instead. But I get off topic :) Good solution, Megatron. ... Have you met my friend Unicron yet? :D