Click here to Skip to main content
15,888,579 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: hide DOS window Pin
deeps_cute5-Mar-07 19:50
deeps_cute5-Mar-07 19:50 
GeneralRe: hide DOS window Pin
Stephen Hewitt6-Mar-07 11:59
Stephen Hewitt6-Mar-07 11:59 
Questionhow can I make my static text to trasparent? Pin
amitmistry_petlad 5-Mar-07 16:48
amitmistry_petlad 5-Mar-07 16:48 
AnswerRe: how can I make my static text to trasparent? Pin
Sameer_Thakur5-Mar-07 19:41
Sameer_Thakur5-Mar-07 19:41 
GeneralRe: how can I make my static text to trasparent? Pin
amitmistry_petlad 5-Mar-07 19:45
amitmistry_petlad 5-Mar-07 19:45 
AnswerRe: how can I make my static text to trasparent? Pin
Hamid_RT5-Mar-07 19:42
Hamid_RT5-Mar-07 19:42 
Questionchanging fill and line color of ellipse and rectangle in GUI using C++ Pin
dolphintkc5-Mar-07 13:29
dolphintkc5-Mar-07 13:29 
AnswerRe: changing fill and line color of ellipse and rectangle in GUI using C++ Pin
PJ Arends5-Mar-07 23:40
professionalPJ Arends5-Mar-07 23:40 
The Rectangle and Ellipse functions use the device context's current pen and brush for the lines and fills.
case WM_PAINT:
{
   PAINTSTRUCT ps;
   HDC DC = BeginPaint(m_hWnd, &ps);
 
   HPEN Pen = CreatePen(PS_SOLID, 2, RGB(255, 0, 0));  // red pen, 2 pixels wide
   HBRUSH Brush = CreateSolidBrush(RGB(0, 0, 255));    // solid blue brush
 
   HGDIOBJ OldPen = SelectObject(DC, Pen);      // select the pen and brush into the
   HGDIOBJ OldBrush = SelectObject(DC, Brush);  // device context
 
   Rectangle(DC, 10, 10, 200, 200);   // Draws a rectangle with a red border, 2 pixels
                                      // wide and filled with a solid blue interior
 
   SelectObject(DC, OldPen);          // restore the device context to it's
   SelectObject(DC, OldBrush);        // original state
 
   DeleteObject(Pen);                 // delete the pen and brush to avoid
   DeleteObject(Brush);               // resource leaks
 
   EndPaint(m_hWnd, &ps);
}



You may be right
I may be crazy
-- Billy Joel --


Within you lies the power for good, use it!!!

QuestionSmooth Text? Pin
David Knechtges5-Mar-07 10:45
David Knechtges5-Mar-07 10:45 
AnswerRe: Smooth Text? Pin
Mark Salsbery5-Mar-07 11:27
Mark Salsbery5-Mar-07 11:27 
AnswerRe: Smooth Text? Pin
Michael Dunn5-Mar-07 12:16
sitebuilderMichael Dunn5-Mar-07 12:16 
Questionbatch file from mfc Pin
prathuraj5-Mar-07 5:24
prathuraj5-Mar-07 5:24 
AnswerRe: batch file from mfc Pin
Hamid_RT5-Mar-07 5:40
Hamid_RT5-Mar-07 5:40 
AnswerRe: batch file from mfc Pin
Newbie005-Mar-07 7:05
Newbie005-Mar-07 7:05 
AnswerRe: batch file from mfc Pin
Stephen Hewitt6-Mar-07 0:22
Stephen Hewitt6-Mar-07 0:22 
QuestionDOS from mfc Pin
prathuraj5-Mar-07 5:12
prathuraj5-Mar-07 5:12 
AnswerRe: DOS from mfc Pin
Joan M5-Mar-07 5:16
professionalJoan M5-Mar-07 5:16 
AnswerRe: DOS from mfc Pin
James R. Twine5-Mar-07 5:22
James R. Twine5-Mar-07 5:22 
AnswerRe: DOS from mfc Pin
Stephen Hewitt5-Mar-07 11:39
Stephen Hewitt5-Mar-07 11:39 
GeneralRe: DOS from mfc -- help me Pin
prathuraj5-Mar-07 16:30
prathuraj5-Mar-07 16:30 
GeneralRe: DOS from mfc -- help me Pin
Stephen Hewitt5-Mar-07 16:35
Stephen Hewitt5-Mar-07 16:35 
GeneralRe: DOS from mfc -- help me Pin
prathuraj5-Mar-07 16:50
prathuraj5-Mar-07 16:50 
GeneralRe: DOS from mfc -- help me Pin
Stephen Hewitt5-Mar-07 16:55
Stephen Hewitt5-Mar-07 16:55 
GeneralRe: DOS from mfc -- anyone help me please i need it now Pin
prathuraj5-Mar-07 17:13
prathuraj5-Mar-07 17:13 
GeneralRe: DOS from mfc -- anyone help me please i need it now Pin
Stephen Hewitt5-Mar-07 19:55
Stephen Hewitt5-Mar-07 19:55 

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.