Thread: Virtual controls

  1. #1
    Registered User
    Join Date
    Apr 2008
    Location
    Australia
    Posts
    55

    Virtual controls

    Hi,

    Just wondering if virtual control is possible for something like (mfc) CEdit control? ie same thing as virtual list control, except an edit (or similar, combobox edit?) control.

    I'm looking for a way to handle a lot of continuous data but only displaying/loading what the user sees, & not loading the whole data itself into an edit control which is what I'm doing currently.

    I'm wondering if somehow gerry-rigging a virtual list behind edit control would work.

    Any suggestions (or code even) would be great!

    Thanks in advance

  2. #2
    Registered User VirtualAce's Avatar
    Join Date
    Aug 2001
    Posts
    9,607
    You can use ListView for more functionality than what ListBox offers. As to the data caching scheme that is more an exercise of efficiency in your program and not of the control itself. The control displays data and nothing more. It should do nothing more. If you want to build a custom control specifically tailored to your needs then you can add as much functionality to it as you want...with the mindset that the more you tailor the control to your needs on one specific window or form its reuse across windows and forms will suffer. A custom control is needed if you want to use the control across windows and forms and need custom behavior combined with custom display. However this type of control must be quite generic to be used in multiple places in your app and possibly other apps and thus its 'client friendliness' might suffer a bit.
    Last edited by VirtualAce; 05-18-2012 at 05:10 PM.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Pure Virtual Function - Virtual Method Table
    By u_peerless in forum C++ Programming
    Replies: 8
    Last Post: 06-07-2008, 01:19 AM
  2. Virtual functions but non-virtual destructor
    By cunnus88 in forum C++ Programming
    Replies: 4
    Last Post: 03-31-2007, 11:08 AM
  3. Virtual & Pure virtual destructors
    By BMJ in forum C++ Programming
    Replies: 61
    Last Post: 08-22-2002, 09:38 AM
  4. Diff between window controls and dialog controls
    By Garfield in forum Windows Programming
    Replies: 13
    Last Post: 01-18-2002, 05:49 AM