Click here to Skip to main content
15,916,835 members
Home / Discussions / Managed C++/CLI
   

Managed C++/CLI

 
GeneralRe: C++/CLI Zooming Pin
Mark Salsbery29-Aug-07 14:18
Mark Salsbery29-Aug-07 14:18 
GeneralRe: C++/CLI Zooming Pin
Luc Pattyn29-Aug-07 15:41
sitebuilderLuc Pattyn29-Aug-07 15:41 
GeneralRe: C++/CLI Zooming Pin
Mark Salsbery29-Aug-07 18:40
Mark Salsbery29-Aug-07 18:40 
GeneralRe: C++/CLI Zooming Pin
Luc Pattyn29-Aug-07 23:31
sitebuilderLuc Pattyn29-Aug-07 23:31 
GeneralRe: C++/CLI Zooming Pin
Mark Salsbery30-Aug-07 4:56
Mark Salsbery30-Aug-07 4:56 
AnswerRe: C++/CLI Zooming Pin
Mark Salsbery28-Aug-07 12:56
Mark Salsbery28-Aug-07 12:56 
QuestionRuberbanding graphics without repainting entire screen Pin
BuckBrown28-Aug-07 10:01
BuckBrown28-Aug-07 10:01 
AnswerRe: Ruberbanding graphics without repainting entire screen Pin
Luc Pattyn28-Aug-07 12:30
sitebuilderLuc Pattyn28-Aug-07 12:30 
Hi Buck,

I understand the normal way (adding the rubber banding to your normal OnPaint,
and Invalidate everything) causes a lot of unnecessary repaint work.

I have not used this myself, but I did read some discussions on this topic.
I do not fully like it, but here it is:

The concept is based the ControlPaint class, which has very nice DrawReversible
methods; they allow to draw a line or frame, and to undo that by drawing it again.
So there would be no need to Invalidate the underlying stuff.

Unfortunately it paints on the entire screen, using screen coordinates, and
disregarding any windowing. Hence if your form is partly obscured by the corner
of something else, it will paint over that something else (unless you
create the logic to discover what parts of your intended window are really
visible...).

If you don't mind the lack of clipping, it should work for you; it clipping
is important (and possibly complex) I am afraid there is no easy solution.

Smile | :)

Luc Pattyn [Forum Guidelines] [My Articles]


this weeks tips:
- make Visual display line numbers: Tools/Options/TextEditor/...
- show exceptions with ToString() to see all information
- before you ask a question here, search CodeProject, then Google


GeneralRe: Ruberbanding graphics without repainting entire screen Pin
BuckBrown28-Aug-07 12:43
BuckBrown28-Aug-07 12:43 
QuestionMethod definitions in header files Pin
Xpnctoc28-Aug-07 9:11
Xpnctoc28-Aug-07 9:11 
AnswerRe: Method definitions in header files Pin
led mike29-Aug-07 5:21
led mike29-Aug-07 5:21 
AnswerRe: Method definitions in header files Pin
George L. Jackson29-Aug-07 7:37
George L. Jackson29-Aug-07 7:37 
GeneralRe: Method definitions in header files Pin
Xpnctoc29-Aug-07 8:29
Xpnctoc29-Aug-07 8:29 
GeneralRe: Method definitions in header files [modified] Pin
George L. Jackson29-Aug-07 12:01
George L. Jackson29-Aug-07 12:01 
GeneralRe: Method definitions in header files Pin
Mark Salsbery29-Aug-07 12:33
Mark Salsbery29-Aug-07 12:33 
GeneralRe: Method definitions in header files [modified] Pin
George L. Jackson29-Aug-07 12:54
George L. Jackson29-Aug-07 12:54 
GeneralRe: Method definitions in header files Pin
Mark Salsbery29-Aug-07 13:08
Mark Salsbery29-Aug-07 13:08 
Questionc++ Pin
ellllllllie28-Aug-07 5:03
ellllllllie28-Aug-07 5:03 
AnswerRe: c++ Pin
Luc Pattyn28-Aug-07 5:31
sitebuilderLuc Pattyn28-Aug-07 5:31 
Questionhow to get the primary key for a new row Pin
Stefan Baens27-Aug-07 22:50
Stefan Baens27-Aug-07 22:50 
AnswerRe: how to get the primary key for a new row Pin
George L. Jackson28-Aug-07 0:00
George L. Jackson28-Aug-07 0:00 
GeneralRe: how to get the primary key for a new row Pin
Stefan Baens28-Aug-07 1:04
Stefan Baens28-Aug-07 1:04 
GeneralRe: how to get the primary key for a new row Pin
George L. Jackson28-Aug-07 4:14
George L. Jackson28-Aug-07 4:14 
GeneralRe: how to get the primary key for a new row Pin
George L. Jackson28-Aug-07 13:36
George L. Jackson28-Aug-07 13:36 
AnswerRe: how to get the primary key for a new row Pin
led mike28-Aug-07 4:38
led mike28-Aug-07 4:38 

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.