Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » U++ Core » Convert upp Font size to LOGFONT size
Convert upp Font size to LOGFONT size [message #15151] Thu, 03 April 2008 00:54 Go to previous message
mobilehunter is currently offline  mobilehunter
Messages: 87
Registered: November 2006
Member
Hi i did this inside RichEdit control, RichEdit just an example.
The problem was size of font.

LOGFONT lf;
FontInfo fi = formatinfo.Info();
ImmGetCompositionFont(hIMC,&lf);
lf.lfHeight = -DotToPt(formatinfo.GetHeight());
//font size will follow current font setting
ImmSetCompositionFont(hIMC, &lf);


The result was character inside IME window displayed smaller.
Is there any way to make character size inside IME window to have the same size as what richedit displayed?
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: What about "::" in LoadIniFile?
Next Topic: [BUG] CommandLine() returns non-unicode arguments
Goto Forum:
  


Current Time: Mon Apr 29 01:11:20 CEST 2024

Total time taken to generate the page: 0.03897 seconds