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. How to Serialize the content of the window

How to Serialize the content of the window

Scheduled Pinned Locked Moved C / C++ / MFC
jsonhelptutorialquestion
6 Posts 2 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.
  • L Offline
    L Offline
    Laxman Auti
    wrote on last edited by
    #1

    Hi Gurus, I am doing the paint brush application when i resize or minimize the window what i have done get lost I heared about serialization can anybody help or suggest how i persist drawed contents on window?? I look forward to your reply Knock out "T" from CAN'T You 'CAN' if you think you 'CAN' :cool:

    H 1 Reply Last reply
    0
    • L Laxman Auti

      Hi Gurus, I am doing the paint brush application when i resize or minimize the window what i have done get lost I heared about serialization can anybody help or suggest how i persist drawed contents on window?? I look forward to your reply Knock out "T" from CAN'T You 'CAN' if you think you 'CAN' :cool:

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

      Hi A_Laxman, Do you use WM_PAINT? do you want to save drawing to graphic file

      L 1 Reply Last reply
      0
      • H Hamid Taebi

        Hi A_Laxman, Do you use WM_PAINT? do you want to save drawing to graphic file

        L Offline
        L Offline
        Laxman Auti
        wrote on last edited by
        #3

        Hi WhiteSky, Thanks for your reply I am doing the app in MFC and as well handling OnPaint method i just able to see that when i draw the line and when i minimize the application and maximize the line drawn disappers so what i should do?? or do you have any sample code for same. Knock out "T" from CAN'T You 'CAN' if you think you 'CAN' :cool:

        H 1 Reply Last reply
        0
        • L Laxman Auti

          Hi WhiteSky, Thanks for your reply I am doing the app in MFC and as well handling OnPaint method i just able to see that when i draw the line and when i minimize the application and maximize the line drawn disappers so what i should do?? or do you have any sample code for same. Knock out "T" from CAN'T You 'CAN' if you think you 'CAN' :cool:

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

          Hi A_Laxman, you wrote(when i minimize the application and maximize the line drawn disappers)well I write this code and when I min or max or... the draw is fix ...OnPaint() { CPaintDC dc(this); dc.MoveTo(0,0); dc.LineTo(100,100); }

          L 1 Reply Last reply
          0
          • H Hamid Taebi

            Hi A_Laxman, you wrote(when i minimize the application and maximize the line drawn disappers)well I write this code and when I min or max or... the draw is fix ...OnPaint() { CPaintDC dc(this); dc.MoveTo(0,0); dc.LineTo(100,100); }

            L Offline
            L Offline
            Laxman Auti
            wrote on last edited by
            #5

            Hi WhiteSky, What you replied i aggreed but this is in case of static Data (points in this case) when i have thosands of lines then how it will possible to draw the thousand of lines each WM_PAINT message Knock out "T" from CAN'T You 'CAN' if you think you 'CAN' :cool:

            H 1 Reply Last reply
            0
            • L Laxman Auti

              Hi WhiteSky, What you replied i aggreed but this is in case of static Data (points in this case) when i have thosands of lines then how it will possible to draw the thousand of lines each WM_PAINT message Knock out "T" from CAN'T You 'CAN' if you think you 'CAN' :cool:

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

              Dear A_Laxman, I suggestion for you(It's possible not good) you draw all lines and save this shapes in the graphic file then use this file in the one Button CStatic(Bitmap) Now if you change window this shapes is fix with this way you can delete WM_PAINT Have a nice day

              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