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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Static Splitter window

Static Splitter window

Scheduled Pinned Locked Moved C / C++ / MFC
questionhelp
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
    Stevieslu
    wrote on last edited by
    #1

    I am trying to create a 3-way static splitter window but have never done this before... What is the best base classes to use for the splitter window to hold a list of variables which can be clicked to change the output in the main CSrollView derived view class? I am experimenting at present and am just trying to split one window simply by overriding CreateClient as follows BOOL CMainFrame::OnCreateClient(LPCREATESTRUCT lpcs, CCreateContext* pContext) { return m_wndSplitter.Create (this, 2, 1, CSize (8, 8), pContext); } But I keep getting an ASSERT(pContext != NULL) Why is this and how can I fix it?

    N 1 Reply Last reply
    0
    • S Stevieslu

      I am trying to create a 3-way static splitter window but have never done this before... What is the best base classes to use for the splitter window to hold a list of variables which can be clicked to change the output in the main CSrollView derived view class? I am experimenting at present and am just trying to split one window simply by overriding CreateClient as follows BOOL CMainFrame::OnCreateClient(LPCREATESTRUCT lpcs, CCreateContext* pContext) { return m_wndSplitter.Create (this, 2, 1, CSize (8, 8), pContext); } But I keep getting an ASSERT(pContext != NULL) Why is this and how can I fix it?

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

      You can't use Create for static splitters, you need to use CreateStatic Nish Sonork ID 100.9786 voidmain www.busterboy.org If you don't find me on CP, I'll be at Bob's HungOut

      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