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. Immediate help required !!!!!!

Immediate help required !!!!!!

Scheduled Pinned Locked Moved C / C++ / MFC
help
2 Posts 2 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
    summo
    wrote on last edited by
    #1

    I am using tabcontrols in a SDI application. on my toolbar i have buttons name "Play" and "Veiw Log" and down to toolbar i have tab controls, two buttons name "IP Statistics ", "Send Email". when i click the "Play" button the dialog opens which exist as property sheet under the tab button "IP Statistics". Now what i want is, the dialog which has been opened must be sized according to the parent window. something i know is, i have to do with onsize method of my view class. plz tell me the complete solution. thanx Alot! Reply me soon

    R 1 Reply Last reply
    0
    • S summo

      I am using tabcontrols in a SDI application. on my toolbar i have buttons name "Play" and "Veiw Log" and down to toolbar i have tab controls, two buttons name "IP Statistics ", "Send Email". when i click the "Play" button the dialog opens which exist as property sheet under the tab button "IP Statistics". Now what i want is, the dialog which has been opened must be sized according to the parent window. something i know is, i have to do with onsize method of my view class. plz tell me the complete solution. thanx Alot! Reply me soon

      R Offline
      R Offline
      Rage
      wrote on last edited by
      #2

      First a comment about your post. Maybe i'm a little touchy :-O but I do not think that posting a thread containing "immmediate help required" "plz tell me the complete solution" "Reply me soon" is the best way to get a quick answer. Replace it with "Resizing a dialog to my current view size" in the title, and "could you provide me with a small code snippet" would certainly help. As for your problem, if you want your property sheet to be sized to your view, retrieve the cx and cy parameter from CWnd::OnSize(UINT nType, int cx, int cy ) and use them to calculate the new size of your property sheet, maybe with a MoveWindow(), or SetWindowPos(). ~RaGE();

      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