Click here to Skip to main content
15,890,527 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionHow do I control what files get compiled? Pin
Interrobang4-Dec-09 6:36
Interrobang4-Dec-09 6:36 
AnswerRe: How do I control what files get compiled? [modified] Pin
transoft4-Dec-09 6:45
transoft4-Dec-09 6:45 
GeneralRe: How do I control what files get compiled? Pin
Interrobang4-Dec-09 7:30
Interrobang4-Dec-09 7:30 
GeneralRe: How do I control what files get compiled? Pin
T21024-Dec-09 12:43
T21024-Dec-09 12:43 
AnswerRe: How do I control what files get compiled? Pin
David Crow4-Dec-09 7:54
David Crow4-Dec-09 7:54 
GeneralRe: How do I control what files get compiled? Pin
Interrobang4-Dec-09 9:13
Interrobang4-Dec-09 9:13 
GeneralRe: How do I control what files get compiled? Pin
Bram van Kampen4-Dec-09 16:31
Bram van Kampen4-Dec-09 16:31 
QuestionHelp me use SetROP2 Pin
unistar_kl4-Dec-09 4:20
unistar_kl4-Dec-09 4:20 
I what to draw a XOR box on a memory DIB,so:
HDC hdc = CreateCompatibleDC(0);// create a DC
HBITMAP hmap=CreateDIBSection(hdc,(BITMAPINFO*)(&bmih),DIB_RGB_COLORS,(void**)(&pBits),NULL,NULL);// create a DIB
SelectObject(hdc,hmap);// select DIB to DC
TextOut(hdc,l,t,"Test String",12);// Draw something
SetROP2(hdc,R2_XORPEN);// set mix mode
Rectangle(hdc,l,t,r,b);// draw box with xor pen,but it not work
and I also test this:
PatBlt(hdc,b,t,w,h,DSTINVERT);// it not work too
Can somebody tell me why?
AnswerRe: Help me use SetROP2 Pin
«_Superman_»4-Dec-09 4:41
professional«_Superman_»4-Dec-09 4:41 
GeneralRe: Help me use SetROP2 [modified] Pin
unistar_kl4-Dec-09 4:48
unistar_kl4-Dec-09 4:48 
AnswerRe: Help me use SetROP2 - Use ImageViewer Pin
Iain Clarke, Warrior Programmer5-Dec-09 3:08
Iain Clarke, Warrior Programmer5-Dec-09 3:08 
GeneralRe: Help me use SetROP2 - Use ImageViewer [modified] Pin
unistar_kl5-Dec-09 4:18
unistar_kl5-Dec-09 4:18 
GeneralRe: Help me use SetROP2 - Use ImageViewer Pin
PJ Arends5-Dec-09 6:59
professionalPJ Arends5-Dec-09 6:59 
GeneralRe: Help me use SetROP2 - Use ImageViewer Pin
Iain Clarke, Warrior Programmer5-Dec-09 8:20
Iain Clarke, Warrior Programmer5-Dec-09 8:20 
GeneralRe: Help me use SetROP2 - Use ImageViewer Pin
unistar_kl6-Dec-09 14:24
unistar_kl6-Dec-09 14:24 
AnswerRe: Help me use SetROP2 Pin
Rozis5-Dec-09 3:46
Rozis5-Dec-09 3:46 
GeneralRe: Help me use SetROP2 Pin
unistar_kl5-Dec-09 4:50
unistar_kl5-Dec-09 4:50 
GeneralRe: Help me use SetROP2 Pin
Rozis5-Dec-09 13:04
Rozis5-Dec-09 13:04 
GeneralRe: Help me use SetROP2 Pin
unistar_kl6-Dec-09 14:00
unistar_kl6-Dec-09 14:00 
QuestionHow to put a timer in an OSI model application Pin
chan114-Dec-09 3:28
chan114-Dec-09 3:28 
AnswerRe: How to put a timer in an OSI model application Pin
«_Superman_»4-Dec-09 4:37
professional«_Superman_»4-Dec-09 4:37 
GeneralRe: How to put a timer in an OSI model application Pin
chan114-Dec-09 5:25
chan114-Dec-09 5:25 
AnswerRe: How to put a timer in an OSI model application Pin
Moak8-Dec-09 11:56
Moak8-Dec-09 11:56 
Questionserial port program Pin
shanmugarajaa4-Dec-09 1:05
shanmugarajaa4-Dec-09 1:05 
QuestionRe: serial port program Pin
David Crow4-Dec-09 3:10
David Crow4-Dec-09 3:10 

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.