How does MS Excel or Word draw to the screen??

This is a discussion on How does MS Excel or Word draw to the screen?? within the Windows Programming forums, part of the Platform Specific Boards category; In reading books, I know how a window is created, and I think I know how to create a menu ...

  1. #1
    Registered User
    Join Date
    Jun 2007
    Posts
    13

    Question How does MS Excel or Word draw to the screen??

    In reading books, I know how a window is created, and I think I know how to create a menu toolbar (File, Edit, View, etc) across the top of the screen.

    But, how does a Windows application like Excel or Word create everything else you see on the screen? In Excel, how would you draw the formula cells? In Word, how would you draw the text you see?

    On really old computers, I remember that the screen is a bitmap, and you just manipulate the corresponding memory locations.

    Can anyone tell me how this would work in a windows app?

    Thanks!

  2. #2
    train spotter
    Join Date
    Aug 2001
    Location
    near a computer
    Posts
    3,859
    Windows still uses bitmaps, drawn to the screen in response to a paint message.

    How exactly you do the drawing depends on the requirements of the app, from none to all of the screen.

    You need to be more specific.

    When I need a control similar to a small section of an Excel spreadsheet, I use a report style listview.

    Much subclassing is required, ie override the label edit messages to create controls (edit, combo etc) in the cells.
    "Man alone suffers so excruciatingly in the world that he was compelled to invent laughter."
    Friedrich Nietzsche

    "I spent a lot of my money on booze, birds and fast cars......the rest I squandered."
    George Best

    "If you are going through hell....keep going."
    Winston Churchill

  3. #3
    Registered User
    Join Date
    Jun 2007
    Posts
    13
    Thanks; that's the answer I was looking for: windows apps like excel and word use a paint message to draw on a bitmap.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Monitor a running instance of MS Word
    By BobS0327 in forum C# Programming
    Replies: 0
    Last Post: 07-18-2008, 12:40 PM
  2. The Timing is incorret
    By Drew in forum C++ Programming
    Replies: 5
    Last Post: 08-28-2003, 04:57 PM
  3. MS Word and Visual C++
    By Al Pennyworth in forum Windows Programming
    Replies: 0
    Last Post: 04-26-2002, 08:55 AM
  4. Using text in MS Word
    By nate11000 in forum Windows Programming
    Replies: 2
    Last Post: 03-14-2002, 03:25 PM
  5. collaborating with MS Word
    By nate11000 in forum C++ Programming
    Replies: 0
    Last Post: 03-12-2002, 07:11 PM

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