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

Managed C++/CLI

 
AnswerRe: operator++(int) Pin
BadKarma11-Aug-07 23:48
BadKarma11-Aug-07 23:48 
QuestionRTTI dynamic_cast Pin
swjam11-Aug-07 0:45
swjam11-Aug-07 0:45 
AnswerRe: RTTI dynamic_cast [modified] Pin
swjam11-Aug-07 0:51
swjam11-Aug-07 0:51 
QuestionIn C++/CLI, What has replaced LOGFONT and TEXTMETRIC? Pin
BuckBrown10-Aug-07 12:05
BuckBrown10-Aug-07 12:05 
QuestionHow do you get screen graphics into Document? Pin
BuckBrown9-Aug-07 9:54
BuckBrown9-Aug-07 9:54 
AnswerRe: How do you get screen graphics into Document? Pin
Luc Pattyn9-Aug-07 10:40
sitebuilderLuc Pattyn9-Aug-07 10:40 
GeneralRe: How do you get screen graphics into Document? Pin
BuckBrown9-Aug-07 11:05
BuckBrown9-Aug-07 11:05 
GeneralRe: How do you get screen graphics into Document? Pin
Luc Pattyn9-Aug-07 11:18
sitebuilderLuc Pattyn9-Aug-07 11:18 
Hi Buck,

in LP_Sokoban's file Board.cs there is a line
Paint+=new PaintEventHandler(Board_Paint);
which is an alternative way to install a paint handler; in this case it is called
Board_Paint, and it expects to get two arguments, rather than one, but apart from
that it is identical to an OnPaint() method, which is the normal way of installing
a paint handler in a derived class.

And as you can see it immediately calls another method
public void Painter(Graphics g,  int panelWidth, int panelHeight, int<br />
fillPercentage, bool printing)
passing not the eventargs thing, but the
actual values it needs.

Same Painter method also gets called by PrintableBoard_PrintPage() which is the
PrintPage handler for my public class PrintableBoard : PrintDocument;
this handler too get installed explicitly, hence its name differs from OnPrintPage.

Hope this helps.

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: How do you get screen graphics into Document? Pin
BuckBrown9-Aug-07 11:40
BuckBrown9-Aug-07 11:40 
GeneralRe: How do you get screen graphics into Document? Pin
Luc Pattyn9-Aug-07 11:42
sitebuilderLuc Pattyn9-Aug-07 11:42 
Questiondirectx Pin
saisp8-Aug-07 18:22
saisp8-Aug-07 18:22 
Questionc++ projects Pin
Reet Dhiman7-Aug-07 23:43
Reet Dhiman7-Aug-07 23:43 
AnswerRe: c++ projects Pin
iddqd5158-Aug-07 3:26
iddqd5158-Aug-07 3:26 
AnswerRe: c++ projects Pin
originSH8-Aug-07 6:10
originSH8-Aug-07 6:10 
GeneralRe: c++ projects Pin
Karismatic8-Aug-07 20:24
Karismatic8-Aug-07 20:24 
GeneralRe: c++ projects Pin
originSH9-Aug-07 4:28
originSH9-Aug-07 4:28 
AnswerRe: c++ projects Pin
Jonathan [Darka]10-Aug-07 4:48
professionalJonathan [Darka]10-Aug-07 4:48 
Questioncannot convert parameter 1 from 'cli::array ^' to 'cli::array ^' Pin
BuckBrown7-Aug-07 12:03
BuckBrown7-Aug-07 12:03 
AnswerRe: cannot convert parameter 1 from 'cli::array ^' to 'cli::array ^' Pin
Luc Pattyn7-Aug-07 14:22
sitebuilderLuc Pattyn7-Aug-07 14:22 
GeneralRe: cannot convert parameter 1 from 'cli::array ^' to 'cli::array ^' Pin
BuckBrown8-Aug-07 5:37
BuckBrown8-Aug-07 5:37 
GeneralRe: cannot convert parameter 1 from 'cli::array ^' to 'cli::array ^' Pin
BuckBrown8-Aug-07 7:22
BuckBrown8-Aug-07 7:22 
GeneralRe: cannot convert parameter 1 from 'cli::array ^' to 'cli::array ^' Pin
Luc Pattyn8-Aug-07 7:35
sitebuilderLuc Pattyn8-Aug-07 7:35 
GeneralRe: cannot convert parameter 1 from 'cli::array ^' to 'cli::array ^' Pin
BuckBrown8-Aug-07 11:45
BuckBrown8-Aug-07 11:45 
GeneralRe: cannot convert parameter 1 from 'cli::array ^' to 'cli::array ^' Pin
Luc Pattyn8-Aug-07 12:00
sitebuilderLuc Pattyn8-Aug-07 12:00 
GeneralRe: cannot convert parameter 1 from 'cli::array ^' to 'cli::array ^' Pin
BuckBrown9-Aug-07 9:23
BuckBrown9-Aug-07 9:23 

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.