Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3969410
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T03:57:37+00:00 2026-05-20T03:57:37+00:00

Hi If any one knows how to use in-place warning message in MFC could

  • 0

Hi
If any one knows how to use in-place warning message in MFC could you share info.
Is there a way to use it or is there any control we can use directly in mfc.

In-Place warning message: A warning message with appropriate icon along with warning message, will be displayed with in the same dialog.

I found some info about in-place message in msdn

InPlace message in msdn glossary

Different messages

Please share information.

Regards

Haranadh

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-20T03:57:38+00:00Added an answer on May 20, 2026 at 3:57 am

    From your comment, it appears that you’re referring to this as an in-place message:

       

    Ironically, of course, that’s labeled as the incorrect example on the MSDN page that you link to. It’s specifically recommended that you provide more specific advice, such as securing the projector with a password so that the presentation is not visible to unintended viewers. Putting that aside, however…

    This is quite easy to implement in MFC. It’s done simply with two STATIC controls, one on the left that displays an icon (in this case, a warning triangle) and the longer one on the right that displays static text (the warning message itself). If you’re using the dialog editor to create your window, it’s a simple matter of dragging the two controls to the dialog window and arranging them accordingly. There isn’t a single control that encapsulates this functionality, but it’s silly to expect that there would be, considering that doing it with two separate static controls is already so straightforward.

    To load built-in icons such as the warning triangle shown above, you can use the LoadStandardIcon function and specify IDI_WARNING as the icon name. The complete list of values is available here. Obviously you can load any icon of your choosing as well; just add it to your project’s resources.

    Since you will presumably want to display the warning message only when it’s applicable, you will need to programmatically hide and show the two controls depending on action taken by the user in your dialog. The standard ShowWindow member function makes this a trivial task. Call it on the two static controls, passing SW_SHOW as its argument if you want the warning message to be visible. Otherwise, you can specify SW_HIDE to hide the control.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Everyone who's done any web application development in Scala knows that you can use
Anyone knows a good way to use http live streaming tools on non-Mac platforms?
I was wondering if anyone knows of any large sites that use progressive enhancement/CSS3?
Have a rather simple question. Does anyone knows if i can use jparallax both
Is there anyone out there who knows if it's possible to use common web
Is there any other place that makes sense to store credentials for third party
Dose anyone knows why I have to use -use-network=false in my Flex Builder?!?!?! This
I'm trying to use the VirtualTree of Infralution in VCL.NET, does anyone knows how
Recently, I had the need for a function that I could use to guarantee
Rather than use a full-blown PHP MVC, I'm designing one that will best-fit my

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.