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. How to change the main frame shape in MFC

How to change the main frame shape in MFC

Scheduled Pinned Locked Moved C / C++ / MFC
questionc++tutorial
4 Posts 4 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.
  • L Offline
    L Offline
    Lakshmi_p
    wrote on last edited by
    #1

    How can i change the main frame shape in MFC?

    N _ H 3 Replies Last reply
    0
    • L Lakshmi_p

      How can i change the main frame shape in MFC?

      N Offline
      N Offline
      Nibu babu thomas
      wrote on last edited by
      #2

      SetWindowRgn should help. :~


      Nibu thomas A Developer Programming tips[^]  My site[^]

      1 Reply Last reply
      0
      • L Lakshmi_p

        How can i change the main frame shape in MFC?

        _ Offline
        _ Offline
        _AnsHUMAN_
        wrote on last edited by
        #3

        SetWindowLong(m_hWnd, GWL_STYLE, GetWindowLong(m_hWnd, GWL_STYLE) & (~(WS_CAPTION | WS_BORDER))); CRect rect; GetWindowRect(&rect); int w = rect.Width(); int h = rect.Height(); CRgn rgn1; rgn1.CreateEllipticRgn(// Your parameters); SetWindowRgn(static_cast(rgn1.GetSafeHandle()), TRUE); rgn1.Detach(); Somethings seem HARD to do, until we know how to do them. ;-) _AnShUmAn_

        1 Reply Last reply
        0
        • L Lakshmi_p

          How can i change the main frame shape in MFC?

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

          See Here[^] maybe it is some helpful to you_**


          **_

          whitesky


          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