Click here to Skip to main content
15,921,660 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: deleting a CDialog... Pin
Nish Nishant24-Feb-03 9:17
sitebuilderNish Nishant24-Feb-03 9:17 
Generalthanks!! Also need to know... Pin
ns24-Feb-03 9:28
ns24-Feb-03 9:28 
GeneralRe: deleting a CDialog... Pin
valikac24-Feb-03 9:17
valikac24-Feb-03 9:17 
GeneralRe: deleting a CDialog... Pin
User 665824-Feb-03 9:18
User 665824-Feb-03 9:18 
GeneralRe: deleting a CDialog... Pin
AlexO24-Feb-03 9:21
AlexO24-Feb-03 9:21 
GeneralDevice context with diffrent color of pen object Pin
mkashifkkj24-Feb-03 8:42
mkashifkkj24-Feb-03 8:42 
GeneralRe: Device context with diffrent color of pen object Pin
Chris Losinger24-Feb-03 9:46
professionalChris Losinger24-Feb-03 9:46 
QuestionRectangels and directdraw? Pin
anden24-Feb-03 8:21
anden24-Feb-03 8:21 
I'm using directdraw, and I got a problem.

I'm making a pong game, and I don't know
how to change the color of the rectangels
that the game is going to be build at.
Without ddraw, I'm doing that:

HDC hdc;
HPEN hPen;
HBRUSH hBrush;
hPen = GetPen (PS_SOLID, NULL, RGB(0,255,0));
hBrush = GetSolidBrush (RGB(0,0,0));
PAINTSTRUCT ps;
BeginPaint (hdc, &ps);
Rectangle (hdc, 23,54,100,249);
EndPaint ();

(I don't think the code is totally correct)

And it works!
When using ddraw, I'm writing something like this:

HDC hdc;
lpDDSBack->GetDC (&hdc);

Rectangle (hdc, 23,54,100,249);

lpDDSBack->ReleaseDC (hdc);

lpDDSPrimary->Flip (0, DDFLIP_WAIT);

WHERE IN THE H*LL DOES I PUT THE COLORS????




please, help me!!!

My english is bad?
Who cares!
GeneralEnter to Select button Pin
sstiller24-Feb-03 7:40
sstiller24-Feb-03 7:40 
GeneralRe: Enter to Select button Pin
Alvaro Mendez24-Feb-03 9:05
Alvaro Mendez24-Feb-03 9:05 
GeneralRe: Enter to Select button Pin
valikac24-Feb-03 9:23
valikac24-Feb-03 9:23 
GeneralRe: Enter to Select button Pin
sstiller26-Feb-03 19:09
sstiller26-Feb-03 19:09 
GeneralDelete a security group in VC 7.0 Pin
Member 13661824-Feb-03 5:49
Member 13661824-Feb-03 5:49 
GeneralRe: Delete a security group in VC 7.0 Pin
Dana Epp24-Feb-03 7:59
Dana Epp24-Feb-03 7:59 
Generallaunching dos programs(gui) Pin
eggman2124-Feb-03 5:39
eggman2124-Feb-03 5:39 
GeneralRe: launching dos programs(gui) Pin
jmkhael24-Feb-03 5:43
jmkhael24-Feb-03 5:43 
GeneralRe: launching dos programs(gui) Pin
eggman2124-Feb-03 7:04
eggman2124-Feb-03 7:04 
GeneralRe: launching dos programs(gui) Pin
Dana Epp24-Feb-03 14:46
Dana Epp24-Feb-03 14:46 
GeneralRe: launching dos programs(gui) Pin
eggman2125-Feb-03 5:05
eggman2125-Feb-03 5:05 
Generalsimple C function question Pin
Maximilien24-Feb-03 5:33
Maximilien24-Feb-03 5:33 
GeneralRe: simple C function question Pin
jmkhael24-Feb-03 5:36
jmkhael24-Feb-03 5:36 
GeneralCTime question Pin
Anonymous24-Feb-03 4:53
Anonymous24-Feb-03 4:53 
GeneralRe: CTime question Pin
João Paulo Figueira24-Feb-03 5:09
professionalJoão Paulo Figueira24-Feb-03 5:09 
GeneralRe: CTime question Pin
jhwurmbach24-Feb-03 5:09
jhwurmbach24-Feb-03 5:09 
GeneralRe: CTime question Pin
Alvaro Mendez24-Feb-03 5:25
Alvaro Mendez24-Feb-03 5:25 

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.