Thread: text edit control?

  1. #1
    Registered User
    Join Date
    Jul 2011
    Posts
    2

    Unhappy text edit control?

    Hey all.


    I'm new to GUI programming in C. I've just started making a form in a DLL, and it works fine. Now I need to add a text box to it, but I have no idea how. I've search Google but all I could find were examples for C# and visual basic.


    How do I make a text box / rich text box in C?



    Thanks in advance.

  2. #2
    Banned
    Join Date
    Aug 2010
    Location
    Ontario Canada
    Posts
    9,547
    theForger's Win32 API Tutorial

    Sounds like you're coming from a Visual Basic background... things get done very differently in C.
    For one thing DLLs are used sparingly and you have direct access to the Windows API calls so you can often use your programs resources where you would normally have to make a separate DLL.

    FWIW... you add a text box to a "form" (no such thing in C) by using the CreateWindow() call, just like you would for your main window.
    Last edited by CommonTater; 07-14-2011 at 01:56 PM.

  3. #3
    Registered User
    Join Date
    Jul 2011
    Posts
    2
    Quote Originally Posted by CommonTater View Post
    Thanks for the quick reply! I'll take a look at it now.

  4. #4
    Banned
    Join Date
    Aug 2010
    Location
    Ontario Canada
    Posts
    9,547
    Quote Originally Posted by bored View Post
    Thanks for the quick reply! I'll take a look at it now.
    Good stuff... please see my afterthought edited into my first reply.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. edit control text buffer
    By scurvydog in forum Windows Programming
    Replies: 4
    Last Post: 12-11-2008, 10:13 AM
  2. Is Text Modified in Edit Control
    By anon in forum Windows Programming
    Replies: 1
    Last Post: 05-21-2006, 01:33 PM
  3. Appending text to an edit control
    By dit6a9 in forum Windows Programming
    Replies: 3
    Last Post: 08-13-2004, 09:52 PM
  4. inserting text into edit control
    By bennyandthejets in forum Windows Programming
    Replies: 4
    Last Post: 01-14-2003, 05:38 AM