Type past width of Edit control

This is a discussion on Type past width of Edit control within the Windows Programming forums, part of the Platform Specific Boards category; Hi all! I'm writing an application using Win32 APIs and have created an edit box on the window like so: ...

  1. #1
    tin
    tin is offline
    Registered User
    Join Date
    Sep 2004
    Posts
    12

    Question Type past width of Edit control

    Hi all!

    I'm writing an application using Win32 APIs and have created an edit box on the window like so:
    hwnd_1=CreateWindowEx(WS_EX_CLIENTEDGE, ca_className_edit, "editMe", WS_CHILD|WS_VISIBLE, 75, 10, 150, 25, hwnd, NULL, g_hInstance, 0);

    Now, all the controls on that page would've lived happily ever after, but the Edit control won't let a user type beyond the width of the control and since there's not enough input, there's not enough output and the system as a whole doesn't work - it's basically the universe falling apart in software terms, for this application.

    Anyway, I'm looking for suggestions on getting the control to allow 'scrolling' as the user types past the right edge (assuming Left-to-Right text ).

    Regards,
    T.I.N.
    (The Invisible Newbie)

  2. #2
    the Great ElastoManiac's Avatar
    Join Date
    Nov 2005
    Location
    Republika Srpska - Balkan
    Posts
    377
    Es_autovscroll
    lu lu lu I've got some apples lu lu lu You've got some too lu lu lu Let's make some applesauce Take off our clothes and lu lu lu

  3. #3
    the Great ElastoManiac's Avatar
    Join Date
    Nov 2005
    Location
    Republika Srpska - Balkan
    Posts
    377
    ups,
    Code:
    | ES_AUTOHSCROLL
    lu lu lu I've got some apples lu lu lu You've got some too lu lu lu Let's make some applesauce Take off our clothes and lu lu lu

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Getting an error with OpenGL: collect2: ld returned 1 exit status
    By Lorgon Jortle in forum C++ Programming
    Replies: 6
    Last Post: 05-08-2009, 08:18 PM
  2. how do you resolve this error?
    By -EquinoX- in forum C Programming
    Replies: 32
    Last Post: 11-05-2008, 03:35 PM
  3. Controlling edit control input
    By Gerread in forum Windows Programming
    Replies: 6
    Last Post: 05-03-2007, 08:56 PM
  4. Question on l-values.
    By Hulag in forum C++ Programming
    Replies: 6
    Last Post: 10-13-2005, 04:33 PM
  5. Buttons + Edit Control
    By jay kay in forum Windows Programming
    Replies: 6
    Last Post: 03-09-2005, 04:36 PM

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