How to Serialize the content of the window
-
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:
-
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:
Hi A_Laxman, Do you use WM_PAINT? do you want to save drawing to graphic file
-
Hi A_Laxman, Do you use WM_PAINT? do you want to save drawing to graphic file
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:
-
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:
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); }
-
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); }
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:
-
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:
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