Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Blinking on the view part....

Blinking on the view part....

Scheduled Pinned Locked Moved C / C++ / MFC
c++
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    maharaja pandian
    wrote on last edited by
    #1

    hi, As i develop an application in MFC-SDI, which read data from a file and display the corresponding data in the window view(using CClientDc dc,dc.Textout(...)). The length can be more the 1000,the view has the base class as CScrollView, Inorder to see the below contents of the view ,i scrolled the window but the window get blinked .i want to reduced the blinking reply early send reply

    M J 2 Replies Last reply
    0
    • M maharaja pandian

      hi, As i develop an application in MFC-SDI, which read data from a file and display the corresponding data in the window view(using CClientDc dc,dc.Textout(...)). The length can be more the 1000,the view has the base class as CScrollView, Inorder to see the below contents of the view ,i scrolled the window but the window get blinked .i want to reduced the blinking reply early send reply

      M Offline
      M Offline
      Monty2
      wrote on last edited by
      #2

      use CMemDC to draw, search on google to get the class its very popular


      C makes it easy to shoot yourself in the foot; C++ makes it harder, but when you do, it blows away your whole leg

      1 Reply Last reply
      0
      • M maharaja pandian

        hi, As i develop an application in MFC-SDI, which read data from a file and display the corresponding data in the window view(using CClientDc dc,dc.Textout(...)). The length can be more the 1000,the view has the base class as CScrollView, Inorder to see the below contents of the view ,i scrolled the window but the window get blinked .i want to reduced the blinking reply early send reply

        J Offline
        J Offline
        jhwurmbach
        wrote on last edited by
        #3

        maharaja pandian wrote:

        read data from a file and display the corresponding data in the window view(using CClientDc dc,dc.Textout)

        Did you think about using some sort of a CListView derived class? These are made for exactly this purpose: Giving out texts in a view. OTOH, you might have very good reasons to print directly on the view. Then writing to a Mem-DC and only blitting it to screen in OnPaint would be the way to go.


        "We trained hard, but it seemed that every time we were beginning to form up into teams we would be reorganised. I was to learn later in life that we tend to meet any new situation by reorganising: and a wonderful method it can be for creating the illusion of progress, while producing confusion, inefficiency and demoralisation." -- Caius Petronius, Roman Consul, 66 A.D.

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups