Click here to Skip to main content
15,907,392 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: SHFileOperation is pissing me off - won't copy just 1 file Pin
AceCoolie26-Aug-06 4:47
AceCoolie26-Aug-06 4:47 
GeneralRe: SHFileOperation is pissing me off - won't copy just 1 file Pin
Justin Tay26-Aug-06 9:43
Justin Tay26-Aug-06 9:43 
QuestionRe: bitmap to clipboard, OLE Pin
mla15425-Aug-06 11:21
mla15425-Aug-06 11:21 
AnswerRe: bitmap to clipboard, OLE Pin
Dave Calkins25-Aug-06 16:30
Dave Calkins25-Aug-06 16:30 
QuestionRe: bitmap to clipboard, OLE [modified] Pin
mla15429-Aug-06 8:36
mla15429-Aug-06 8:36 
QuestionHTML resource file Pin
Demian Panello25-Aug-06 11:21
Demian Panello25-Aug-06 11:21 
AnswerRe: HTML resource file Pin
Gary R. Wheeler25-Aug-06 15:49
Gary R. Wheeler25-Aug-06 15:49 
QuestionProblem with ClearType text in custom control Pin
WarnerYoung25-Aug-06 10:32
WarnerYoung25-Aug-06 10:32 
I'm running into a problem that seems like it must be solvable, but I can't find any documentation that explains it.

The basics: I have a custom control that uses a bitmap for a background (either created programmatically, or by loading a resource or file). This is done in an off-screen memory DC to avoid flickering. After the bitmap is rendered, I render some text onto it using DrawText() API. When it's done, the whole thing is blitted back onto the screen.

The problem: When ClearType is enabled, the text looks ugly, almost as if every letter has a black outline around it. I'm guessing this is the sub-pixel antialiasing stuff, which has somehow turned black when I blit from the memory DC to the screen.

Question: how can I allow and use ClearType in my control and still have it look okay? Apps like IE and Firefox handle ClearType correctly, and I'm pretty sure they're using some kind of off-screen double-buffering scheme for drawing, so it seems to me there should be a way to do it. But I'm darned if I can figure out how.

Thanks in advance for any help,
Warner Young
AnswerRe: Problem with ClearType text in custom control Pin
Waldermort25-Aug-06 13:15
Waldermort25-Aug-06 13:15 
AnswerRe: Problem with ClearType text in custom control Pin
Justin Tay25-Aug-06 14:11
Justin Tay25-Aug-06 14:11 
QuestionBasic concepts Pin
Oliver12325-Aug-06 9:32
Oliver12325-Aug-06 9:32 
AnswerRe: Basic concepts Pin
Zac Howland25-Aug-06 9:54
Zac Howland25-Aug-06 9:54 
AnswerRe: Basic concepts Pin
Chris Losinger25-Aug-06 10:17
professionalChris Losinger25-Aug-06 10:17 
QuestionHowto draw a rotated ellipse with MFC Pin
AnTri25-Aug-06 7:35
AnTri25-Aug-06 7:35 
AnswerRe: Howto draw a rotated ellipse with MFC Pin
Zac Howland25-Aug-06 8:09
Zac Howland25-Aug-06 8:09 
QuestionC/C++ complete reference material Pin
9ine25-Aug-06 6:13
9ine25-Aug-06 6:13 
QuestionRe: C/C++ complete reference material Pin
David Crow25-Aug-06 6:15
David Crow25-Aug-06 6:15 
AnswerRe: C/C++ complete reference material Pin
9ine25-Aug-06 6:20
9ine25-Aug-06 6:20 
AnswerRe: C/C++ complete reference material Pin
Zac Howland25-Aug-06 6:34
Zac Howland25-Aug-06 6:34 
AnswerRe: C/C++ complete reference material Pin
Mike Dimmick25-Aug-06 6:43
Mike Dimmick25-Aug-06 6:43 
GeneralRe: C/C++ complete reference material Pin
Dave Calkins25-Aug-06 16:46
Dave Calkins25-Aug-06 16:46 
QuestionDifferences between embedded and regular VC++ [modified] Pin
JWood25-Aug-06 5:18
JWood25-Aug-06 5:18 
AnswerRe: Differences between embedded and regular VC++ Pin
Jun Du25-Aug-06 5:41
Jun Du25-Aug-06 5:41 
GeneralRe: Differences between embedded and regular VC++ [modified] Pin
JWood25-Aug-06 9:21
JWood25-Aug-06 9:21 
AnswerRe: Differences between embedded and regular VC++ Pin
Zac Howland25-Aug-06 6:36
Zac Howland25-Aug-06 6:36 

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.