Click here to Skip to main content
15,914,488 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: How to use picture and animate control in VC6? Pin
flystar70722-Feb-05 22:16
flystar70722-Feb-05 22:16 
GeneralLinking MS SQL SERVER Database with QT Pin
Kush Kumar22-Feb-05 18:13
Kush Kumar22-Feb-05 18:13 
QuestionHow to create a dialog dynamicly and show it in a dll? Pin
sharkmouse22-Feb-05 18:04
sharkmouse22-Feb-05 18:04 
AnswerRe: How to create a dialog dynamicly and show it in a dll? Pin
Blake Miller23-Feb-05 4:36
Blake Miller23-Feb-05 4:36 
GeneralRe: How to create a dialog dynamicly and show it in a dll? Pin
sharkmouse24-Feb-05 2:35
sharkmouse24-Feb-05 2:35 
Generalcoledatetime format error in debug mode! Pin
stick0422-Feb-05 16:02
stick0422-Feb-05 16:02 
GeneralRe: coledatetime format error in debug mode! Pin
David Crow23-Feb-05 2:35
David Crow23-Feb-05 2:35 
GeneralDraw rectangle, but it single color!!! Pin
JAMANAKA22-Feb-05 15:34
JAMANAKA22-Feb-05 15:34 
Hi!
I have a problem with GDI.
I want draw a rectangle to memDC, then rotate it, last draw it to Screen. But when I draw it to memDC, it's single color.
code (draw it to memDC)

CDC DC;
DC.CreateCompatibleDC(pDC);
CBitmap bmTempBitmap;
bmTempBitmap.CreateCompatibleBitmap(&DC1,1024,768);
DC.SelectObject(bmTempBitmap);

CBrush brush;
brush.CreateSolidBrush(RGB(100,100,100));

CBrush* pOldBrush = (CBrush*)pDC->SelectObject(&brush);
CPen* pOldPen = (CPen*)pDC->SelectStockObject(NULL_PEN);
DC.Rectangle(&rcObj);
.... Rotate Rectangle....... copy to pDC, then write to screen.

Help me! Thank you very much.

GeneralRe: Draw rectangle, but it single color!!! Pin
Christian Graus22-Feb-05 16:09
protectorChristian Graus22-Feb-05 16:09 
GeneralRe: Draw rectangle, but it single color!!! Pin
Hamed Musavi22-Feb-05 16:18
Hamed Musavi22-Feb-05 16:18 
GeneralRe: Draw rectangle, but it single color!!! Pin
John R. Shaw22-Feb-05 16:32
John R. Shaw22-Feb-05 16:32 
GeneralRe: Draw rectangle, but it single color!!! Pin
Ryan Binns22-Feb-05 17:15
Ryan Binns22-Feb-05 17:15 
GeneralExtensible interfaces? WHY SO HARD!?! Pin
Will115722-Feb-05 15:30
sussWill115722-Feb-05 15:30 
GeneralRe: Extensible interfaces? WHY SO HARD!?! Pin
John R. Shaw22-Feb-05 17:24
John R. Shaw22-Feb-05 17:24 
GeneralWM_SIZE issue w/ Raw Win32s Pin
realloc22-Feb-05 14:26
realloc22-Feb-05 14:26 
GeneralRe: WM_SIZE issue w/ Raw Win32s Pin
Blake Miller23-Feb-05 4:45
Blake Miller23-Feb-05 4:45 
GeneralRe: WM_SIZE issue w/ Raw Win32s Pin
realloc23-Feb-05 15:39
realloc23-Feb-05 15:39 
GeneralRe: WM_SIZE issue w/ Raw Win32s Pin
Blake Miller24-Feb-05 5:46
Blake Miller24-Feb-05 5:46 
GeneralRe: WM_SIZE issue w/ Raw Win32s Pin
realloc24-Feb-05 12:11
realloc24-Feb-05 12:11 
GeneralMainMenu component Pin
MDowning22-Feb-05 14:10
MDowning22-Feb-05 14:10 
GeneralGathering ethernet network statistics Pin
Bail Organa22-Feb-05 13:55
Bail Organa22-Feb-05 13:55 
GeneralRe: Gathering ethernet network statistics Pin
David Crow22-Feb-05 14:07
David Crow22-Feb-05 14:07 
GeneralRe: Gathering ethernet network statistics Pin
Bail Organa23-Feb-05 10:19
Bail Organa23-Feb-05 10:19 
GeneralRe: Gathering ethernet network statistics Pin
David Crow23-Feb-05 10:28
David Crow23-Feb-05 10:28 
GeneralOnDraw() troubles.... Pin
bitpusher22-Feb-05 10:34
bitpusher22-Feb-05 10:34 

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.