Click here to Skip to main content
16,011,120 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: a "user breakpoint..." message i don't understand Pin
Roger Allen21-Nov-02 6:40
Roger Allen21-Nov-02 6:40 
GeneralRe: a "user breakpoint..." message i don't understand Pin
Toni7821-Nov-02 8:04
Toni7821-Nov-02 8:04 
GeneralScreen bit depth and fonts Pin
David Chamberlain21-Nov-02 4:04
David Chamberlain21-Nov-02 4:04 
QuestionAdditional resource files? Pin
Jamie Hale21-Nov-02 3:42
Jamie Hale21-Nov-02 3:42 
AnswerRe: Additional resource files? Pin
Navin21-Nov-02 4:18
Navin21-Nov-02 4:18 
GeneralRe: Additional resource files? Pin
Jamie Hale21-Nov-02 4:25
Jamie Hale21-Nov-02 4:25 
GeneralGDI Object Grouping Pin
Kyudos21-Nov-02 3:25
Kyudos21-Nov-02 3:25 
GeneralRe: GDI Object Grouping Pin
Paul M Watt21-Nov-02 8:32
mentorPaul M Watt21-Nov-02 8:32 
It would seem to me the you have already done the hard part, which is storing the data to redraw the display, and group it. So you are off to a great start.

It all depends on how your data is stored. If you want to store a bounding rectangle and that represents the group, and then you have the object that are part of the group report their coordinates relative to the group, then you only have to manage the dimensions of the group object while the resize or move is happening, then you will have to offset and scale accordingly when you draw the objects.

If you want to manage your objects so that they contain absolute coordinates based on your window, then each time your group moves you will need to update the data objects to match the offset. This will save you time when you go to draw the objects because you can simply draw them. There will be no need to translate the data as they are already in absolute coordinates.

You can use ::OffsetRect and ::InflateRect just for RECT structures. So it basically depends on how you store your data.

I hope I have answered your question.

Good Luck




Build a man a fire, and he will be warm for a day
Light a man on fire, and he will be warm for the rest of his life!

GeneralRe: GDI Object Grouping Pin
uwemundry22-Nov-02 18:07
sussuwemundry22-Nov-02 18:07 
GeneralRe: GDI Object Grouping Pin
Kyudos27-Nov-02 2:42
Kyudos27-Nov-02 2:42 
GeneralALT+ENTER key... Pin
Neha21-Nov-02 3:17
Neha21-Nov-02 3:17 
GeneralRe: ALT+ENTER key... Pin
Fazlul Kabir21-Nov-02 3:57
Fazlul Kabir21-Nov-02 3:57 
GeneralRe: ALT+ENTER key... Pin
Neha21-Nov-02 16:52
Neha21-Nov-02 16:52 
GeneralRe: ALT+ENTER key... Pin
James R. Twine21-Nov-02 17:59
James R. Twine21-Nov-02 17:59 
GeneralMFC Printing Question Pin
Nick Parker21-Nov-02 3:14
protectorNick Parker21-Nov-02 3:14 
GeneralRe: MFC Printing Question Pin
Nitron21-Nov-02 3:36
Nitron21-Nov-02 3:36 
GeneralRe: MFC Printing Question Pin
Nick Parker21-Nov-02 3:45
protectorNick Parker21-Nov-02 3:45 
GeneralRe: MFC Printing Question Pin
Nitron21-Nov-02 3:56
Nitron21-Nov-02 3:56 
GeneralRe: MFC Printing Question Pin
Ravi Bhavnani21-Nov-02 5:26
professionalRavi Bhavnani21-Nov-02 5:26 
GeneralRe: MFC Printing Question Pin
Nitron21-Nov-02 5:32
Nitron21-Nov-02 5:32 
GeneralRe: MFC Printing Question Pin
Joao Vaz21-Nov-02 5:38
Joao Vaz21-Nov-02 5:38 
GeneralRe: MFC Printing Question Pin
Ravi Bhavnani21-Nov-02 6:48
professionalRavi Bhavnani21-Nov-02 6:48 
GeneralRe: MFC Printing Question Pin
Joao Vaz21-Nov-02 7:23
Joao Vaz21-Nov-02 7:23 
GeneralRe: MFC Printing Question Pin
Chad Koehler21-Nov-02 5:40
Chad Koehler21-Nov-02 5:40 
GeneralRe: MFC Printing Question Pin
Ravi Bhavnani21-Nov-02 6:47
professionalRavi Bhavnani21-Nov-02 6:47 

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.