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. About position of AfxMessageBox OK button

About position of AfxMessageBox OK button

Scheduled Pinned Locked Moved C / C++ / MFC
3 Posts 3 Posters 2 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.
  • M Offline
    M Offline
    Mushtaque Nizamani
    wrote on last edited by
    #1

    Can I change the default position of OK button when calling AfxMessageBox() function, by default it is on center.

    Thanks, Mushq

    Z stefanmihaimogaS 2 Replies Last reply
    0
    • M Mushtaque Nizamani

      Can I change the default position of OK button when calling AfxMessageBox() function, by default it is on center.

      Thanks, Mushq

      Z Offline
      Z Offline
      zafersavas
      wrote on last edited by
      #2

      I think the only way is to create your own Dialog and place your button anywhere you want. AfxMessageBox does not allow you to change the coordinates of buttons.

      1 Reply Last reply
      0
      • M Mushtaque Nizamani

        Can I change the default position of OK button when calling AfxMessageBox() function, by default it is on center.

        Thanks, Mushq

        stefanmihaimogaS Offline
        stefanmihaimogaS Offline
        stefanmihaimoga
        wrote on last edited by
        #3

        I don't know if that's possible, but you could try to alter the source of these: 1) Eugene Pustovoyt's CPPMessageBox v1.0[^] 2) Sijin's Dissecting the MessageBox[^] 3) Hans Dietrich's XMessageBox[^] Regards, Mihai Moga

        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