Click here to Skip to main content
15,929,439 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Force a program to get Unicode Pin
GDavy17-Oct-06 23:25
GDavy17-Oct-06 23:25 
AnswerRe: Force a program to get Unicode Pin
ThatsAlok18-Oct-06 5:09
ThatsAlok18-Oct-06 5:09 
QuestionHow to reduce the CPU Usage? Pin
willbin17-Oct-06 21:40
willbin17-Oct-06 21:40 
AnswerRe: How to reduce the CPU Usage? Pin
Christian Graus17-Oct-06 21:47
protectorChristian Graus17-Oct-06 21:47 
GeneralRe: How to reduce the CPU Usage? Pin
willbin18-Oct-06 5:20
willbin18-Oct-06 5:20 
QuestionRTC issue Pin
Cristi B17-Oct-06 21:29
Cristi B17-Oct-06 21:29 
QuestionPrinting tooltips displayed using cWindow class Pin
panks_r17-Oct-06 20:37
panks_r17-Oct-06 20:37 
AnswerRe: Printing tooltips displayed using cWindow class Pin
Programm3r17-Oct-06 20:45
Programm3r17-Oct-06 20:45 
QuestionDbase with CDaoDatabase? Pin
murali_utr17-Oct-06 20:09
murali_utr17-Oct-06 20:09 
AnswerRe: Dbase with CDaoDatabase? Pin
Jörgen Sigvardsson18-Oct-06 11:49
Jörgen Sigvardsson18-Oct-06 11:49 
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 

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.