Click here to Skip to main content
15,895,462 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionRegEnumValue fn error ... help me .. Pin
Sakthiu17-Oct-06 20:04
Sakthiu17-Oct-06 20:04 
QuestionRe: RegEnumValue fn error ... help me .. Pin
prasad_som17-Oct-06 20:09
prasad_som17-Oct-06 20:09 
AnswerRe: RegEnumValue fn error ... help me .. Pin
Sakthiu17-Oct-06 20:13
Sakthiu17-Oct-06 20:13 
AnswerRe: RegEnumValue fn error ... help me .. Pin
prasad_som17-Oct-06 20:35
prasad_som17-Oct-06 20:35 
GeneralRe: RegEnumValue fn error ... help me .. Pin
Waldermort17-Oct-06 20:51
Waldermort17-Oct-06 20:51 
GeneralRe: RegEnumValue fn error ... help me .. Pin
Blake Miller18-Oct-06 9:52
Blake Miller18-Oct-06 9:52 
AnswerRe: RegEnumValue fn error ... help me .. Pin
ThatsAlok18-Oct-06 5:07
ThatsAlok18-Oct-06 5:07 
QuestionLOGFONT and GetTextExtent Pin
includeh1017-Oct-06 20:04
includeh1017-Oct-06 20:04 
map-mode for CView DC is default (MM_TEXT), for printer is:
//-------------------------
int iMapMode=dc.SetMapMode(MM_ANISOTROPIC);
const int iLogX=dc.GetDeviceCaps(LOGPIXELSX);
const int iLogY=dc.GetDeviceCaps(LOGPIXELSY);
dc.SetViewportExt(iLogX,iLogY);
dc.SetWindowExt(100,100);
//-------------------------

lfHeight of LOGFONT is -11.
after the LOGFONT has been selected to DCs, I use GetTextExtent() function to obtain text's height.

for CView DC, text height is 14.
for printer DC, text height is 12.

how to change lfHeight of LOGFONT to keep same height for text in both CView and printer DCs?










AnswerRe: LOGFONT and GetTextExtent Pin
Mark Salsbery18-Oct-06 6:29
Mark Salsbery18-Oct-06 6:29 
QuestionHow to access print preview Control bar Pin
georgekjolly17-Oct-06 19:23
georgekjolly17-Oct-06 19:23 
AnswerRe: How to access print preview Control bar Pin
alphaxz17-Oct-06 19:27
alphaxz17-Oct-06 19:27 
QuestionDLL Programming: a Web Browser on Dialog Box Pin
Get_Rakesh17-Oct-06 18:41
Get_Rakesh17-Oct-06 18:41 
QuestionHow to run a command and wait for its completion Pin
Abhiyantara17-Oct-06 18:36
Abhiyantara17-Oct-06 18:36 
AnswerRe: How to run a command and wait for its completion Pin
Stephen Hewitt17-Oct-06 19:06
Stephen Hewitt17-Oct-06 19:06 
GeneralRe: How to run a command and wait for its completion Pin
alphaxz17-Oct-06 19:13
alphaxz17-Oct-06 19:13 
GeneralRe: How to run a command and wait for its completion Pin
Mark Salsbery18-Oct-06 6:31
Mark Salsbery18-Oct-06 6:31 
Questionfstream + vector Pin
aldo hexosa17-Oct-06 18:35
professionalaldo hexosa17-Oct-06 18:35 
AnswerRe: fstream + vector Pin
Stephen Hewitt17-Oct-06 18:55
Stephen Hewitt17-Oct-06 18:55 
AnswerRe: fstream + vector Pin
Programm3r17-Oct-06 20:34
Programm3r17-Oct-06 20:34 
GeneralRe: fstream + vector Pin
Link200617-Oct-06 21:08
Link200617-Oct-06 21:08 
JokeRe: fstream + vector Pin
Programm3r17-Oct-06 21:12
Programm3r17-Oct-06 21:12 
GeneralRe: fstream + vector Pin
Christian Graus17-Oct-06 21:55
protectorChristian Graus17-Oct-06 21:55 
QuestionHow to create Internet shortcut link? Pin
kiranin17-Oct-06 18:04
kiranin17-Oct-06 18:04 
QuestionRe: How to create Internet shortcut link? Pin
prasad_som17-Oct-06 19:19
prasad_som17-Oct-06 19:19 
AnswerRe: How to create Internet shortcut link? Pin
kiranin17-Oct-06 19:27
kiranin17-Oct-06 19:27 

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.