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. MFC question

MFC question

Scheduled Pinned Locked Moved C / C++ / MFC
questionc++wpf
3 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.
  • B Offline
    B Offline
    Beer26
    wrote on last edited by
    #1

    how do you get the 3d inner border style of of the CMainFrame window to disappear? I don't want my child view to look sunken into the frame. I tried &= ~WS_ with several styles on OnCreate, but nothing has worked so far. tried all the lpCreateStruct->dwExStyle &= ~WS_ plus I tried the lpCreateStruct->style &= ~WS_

    N 1 Reply Last reply
    0
    • B Beer26

      how do you get the 3d inner border style of of the CMainFrame window to disappear? I don't want my child view to look sunken into the frame. I tried &= ~WS_ with several styles on OnCreate, but nothing has worked so far. tried all the lpCreateStruct->dwExStyle &= ~WS_ plus I tried the lpCreateStruct->style &= ~WS_

      N Offline
      N Offline
      Nish Nishant
      wrote on last edited by
      #2

      It is the not the CMainFrame window that is responsible for the 3D border. It is the inner CView derived window that is responsible. In the CView derived class's OnInitialUpdate() remove the WS_EX_CLIENTEDGE style using ModifyStyleEx Nish


      Extending MFC Applications with the .NET Framework [NW] (My book with Tom) Summer Love and Some more Cricket [NW] (My first novel) Shog's review of SLASMC [NW] Come with me if you want to live

      B 1 Reply Last reply
      0
      • N Nish Nishant

        It is the not the CMainFrame window that is responsible for the 3D border. It is the inner CView derived window that is responsible. In the CView derived class's OnInitialUpdate() remove the WS_EX_CLIENTEDGE style using ModifyStyleEx Nish


        Extending MFC Applications with the .NET Framework [NW] (My book with Tom) Summer Love and Some more Cricket [NW] (My first novel) Shog's review of SLASMC [NW] Come with me if you want to live

        B Offline
        B Offline
        Beer26
        wrote on last edited by
        #3

        aha! thank you

        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