NonClientMetrics

This code snippet demonstrates using API SystemParametersInfo to retrieve Windows message box information. It also demonstrates passing a byte structure to a an API.  Thanks to Chris Dias [MSDN] for helping me debug this.

Message Box Text

I needed to get the font name and size being used by Window 95/98/NT message boxes.  The font and size are changed using the appearance tab of the windows properties dialog, for example:

Appear.gif (6482 bytes)

The demo program allows you to change the message box font then display the selection in the following screen:

DmoFnt95.gif (2736 bytes)

Download VB4 Source

Click here to download the VB4 [3k] source code.

VB Tips    More Tips    About...

Previous    Home    Next

Updated 1999/07/11