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
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Picture Erases

Picture Erases

Scheduled Pinned Locked Moved C / C++ / MFC
c++visual-studiohelptutorial
6 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.
  • A Offline
    A Offline
    Aabid
    wrote on last edited by
    #1

    Hello All i am working in Win32 VC++ using VS 6.0 My task is to display image on Desktop or Window .....I did it and works fine ....but the problem is when i move any other window over the image it erases the image How to overcome this problem.... Any sugesstion is heartly appreciated.. regards Aabid

    P H 2 Replies Last reply
    0
    • A Aabid

      Hello All i am working in Win32 VC++ using VS 6.0 My task is to display image on Desktop or Window .....I did it and works fine ....but the problem is when i move any other window over the image it erases the image How to overcome this problem.... Any sugesstion is heartly appreciated.. regards Aabid

      P Offline
      P Offline
      Perspx
      wrote on last edited by
      #2

      Where are you processing the image drawing functions? Regards, --Perspx

      "A refund for defective software might be nice, except it would bankrupt the entire software industry in the first year."
      -Andrew Tanenbaum
      "Einstein argued that there must be simplified explanations of nature, because God is not capricious or arbitrary. No such faith comforts the software engineer."
      -Fred Brooks

      A 1 Reply Last reply
      0
      • P Perspx

        Where are you processing the image drawing functions? Regards, --Perspx

        "A refund for defective software might be nice, except it would bankrupt the entire software industry in the first year."
        -Andrew Tanenbaum
        "Einstein argued that there must be simplified explanations of nature, because God is not capricious or arbitrary. No such faith comforts the software engineer."
        -Fred Brooks

        A Offline
        A Offline
        Aabid
        wrote on last edited by
        #3

        Thankx For ur Reply case WM_PAINT: { hdc = BeginPaint(hwnd, &ps); CxImage* newImage = new CxImage(); newImage->LoadResource(FindResource(NULL,MAKEINTRESOURCE(IDR_PNG1), "PNG"),CXIMAGE_FORMAT_PNG); newImage->Draw(hdc, 1, 1); EndPaint(hwnd, &ps); return 0; }

        1 Reply Last reply
        0
        • A Aabid

          Hello All i am working in Win32 VC++ using VS 6.0 My task is to display image on Desktop or Window .....I did it and works fine ....but the problem is when i move any other window over the image it erases the image How to overcome this problem.... Any sugesstion is heartly appreciated.. regards Aabid

          H Offline
          H Offline
          Hamid Taebi
          wrote on last edited by
          #4

          Maybe A C++ OCX for drawing pictures on any window of your Application[^] is helpful for you.

          A 1 Reply Last reply
          0
          • H Hamid Taebi

            Maybe A C++ OCX for drawing pictures on any window of your Application[^] is helpful for you.

            A Offline
            A Offline
            Aabid
            wrote on last edited by
            #5

            Thanx Dear But it is in MFC and i am using Win32

            H 1 Reply Last reply
            0
            • A Aabid

              Thanx Dear But it is in MFC and i am using Win32

              H Offline
              H Offline
              Hamid Taebi
              wrote on last edited by
              #6

              Did you try with WM_ERASEBKGND instead WM_PAINT?

              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