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

C / C++ / MFC

 
Generalsaving location, size, number info on exit Pin
ns10-Jan-03 4:39
ns10-Jan-03 4:39 
GeneralRe: saving location, size, number info on exit Pin
AlexO10-Jan-03 5:36
AlexO10-Jan-03 5:36 
GeneralRe: saving location, size, number info on exit Pin
ns10-Jan-03 5:44
ns10-Jan-03 5:44 
GeneralRe: saving location, size, number info on exit Pin
AlexO10-Jan-03 6:00
AlexO10-Jan-03 6:00 
GeneralMFC extension dll Pin
BORICUA10-Jan-03 4:27
BORICUA10-Jan-03 4:27 
GeneralRe: MFC extension dll Pin
Gary R. Wheeler12-Jan-03 3:39
Gary R. Wheeler12-Jan-03 3:39 
GeneralRe: MFC extension dll Pin
BORICUA12-Jan-03 18:03
BORICUA12-Jan-03 18:03 
GeneralFonts in bitmaps Pin
David Chamberlain10-Jan-03 4:08
David Chamberlain10-Jan-03 4:08 
I have an application that assembles a set of data into a memory device context which is then taken line by line and output to an external device. Some of what gets put into the MemDC includes text (for labels, etc), and I create a CFont object and then use TextOut to render the text on the MemDC.

When the screen is set to 8-bit color, everything works fine and the text is normal and as expected. When the screen is changed to 16-bit color, the font look enlarged and as if it is missing every other pixel. Alignment and positioning also get whacked.

What should I be paying attention to in order to get a 12-point font to be rendered properly in both 8- and 16-bit color modes, as well as in 24- and 32-bit color if the user has their screens set to that? We started using 8-bit color because the image data is 0-255 values and is palette based.

Any suggestions and pointers will be greatly appreciated.

Dave

"You can say that again." -- Dept. of Redundancy Dept.
GeneralRe: Fonts in bitmaps Pin
Davide Pizzolato11-Jan-03 9:11
Davide Pizzolato11-Jan-03 9:11 
GeneralGetting Windows XP Style/Theme programmatically Pin
Liam10-Jan-03 4:02
Liam10-Jan-03 4:02 
GeneralRe: Getting Windows XP Style/Theme programmatically Pin
andykkt13-Feb-10 2:59
andykkt13-Feb-10 2:59 
GeneralSimple stdin stuff Pin
Jon Hulatt10-Jan-03 3:34
Jon Hulatt10-Jan-03 3:34 
GeneralRe: Simple stdin stuff Pin
David Chamberlain10-Jan-03 4:12
David Chamberlain10-Jan-03 4:12 
QuestionHow to append two or more GSM wave files Pin
woonkop10-Jan-03 3:24
woonkop10-Jan-03 3:24 
GeneralRelated to image processing !! Pin
Sridhar Choudary10-Jan-03 3:16
Sridhar Choudary10-Jan-03 3:16 
GeneralRe: Related to image processing !! Pin
Gary Kirkham10-Jan-03 3:42
Gary Kirkham10-Jan-03 3:42 
GeneralRe: Related to image processing !! Pin
Sridhar Choudary10-Jan-03 3:57
Sridhar Choudary10-Jan-03 3:57 
GeneralRe: Related to image processing !! Pin
Gary Kirkham10-Jan-03 4:09
Gary Kirkham10-Jan-03 4:09 
GeneralRe: Related to image processing !! Pin
Sridhar Choudary10-Jan-03 4:16
Sridhar Choudary10-Jan-03 4:16 
GeneralCompiler error C2065 with _mbstowcsz Pin
tbcode10-Jan-03 2:08
tbcode10-Jan-03 2:08 
GeneralRe: Compiler error C2065 with _mbstowcsz Pin
AlexO10-Jan-03 2:38
AlexO10-Jan-03 2:38 
GeneralRe: Compiler error C2065 with _mbstowcsz Pin
tbcode13-Jan-03 3:26
tbcode13-Jan-03 3:26 
GeneralRe: Compiler error C2065 with _mbstowcsz Pin
Simon.W10-Jan-03 2:43
Simon.W10-Jan-03 2:43 
GeneralRe: Compiler error C2065 with _mbstowcsz Pin
tbcode13-Jan-03 3:31
tbcode13-Jan-03 3:31 
QuestionHow to receive keyboard accelerators ? Pin
rrrado10-Jan-03 1:57
rrrado10-Jan-03 1:57 

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.