Click here to Skip to main content
15,889,861 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Help needed with Alphablend function Pin
Rozis27-Jun-09 8:25
Rozis27-Jun-09 8:25 
GeneralRe: Help needed with Alphablend function Pin
PJ Arends27-Jun-09 12:14
professionalPJ Arends27-Jun-09 12:14 
AnswerRe: Help needed with Alphablend function Pin
Rozis27-Jun-09 23:00
Rozis27-Jun-09 23:00 
GeneralRe: Help needed with Alphablend function Pin
PJ Arends28-Jun-09 19:48
professionalPJ Arends28-Jun-09 19:48 
QuestionSetting font.. [modified] Pin
kumar sanghvi26-Jun-09 9:53
kumar sanghvi26-Jun-09 9:53 
AnswerRe: Setting font.. Pin
CPallini26-Jun-09 10:06
mveCPallini26-Jun-09 10:06 
GeneralRe: Setting font.. Pin
kumar sanghvi26-Jun-09 10:10
kumar sanghvi26-Jun-09 10:10 
GeneralRe: Setting font.. Pin
CPallini26-Jun-09 10:25
mveCPallini26-Jun-09 10:25 
OK.

kumar sanghvi wrote:
lf.lfHeight= 20;


From MSDN [^]:


For the MM_TEXT mapping mode, you may use the following formula to specify a height for a font with a given point size.

lfHeight = -MulDiv(PointSize, GetDeviceCaps(hDC, LOGPIXELSY), 72);

where MulDiv is defined as follows:

#define MulDiv(a,b,c) (((a)*(b))/(c))


If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.

This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke

[My articles]

GeneralRe: Setting font.. Pin
kumar sanghvi26-Jun-09 17:55
kumar sanghvi26-Jun-09 17:55 
GeneralRe: Setting font.. Pin
kumar sanghvi27-Jun-09 2:26
kumar sanghvi27-Jun-09 2:26 
QuestionUsing CoCreateInstance from C to use class in VB DLL [modified] Pin
BeerFizz26-Jun-09 8:08
BeerFizz26-Jun-09 8:08 
QuestionRe: Using CoCreateInstance from C to use class in VB DLL Pin
CPallini26-Jun-09 8:58
mveCPallini26-Jun-09 8:58 
AnswerRe: Using CoCreateInstance from C to use class in VB DLL Pin
BeerFizz26-Jun-09 9:30
BeerFizz26-Jun-09 9:30 
GeneralRe: Using CoCreateInstance from C to use class in VB DLL Pin
CPallini26-Jun-09 9:38
mveCPallini26-Jun-09 9:38 
General[Message Deleted] Pin
BeerFizz26-Jun-09 10:00
BeerFizz26-Jun-09 10:00 
GeneralRe: Using CoCreateInstance from C to use class in VB DLL Pin
BeerFizz26-Jun-09 10:06
BeerFizz26-Jun-09 10:06 
QuestionRe: Using CoCreateInstance from C to use class in VB DLL Pin
CPallini26-Jun-09 10:17
mveCPallini26-Jun-09 10:17 
AnswerRe: Using CoCreateInstance from C to use class in VB DLL Pin
BeerFizz26-Jun-09 10:41
BeerFizz26-Jun-09 10:41 
GeneralRe: Using CoCreateInstance from C to use class in VB DLL Pin
CPallini26-Jun-09 11:00
mveCPallini26-Jun-09 11:00 
GeneralRe: Using CoCreateInstance from C to use class in VB DLL Pin
BeerFizz26-Jun-09 11:11
BeerFizz26-Jun-09 11:11 
GeneralRe: Using CoCreateInstance from C to use class in VB DLL Pin
CPallini26-Jun-09 11:21
mveCPallini26-Jun-09 11:21 
GeneralRefresh a form in C++ Builder Pin
David21u226-Jun-09 6:12
David21u226-Jun-09 6:12 
QuestionRe: Refresh a form in C++ Builder Pin
David Crow26-Jun-09 7:29
David Crow26-Jun-09 7:29 
AnswerRe: Refresh a form in C++ Builder Pin
David21u226-Jun-09 7:42
David21u226-Jun-09 7:42 
QuestionRe: Refresh a form in C++ Builder Pin
David Crow26-Jun-09 7:47
David Crow26-Jun-09 7:47 

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.