Solved

Font used by AfxMessageBox

Posted on 1998-11-26
4
249 Views
Last Modified: 2013-12-03
I'm working with MS-Visual C++ 5.0
How to get the font used by AfxMessageBox ?
0
Comment
Question by:maciej_lach
  • 2
4 Comments
 
LVL 3

Accepted Solution

by:
plaroche earned 50 total points
Comment Utility
AfxMessageBox really calls CWinApp::DoMessageBox, you can override that function with Classwizard and implement your own message box.  

I do not think you can modify the usual message box but you can implement your own where you will control everything.
0
 

Author Comment

by:maciej_lach
Comment Utility
I will to create my "MessageBox" derived CView.

class CMyMessageBox : public CView

How to get the font-name, which used AfxMessageBox for example ?
thanks,
maciej_lach


0
 

Author Comment

by:maciej_lach
Comment Utility
I will to create my "MessageBox" derived CView.

      class CMyMessageBox : public CView

How to get the font-name, which used AfxMessageBox for example ?
thanks,
maciej_lach
0
 

Expert Comment

by:thinh
Comment Utility
You can do this way to get the font used by MessageBox:

NONCLIENTMETRICS temp;
SystemParametersInfo(SPI_GETNONCLIENTMETRICS, , &temp , );

You will get the font info in:
temp.lfMessageFont

Good luck!

Thinh Truong


0

Featured Post

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Gotham fonts and Office 2013 6 49
Path of Workbook 3 44
how to split multiple lines delimiter : 8 53
Problem to open Excel file 15 37
In this article, I'll describe -- and show pictures of -- some of the significant additions that have been made available to programmers in the MFC Feature Pack for Visual C++ 2008.  These same feature are in the MFC libraries that come with Visual …
Introduction: Hints for the grid button.  Nested classes, templated collections.  Squash that darned bug! Continuing from the sixth article about sudoku.   Open the project in visual studio. First we will finish with the SUD_SETVALUE messa…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

7 Experts available now in Live!

Get 1:1 Help Now