Results 1 to 4 of 4

Thread: Creating a text box. How to ?

  1. #1

    Thread Starter
    Member
    Join Date
    May 2001
    Location
    UK
    Posts
    40

    Question Creating a text box. How to ?

    o.s win 98
    compiler: dev-C++ version 4
    level : keen newbie

    Hello,

    I’ve just started to look at win apps. My question is how do you create a control ( textbox)? I spent some time reading MSDN library, but I could not implement their suggestions. It seemed to be referring to MFC


    Thanks


  2. #2
    Frenzied Member Vlatko's Avatar
    Join Date
    Aug 2000
    Location
    Skopje, Macedonia
    Posts
    1,409
    TO create a textbox using the API us ethe CreateWindow API with the string EDIT as the classname.
    I am become death, the destroyer of worlds.
    mail:[email protected]

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

  3. #3
    Frenzied Member
    Join Date
    Jul 1999
    Posts
    1,800
    Example:
    Code:
    HWND TextBox;
    TextBox = CreateWindowEx(WS_EX_CLIENTEDGE, "Edit", "This is the text that is in the text box", WS_CHILD | WS_VISIBLE, x, y, w, h, HWNDofYOURform, NULL, hInstance, NULL);

  4. #4

    Thread Starter
    Member
    Join Date
    May 2001
    Location
    UK
    Posts
    40

    Talking thanks...

    Thanks Vlatko and Steve !

    Hmm ..

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