Results 1 to 2 of 2

Thread: Edit box

  1. #1
    Guest

    Post

    How do i put an edit box on a window?

  2. #2
    Frenzied Member Vlatko's Avatar
    Join Date
    Aug 2000
    Location
    Skopje, Macedonia
    Posts
    1,409
    You can put it using the CreateWindow API.Put "EDIT" as the classname argument.
    Code:
    HWND ed = CreateWindowEx(WS_EX_CLIENTEDGE, "edit", "Sample Text", WS_CHILD, 50, 125, 100, 25, hwnd, 0, hThisInst, NULL);
    //hwnd = Handle of the parent Window
    //hThisInst = Instance Handle Of the main window
    ShowWindow(ed,1);
    This is very annoying if you add a lot of controls on your window.
    You can add a textbox on a window(dialog) using the controls buttons in VC++.Add the dialog as a resource and then draw the controls on it.

    [Edited by Vlatko on 10-22-2000 at 07:41 AM]
    I am become death, the destroyer of worlds.
    mail:vlatkovr@hotmail.com

    • Visual Basic 6.0 & .NET
    • Visual C++ 6.0 & .NET
    • ASP
    • LISP
    • PROLOG
    • C
    • Pascal

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width