Thread: Child window

  1. #1
    Registered User
    Join Date
    Apr 2007
    Posts
    162

    Child window

    Hello,
    I am trying to create a very simle application just to learn somethink new.
    My aim is to create a child window which would clip on the edge of the parent window and will have its own caption...

    I tried to put as DWORD dwStyle "WS_CHILD | WS_CAPTION" but it apparantly failed to work... The window was able to move and it did clip but it was disabled even if there was no parameter of "WS_DISABLED"

    What parameters should I use in DWORD dwStyle so the created window is child and has its own caption?
    If am I getting the whole aim wrong please correct me

    Thank you for responses

  2. #2
    Registered Abuser
    Join Date
    Jun 2006
    Location
    Toronto
    Posts
    591
    I'm not sure exactly what you're aiming for, but I think this sounds like a MDI (multiple document interface) type solution. You might want to check out theForger's MDI tutorial and the MSDN MDI page.

  3. #3
    Malum in se abachler's Avatar
    Join Date
    Apr 2007
    Posts
    3,195
    definately sounds like MDI, which isnt simple, but isnt that hard either. Check out petzolds MDI example. I found it easy to rewrite to my needs.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. WM_CAPTION causing CreateWindowEx() to fail.
    By Necrofear in forum Windows Programming
    Replies: 8
    Last Post: 04-06-2007, 08:23 AM
  2. 6 measly errors
    By beene in forum Game Programming
    Replies: 11
    Last Post: 11-14-2006, 11:06 AM
  3. OpenGL Window
    By Morgul in forum Game Programming
    Replies: 1
    Last Post: 05-15-2005, 12:34 PM
  4. problem with open gl engine.
    By gell10 in forum Game Programming
    Replies: 1
    Last Post: 08-21-2003, 04:10 AM
  5. Tab Controls - API
    By -KEN- in forum Windows Programming
    Replies: 7
    Last Post: 06-02-2002, 09:44 AM