please help visual c++ edit control boxes

This is a discussion on please help visual c++ edit control boxes within the C++ Programming forums, part of the General Programming Boards category; hi all i was just wondering if i create a edit control box and i have a scroll bar in ...

  1. #1
    Registered User
    Join Date
    Oct 2001
    Posts
    14

    please help visual c++ edit control boxes

    hi all

    i was just wondering if i create a edit control box and i have a scroll bar in my dialog box how can i get the edit control box to display the position of the scroll bar ie position 0 is the scroll bar is at the far left and 100 if it is at far right. I am using MFC's
    thanks hope you can help

  2. #2
    Registered User
    Join Date
    Aug 2001
    Posts
    223

    scrollbar

    you should post this question in the windows section.. but anyway here goes... if you are using the MFC...

    //assumy CScrollBar myScrollbar exists

    CString strPos;

    strPos.Format("%d", myScrollbar.GetScrollPos( ));

    SetDlgItemText( IDC_EDIT1, strPos );


    usually you will want to trap the message when the user scrolls
    horizontally and plug this code in that message handler function...
    zMan

  3. #3
    Unregistered Leeman_s's Avatar
    Join Date
    Oct 2001
    Posts
    753

    well hmm

    according to your topic: "Please help visual c++ edit control boxes"

    I'm sure Visuall c++ does not need any help editing control boxes. It can do it itself, with help from yourself. This is a fairly odd question. Did you mean to ask for help for yourself on editing control boxes?

  4. #4
    ¡Amo fútbol!
    Join Date
    Dec 2001
    Posts
    2,136
    I think he meant two thoughts but forgot the comma or was clarifying why he needed help, such as:

    Help me, Visual C++ edit control boxes




    P.S. Why do you even care?

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Change cursor on single edit control
    By Niara in forum Windows Programming
    Replies: 3
    Last Post: 01-11-2009, 08:52 AM
  2. edit control text buffer
    By scurvydog in forum Windows Programming
    Replies: 4
    Last Post: 12-11-2008, 09:13 AM
  3. (Multiline) Edit Control Limit
    By P4R4N01D in forum Windows Programming
    Replies: 9
    Last Post: 05-17-2008, 11:56 AM
  4. We Got _DEBUG Errors
    By Tonto in forum Windows Programming
    Replies: 5
    Last Post: 12-22-2006, 04:45 PM
  5. Erros in Utility Header File
    By silk.odyssey in forum C++ Programming
    Replies: 4
    Last Post: 12-22-2003, 05:17 AM

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