Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you have been placed in read-only mode.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
How can I get a pointer to a CDC inside a Form's paint method? - A programmer's national anthem; "AAAAAHHHHH!!!!"
In the OnPaint method: if (IsIconic()) { //...whatever } else { CPaintDC dc(this); // Add this line. Then you can use the dc, which seems similar to CDC. CDialog::OnPaint(); } this is this.
if (IsIconic()) { //...whatever } else { CPaintDC dc(this); // Add this line. Then you can use the dc, which seems similar to CDC. CDialog::OnPaint(); }