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

Managed C++/CLI

 
QuestionAssembly probing Pin
KrunalC15-Aug-07 16:47
KrunalC15-Aug-07 16:47 
AnswerRe: Assembly probing Pin
George L. Jackson16-Aug-07 0:14
George L. Jackson16-Aug-07 0:14 
QuestionPrinting with GDI+ Pin
BuckBrown15-Aug-07 11:59
BuckBrown15-Aug-07 11:59 
AnswerRe: Printing with GDI+ Pin
Luc Pattyn15-Aug-07 12:10
sitebuilderLuc Pattyn15-Aug-07 12:10 
GeneralRe: Printing with GDI+ Pin
BuckBrown16-Aug-07 9:35
BuckBrown16-Aug-07 9:35 
GeneralRe: Printing with GDI+ Pin
Luc Pattyn16-Aug-07 10:41
sitebuilderLuc Pattyn16-Aug-07 10:41 
GeneralRe: Printing with GDI+ Pin
BuckBrown16-Aug-07 9:43
BuckBrown16-Aug-07 9:43 
GeneralRe: Printing with GDI+ Pin
Luc Pattyn16-Aug-07 10:34
sitebuilderLuc Pattyn16-Aug-07 10:34 
Hi Buck,

When there is a PrintDocument that .NET wants to print, it does two things:
- it invokes OnPrintPage() which is empty by default, but you could override it;
- it fires the PrintPage event which is also empty, but you could add delegates
to it (with the += syntax in C# and C++).

BTW: the method that you should pass to the new delegate takes two arguments
(object sender, XXXeventArgs e) whereas the OnXXX method only takes the latter.

All the same is true for the Paint event of a Control; that's why you were looking for
an OnPaint() but did not find one in Sokoban, it has a Paint+=new ... statement instead.

This is a C++ example straight from MSDN:

pictureBox1->Paint += gcnew System::Windows::Forms::PaintEventHandler(
 this, &Form1::pictureBox1_Paint );


Hope this helps.


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: Printing with GDI+ Pin
BuckBrown16-Aug-07 11:17
BuckBrown16-Aug-07 11:17 
GeneralRe: Printing with GDI+ Pin
Luc Pattyn16-Aug-07 11:24
sitebuilderLuc Pattyn16-Aug-07 11:24 
GeneralRe: Printing with GDI+ Pin
BuckBrown16-Aug-07 12:27
BuckBrown16-Aug-07 12:27 
GeneralRe: Printing with GDI+ Pin
Luc Pattyn16-Aug-07 12:50
sitebuilderLuc Pattyn16-Aug-07 12:50 
GeneralRe: Printing with GDI+ Pin
BuckBrown20-Aug-07 6:26
BuckBrown20-Aug-07 6:26 
GeneralRe: Printing with GDI+ Pin
BuckBrown20-Aug-07 6:42
BuckBrown20-Aug-07 6:42 
GeneralRe: Printing with GDI+ Pin
Luc Pattyn20-Aug-07 13:12
sitebuilderLuc Pattyn20-Aug-07 13:12 
GeneralRe: Printing with GDI+ Pin
Luc Pattyn16-Aug-07 11:41
sitebuilderLuc Pattyn16-Aug-07 11:41 
QuestionHeapAlloc Pin
miah alom15-Aug-07 11:13
miah alom15-Aug-07 11:13 
AnswerRe: HeapAlloc Pin
Luc Pattyn15-Aug-07 11:23
sitebuilderLuc Pattyn15-Aug-07 11:23 
GeneralRe: HeapAlloc Pin
Mark Salsbery15-Aug-07 11:26
Mark Salsbery15-Aug-07 11:26 
GeneralRe: HeapAlloc Pin
miah alom15-Aug-07 11:50
miah alom15-Aug-07 11:50 
GeneralRe: HeapAlloc Pin
Mark Salsbery15-Aug-07 12:16
Mark Salsbery15-Aug-07 12:16 
GeneralRe: HeapAlloc Pin
Luc Pattyn15-Aug-07 11:55
sitebuilderLuc Pattyn15-Aug-07 11:55 
GeneralRe: HeapAlloc Pin
Mark Salsbery15-Aug-07 12:16
Mark Salsbery15-Aug-07 12:16 
GeneralRe: HeapAlloc Pin
miah alom15-Aug-07 11:49
miah alom15-Aug-07 11:49 
GeneralRe: HeapAlloc Pin
miah alom15-Aug-07 11:59
miah alom15-Aug-07 11:59 

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.