based on user input scroll dynamically using Win32 functions

This is a discussion on based on user input scroll dynamically using Win32 functions within the Windows Programming forums, part of the Platform Specific Boards category; I am writing a sample application similar to notepad using C & Win32 functions. As soon as the user press ...

  1. #1
    Registered User
    Join Date
    Aug 2011
    Posts
    1

    based on user input scroll dynamically using Win32 functions

    I am writing a sample application similar to notepad using C & Win32 functions. As soon as the user press any key on key board it displays on the output as "Key Pressed: " and then move onto the next line. When the user continues to press key he will reach to the end of the page but i m finding it difficulty in scrolling the vertical bar dynamically. I have even tried setting the scroll bar range dynamically using SetScrollInfo in WM_CHAR but still it does not work. Please suggest me a way to do this. Sample code for your reference in the attachment.
    Attached Files Attached Files

  2. #2
    Banned
    Join Date
    Aug 2010
    Location
    Ontario Canada
    Posts
    9,547
    Well for starts why don't you use the standard windows EDIT control and the EM_LINESCROLL message...

    The edit control should be a child of your main window sized to cover the entire client area...

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Printing a Solid Square based on user input
    By ThatBoy1124 in forum C Programming
    Replies: 3
    Last Post: 03-01-2011, 10:07 PM
  2. running shell functions based on user input.
    By System_159 in forum Linux Programming
    Replies: 14
    Last Post: 10-12-2007, 08:19 PM
  3. Choosing a variable based on user text input.
    By Compiling... in forum C++ Programming
    Replies: 7
    Last Post: 11-01-2005, 01:21 AM
  4. creating a struct based on user input
    By rodrigorules in forum C Programming
    Replies: 1
    Last Post: 09-15-2005, 07:16 PM
  5. Action Based On User Input
    By Stealth in forum C++ Programming
    Replies: 2
    Last Post: 10-03-2001, 06:38 AM

Tags for this Thread


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