child windows with win32 API

This is a discussion on child windows with win32 API within the C++ Programming forums, part of the General Programming Boards category; after i created a window i want to create a child window. not something big, just a simple window with ...

  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 wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,558
    Replies here
    child windows
    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.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

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, 03: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, 09:22 AM
  5. Windows Using Win32 API With M$ VC++
    By MicroFiend in forum Windows Programming
    Replies: 3
    Last Post: 11-01-2002, 02:17 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21