Click here to Skip to main content
15,914,109 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Multiline textbox Pin
Roger Allen21-Nov-02 0:13
Roger Allen21-Nov-02 0:13 
GeneralRe: Multiline textbox Pin
jhwurmbach21-Nov-02 3:42
jhwurmbach21-Nov-02 3:42 
GeneralRe: Multiline textbox Pin
Christian Graus20-Nov-02 23:58
protectorChristian Graus20-Nov-02 23:58 
GeneralRe: Multiline textbox Pin
Anonymous21-Nov-02 1:12
Anonymous21-Nov-02 1:12 
GeneralMaximum size of EventLog Pin
draman20-Nov-02 22:58
draman20-Nov-02 22:58 
GeneralRe: Maximum size of EventLog Pin
RobJones21-Nov-02 3:06
RobJones21-Nov-02 3:06 
GeneralOOP Conception question Pin
khaldoun20-Nov-02 22:07
khaldoun20-Nov-02 22:07 
GeneralRe: OOP Conception question Pin
Joao Vaz20-Nov-02 22:43
Joao Vaz20-Nov-02 22:43 
khaldoun wrote:
I want to make a poster, which contains Images and textes.

So the Poster aggregates/contains Images and Texts, so make these two member variables ...

khaldoun wrote:
the poster may contain any number of elements.

khaldoun wrote:
the main problem for me is that the number of element is not fixe, so I don't know if there is one or 2 or .... images.

You could past the number of elements as a argument to the CPoster constructor ... and btw make it explicit , since you don't want implict conversion from int (if this is the variale type chosen to past the number of elements) to CPoster ...

khaldoun wrote:
Another problem is that I Want to save the poster to modifie it later.

That's a very open question , if you are using MFC, take a look at the Serialization support that MFC offers by the dreaded and omnipotent CObject ... it basically serializes by default on a CArchive , must you should override this to add your member variables that are important to maintain the state of your poster , in this case Images, texcts and rectangles ...

This MFC articles explains well the Serialization(Saving/loading) process ...
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vccore/html/_core_Serialization_Topics.asp[^]









Cheers,Joao Vaz
And if your dream is to care for your family, to put food on the table, to provide them with an education and a good home, then maybe suffering through an endless, pointless, boring job will seem to have purpose. And you will realize how even a rock can change the world, simply by remaining obstinately stationary.-Shog9

Remember just because a good thing comes to an end, doesn't mean that the next one can't be better.-Chris Meech

GeneralRe: OOP Conception question Pin
khaldoun20-Nov-02 22:57
khaldoun20-Nov-02 22:57 
GeneralRe: OOP Conception question Pin
Joao Vaz21-Nov-02 0:02
Joao Vaz21-Nov-02 0:02 
GeneralRe: OOP Conception question Pin
Alexandru Savescu21-Nov-02 2:06
Alexandru Savescu21-Nov-02 2:06 
QuestionHow to add resource to Win32 DLL Pin
bugtwo20-Nov-02 22:02
bugtwo20-Nov-02 22:02 
AnswerRe: How to add resource to Win32 DLL Pin
Navin21-Nov-02 4:49
Navin21-Nov-02 4:49 
Generaldefault web browser Pin
aahrol20-Nov-02 21:54
aahrol20-Nov-02 21:54 
GeneralRe: default web browser Pin
Navin21-Nov-02 4:21
Navin21-Nov-02 4:21 
GeneralRe: default web browser Pin
aahrol21-Nov-02 6:02
aahrol21-Nov-02 6:02 
GeneralDLL question Pin
Mel Feik20-Nov-02 20:01
Mel Feik20-Nov-02 20:01 
GeneralRe: DLL question Pin
Cathy20-Nov-02 21:09
Cathy20-Nov-02 21:09 
GeneralRe: DLL question Pin
Mel Feik20-Nov-02 21:15
Mel Feik20-Nov-02 21:15 
GeneralRe: DLL question Pin
Cathy20-Nov-02 21:45
Cathy20-Nov-02 21:45 
GeneralRe: DLL question Pin
Anonymous20-Nov-02 21:58
Anonymous20-Nov-02 21:58 
GeneralRe: DLL question Pin
Mel Feik20-Nov-02 22:02
Mel Feik20-Nov-02 22:02 
GeneralRe: DLL question Pin
Navin21-Nov-02 4:26
Navin21-Nov-02 4:26 
GeneralOutlook syncronization Pin
Diarrhio20-Nov-02 19:46
Diarrhio20-Nov-02 19:46 
GeneralThumbnail Image Using Activex Control Pin
sachin_cd20-Nov-02 19:29
sachin_cd20-Nov-02 19:29 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.