Home > Software engineering >  A problem about MFC application of GDI
A problem about MFC application of GDI

Time:09-15

Dear leaders, this is... ahhh, student party,,, beginners MFC, use the GDI +, the result is always an error in the Pen type,... oh, meowed, see how this help!

CodePudding user response:

Dd's change of time,,, is where there is a problem

CodePudding user response:

Brush not initialized

CodePudding user response:

NativeBrush, I don't remember brush have this property, and the createPen invocation style is wrong, and which have createPen invokes the attributes of the brush,

CodePudding user response:

GDI + environment several object definitions, you under reference:

Color backcolor;
Backcolor=Color (255, 129, 129, 255);

Pen rulepen (backcolor, 1);

255,0,0,255 SolidBrush brush (Color ());

  • Related