Click here to Skip to main content
15,913,758 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Help needed with Alphablend function Pin
PJ Arends26-Jun-09 11:05
professionalPJ Arends26-Jun-09 11:05 
GeneralRe: Help needed with Alphablend function Pin
Rozis27-Jun-09 1:22
Rozis27-Jun-09 1:22 
GeneralRe: Help needed with Alphablend function Pin
PJ Arends27-Jun-09 6:08
professionalPJ Arends27-Jun-09 6:08 
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 
Hi,
i have a resource file in which i have changed the font property of the dialog to "Arial" regular
20....
then the font inside the dialog got increased...along with the text of the controls inside dialog..

and now i tried changing from the code in initDialog function like...

CFont newfont;
LOGFONT lf;
SecureZeroMemory(&lf, sizeof(lf));
lf.lfHeight = 20;
lf.lfWeight = FW_MEDIUM;
lstrcpy(lf.lfFaceName, _T("Arial"));
newfont.CreateFontIndirect(&lf);
GetDlgItem(IDC_CHECK1)->SetFont(&newfont);

GetDlgItem(IDC_STATIC)->SetFont(&newfont);

newfont.Detach();

and now when i build and see the output the look of the dialog with new font is not same and even the font looks smaller than the font of the dialog which i have tried to change manually the font property of the Dialog....

Please suggest me how can i make changes to my code so that both look similar....

modified on Friday, June 26, 2009 4:20 PM

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 
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 

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.