Thread: child windows with win32 API

  1. #1
    Registered User
    Join Date
    Apr 2005
    Posts
    98

    child windows with win32 API

    after i created a window i want to create a child window. not something big, just a simple window with edit control and some text.
    umm.... how do i do that?

  2. #2
    erstwhile
    Join Date
    Jan 2002
    Posts
    2,227
    Use CreateWindowEx specifying the system class name you want to create, in this case "edit", and ensure your controls have the WS_CHILD window style.

    More general information can be found at msdn: Windows Controls.

    Please direct any future windows specific questions you may have to the Windows Programming Board.
    CProgramming FAQ
    Caution: this person may be a carrier of the misinformation virus.

  3. #3
    Registered User
    Join Date
    Apr 2005
    Posts
    98
    didn't notice there's such forum... ok, i'll post it there.

  4. #4
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,659
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. A question about windows programming
    By Hussain Hani in forum Windows Programming
    Replies: 16
    Last Post: 05-23-2007, 07:38 AM
  2. Script errors - bool unrecognized and struct issues
    By ulillillia in forum Windows Programming
    Replies: 10
    Last Post: 12-18-2006, 04:44 AM
  3. Resizing MDI child windows
    By bennyandthejets in forum Windows Programming
    Replies: 4
    Last Post: 05-18-2004, 12:33 AM
  4. Loading Child Windows from Resources
    By fuzzbuzz in forum Windows Programming
    Replies: 2
    Last Post: 03-12-2004, 10:22 AM
  5. Windows Using Win32 API With M$ VC++
    By MicroFiend in forum Windows Programming
    Replies: 3
    Last Post: 11-01-2002, 03:17 PM