Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. AfxMessageBox with Bold text

AfxMessageBox with Bold text

Scheduled Pinned Locked Moved C / C++ / MFC
7 Posts 5 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    sunny_vc
    wrote on last edited by
    #1

    Hi all, Is there anyway to have bold text of the message displayed using AfxMessageBox(). If yes please give me the solution.

    Regards, Sunil Kumar

    CPalliniC C H I 4 Replies Last reply
    0
    • S sunny_vc

      Hi all, Is there anyway to have bold text of the message displayed using AfxMessageBox(). If yes please give me the solution.

      Regards, Sunil Kumar

      CPalliniC Offline
      CPalliniC Offline
      CPallini
      wrote on last edited by
      #2

      Try this lInk [^]. :)

      If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
      This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
      [My articles]

      In testa che avete, signor di Ceprano?

      S 1 Reply Last reply
      0
      • CPalliniC CPallini

        Try this lInk [^]. :)

        If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
        This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
        [My articles]

        S Offline
        S Offline
        sunny_vc
        wrote on last edited by
        #3

        Ok I understood.we cant do it...

        Regards, Sunil Kumar

        1 Reply Last reply
        0
        • S sunny_vc

          Hi all, Is there anyway to have bold text of the message displayed using AfxMessageBox(). If yes please give me the solution.

          Regards, Sunil Kumar

          C Offline
          C Offline
          Code o mat
          wrote on last edited by
          #4

          I believe CPallini is right with it, but you could maybe try handing WM_CTLCOLORDLG[^] and try to select a bold font into the DC you get as parameter, no idea if it would work or not, but maybe it is worth a try.

          > The problem with computers is that they do what you tell them to do and not what you want them to do. < > Life: great graphics, but the gameplay sux. <

          1 Reply Last reply
          0
          • S sunny_vc

            Hi all, Is there anyway to have bold text of the message displayed using AfxMessageBox(). If yes please give me the solution.

            Regards, Sunil Kumar

            H Offline
            H Offline
            Hamid Taebi
            wrote on last edited by
            #5

            You can make your own messagebox.

            Of one Essence is the human race thus has Creation put the base One Limb impacted is sufficient For all Others to feel the Mace (Saadi )

            S 1 Reply Last reply
            0
            • H Hamid Taebi

              You can make your own messagebox.

              Of one Essence is the human race thus has Creation put the base One Limb impacted is sufficient For all Others to feel the Mace (Saadi )

              S Offline
              S Offline
              sunny_vc
              wrote on last edited by
              #6

              Yeah ,its an option....

              Regards, Sunil Kumar

              1 Reply Last reply
              0
              • S sunny_vc

                Hi all, Is there anyway to have bold text of the message displayed using AfxMessageBox(). If yes please give me the solution.

                Regards, Sunil Kumar

                I Offline
                I Offline
                Iain Clarke Warrior Programmer
                wrote on last edited by
                #7

                The answer to your question is a simple No. But you can a) roll your own messagebox-a-like, and there are plenty in the dialogs section of codeproject. or b) if you're on vista, use a Task Dialog (see http://blogs.chimpswithkeyboards.com/jonshute/archive/2006/11/26/230.aspx[^] for an article about it) Iain.

                Codeproject MVP for C++, I can't believe it's for my lounge posts...

                1 Reply Last reply
                0
                Reply
                • Reply as topic
                Log in to reply
                • Oldest to Newest
                • Newest to Oldest
                • Most Votes


                • Login

                • Don't have an account? Register

                • Login or register to search.
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • World
                • Users
                • Groups