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. VC++ abt buttons

VC++ abt buttons

Scheduled Pinned Locked Moved C / C++ / MFC
c++tutorial
4 Posts 3 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.
  • T Offline
    T Offline
    Tripura K
    wrote on last edited by
    #1

    Can any one of you tell me how to swap two buttons which are placed on and Dialog box which is MDI based application and the buttons are owner draw buttons kindly suggest me some idea Request to all to continue this

    D R 2 Replies Last reply
    0
    • T Tripura K

      Can any one of you tell me how to swap two buttons which are placed on and Dialog box which is MDI based application and the buttons are owner draw buttons kindly suggest me some idea Request to all to continue this

      D Offline
      D Offline
      David Crow
      wrote on last edited by
      #2

      Are you talking about the MoveWindow() function?


      "Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow

      1 Reply Last reply
      0
      • T Tripura K

        Can any one of you tell me how to swap two buttons which are placed on and Dialog box which is MDI based application and the buttons are owner draw buttons kindly suggest me some idea Request to all to continue this

        R Offline
        R Offline
        Ravi Bhavnani
        wrote on last edited by
        #3

        By "swap" do you mean showing/hiding the buttons? If so, see the doc on ShowWindow(). /ravi My new year's resolution: 2048 x 1536 Home | Articles | Freeware | Music ravib@ravib.com

        T 1 Reply Last reply
        0
        • R Ravi Bhavnani

          By "swap" do you mean showing/hiding the buttons? If so, see the doc on ShowWindow(). /ravi My new year's resolution: 2048 x 1536 Home | Articles | Freeware | Music ravib@ravib.com

          T Offline
          T Offline
          Tripura K
          wrote on last edited by
          #4

          Hello What i mean is i want ot select the button on the dialog box and move it along with my mouse and place it on the other button which is also on the current dialog box only and when i place likethat the two buttons should get swaped in there location first of all i am notget the handler of the button on the dialog box i am using GetActiveWindow(); GetWindowRect(); GetClientREct(); non of them are giving me the handle to my button or the coordinates ofthe button plz suggest me some idea Request to all to continue this

          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