Click here to Skip to main content
15,507,406 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionUsing C# in C++ Pin
Chris_Green9-Jun-11 0:54
Chris_Green9-Jun-11 0:54 
AnswerRe: Using C# in C++ Pin
CPallini9-Jun-11 1:24
mveCPallini9-Jun-11 1:24 
GeneralRe: Using C# in C++ Pin
Chris_Green9-Jun-11 1:54
Chris_Green9-Jun-11 1:54 
GeneralRe: Using C# in C++ Pin
Rolf Kristensen9-Jun-11 9:43
Rolf Kristensen9-Jun-11 9:43 
GeneralRe: Using C# in C++ Pin
CPallini9-Jun-11 23:03
mveCPallini9-Jun-11 23:03 
AnswerRe: Using C# in C++ Pin
ThatsAlok13-Jun-11 22:14
ThatsAlok13-Jun-11 22:14 
AnswerRe: Using C# in C++ Pin
ThatsAlok13-Jun-11 22:16
ThatsAlok13-Jun-11 22:16 
QuestionFont Size Problem in Edit Control [SOLVED] Pin
vishalgpt8-Jun-11 20:37
vishalgpt8-Jun-11 20:37 
Hi to all,
I am facing a strange problem, i had asked for help in the forum few days before. But due to certain delays i was unable to show the code. Here is the code. My Problem is with hindi fonts.

When i substitute the the LOGFONT.lfHeight with 0(Zero) then everything works fine, But when i change the size of lfHeight to anything greater or lesser than zero, the Hindi fonts is displayed very small. How to solve this issue.



case WM_INITDIALOG:
	LOGFONT lf;
		
	HFONT cFont;
	HWND target = GetDlgItem(hwnd,IDC_STATIC1);
	HFONT hFont = (HFONT)GetStockObject(DEFAULT_GUI_FONT);
	GetObject(hFont, sizeof(LOGFONT), &lf);

	lf.lfHeight = 0;
	cFont = CreateFontIndirect(&lf);
	SendMessage(target,WM_SETFONT,(WPARAM)cFont,MAKELPARAM(TRUE,0));
	SetWindowText(target,_T("C:\\Program Files\\অভিধান: ইংরেজী\\सरकारी &&"));
	break;


sorry for posting twice.
Regards,
Vishal
modified on Thursday, June 9, 2011 1:32 PM

AnswerRe: Font Size Problem in Edit Control Pin
Richard MacCutchan8-Jun-11 22:42
mveRichard MacCutchan8-Jun-11 22:42 
GeneralRe: Font Size Problem in Edit Control Pin
vishalgpt8-Jun-11 23:16
vishalgpt8-Jun-11 23:16 
GeneralRe: Font Size Problem in Edit Control Pin
Richard MacCutchan9-Jun-11 5:07
mveRichard MacCutchan9-Jun-11 5:07 
GeneralRe: Font Size Problem in Edit Control Pin
vishalgpt9-Jun-11 8:04
vishalgpt9-Jun-11 8:04 
GeneralRe: Font Size Problem in Edit Control Pin
Richard MacCutchan9-Jun-11 8:23
mveRichard MacCutchan9-Jun-11 8:23 
GeneralRe: Font Size Problem in Edit Control Pin
vishalgpt9-Jun-11 8:32
vishalgpt9-Jun-11 8:32 
GeneralRe: Font Size Problem in Edit Control Pin
Iain Clarke, Warrior Programmer9-Jun-11 9:03
Iain Clarke, Warrior Programmer9-Jun-11 9:03 
GeneralRe: Font Size Problem in Edit Control Pin
vishalgpt10-Jun-11 18:28
vishalgpt10-Jun-11 18:28 
Questionhow to get the code of OnLButtonDown and OnMouseMove etc in OnDraw method ? Pin
iampradeepsharma8-Jun-11 18:13
iampradeepsharma8-Jun-11 18:13 
AnswerRe: how to get the code of OnLButtonDown and OnMouseMove etc in OnDraw method ? Pin
Cedric Moonen8-Jun-11 21:29
Cedric Moonen8-Jun-11 21:29 
QuestionRe: how to get the code of OnLButtonDown and OnMouseMove etc in OnDraw method ? Pin
వేంకటనారాయణ(venkatmakam)8-Jun-11 21:30
వేంకటనారాయణ(venkatmakam)8-Jun-11 21:30 
AnswerRe: how to get the code of OnLButtonDown and OnMouseMove etc in OnDraw method ? Pin
Sarath C10-Jun-11 3:58
Sarath C10-Jun-11 3:58 
QuestionHow to fix the WinInet's block bug ? Pin
wangningyu8-Jun-11 16:36
wangningyu8-Jun-11 16:36 
QuestionFormatting CEdit Pin
DanYELL8-Jun-11 4:58
DanYELL8-Jun-11 4:58 
QuestionRe: Formatting CEdit Pin
David Crow8-Jun-11 5:21
David Crow8-Jun-11 5:21 
AnswerRe: Formatting CEdit Pin
DanYELL8-Jun-11 5:33
DanYELL8-Jun-11 5:33 
AnswerRe: Formatting CEdit Pin
Niklas L9-Jun-11 2:11
Niklas L9-Jun-11 2:11 

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.