Thread: Static Spliter on a MDI

  1. #1
    Registered User
    Join Date
    Aug 2001
    Posts
    47

    Static Spliter on a MDI

    does anyone has an example on how to create a Static Spliter window on a MDI application ??

    I've been doing this:
    PHP Code:
    CRect c;
    GetClientRect(&c);

    m_staticSpliter.CreateStaticthis12);
    m_staticSpliter.CreateView00,
          
    RUNTIME_CLASSMySpliterClass), CSize(c.Width()/2c.Height()), pContext);
    m_staticSpliter.CreateView01,
          
    RUNTIME_CLASSMySpliterClass), CSize(c.Width()/2c.Height()), pContext);
    return 
    TRUE
    but I allways get some error on the "MySpliterClass" ... something like it doesn't belong to any namespace....
    I added my View Clas header to my Mainfrm.cpp and my document header to my view header file.
    I'm a person with a simple taste...
    I only like the best.

  2. #2
    Registered User
    Join Date
    Sep 2003
    Posts
    87
    I think that you must include the .h file where MySpliterClass is declared in the top of the .cpp file where is this code.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Seg Fault in Compare Function
    By tytelizgal in forum C Programming
    Replies: 1
    Last Post: 10-25-2008, 03:06 PM
  2. seg fault at vectornew
    By tytelizgal in forum C Programming
    Replies: 2
    Last Post: 10-25-2008, 01:22 PM
  3. uploading file to http server via multipart form data
    By Dynamo in forum C++ Programming
    Replies: 1
    Last Post: 09-03-2008, 04:36 AM
  4. LNK2001 ERROR!!! need help
    By lifeafterdeath in forum C++ Programming
    Replies: 7
    Last Post: 05-27-2008, 05:05 PM
  5. get keyboard and mouse events
    By ratte in forum Linux Programming
    Replies: 10
    Last Post: 11-17-2007, 05:42 PM