Click here to Skip to main content
15,886,067 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionUsing C# in C++ Pin
Chris_Green8-Jun-11 23:54
Chris_Green8-Jun-11 23:54 
AnswerRe: Using C# in C++ Pin
CPallini9-Jun-11 0:24
mveCPallini9-Jun-11 0:24 
GeneralRe: Using C# in C++ Pin
Chris_Green9-Jun-11 0:54
Chris_Green9-Jun-11 0:54 
GeneralRe: Using C# in C++ Pin
Rolf Kristensen9-Jun-11 8:43
Rolf Kristensen9-Jun-11 8:43 
GeneralRe: Using C# in C++ Pin
CPallini9-Jun-11 22:03
mveCPallini9-Jun-11 22:03 
AnswerRe: Using C# in C++ Pin
ThatsAlok13-Jun-11 21:14
ThatsAlok13-Jun-11 21:14 
AnswerRe: Using C# in C++ Pin
ThatsAlok13-Jun-11 21:16
ThatsAlok13-Jun-11 21:16 
QuestionFont Size Problem in Edit Control [SOLVED] Pin
vishalgpt8-Jun-11 19:37
vishalgpt8-Jun-11 19: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 21:42
mveRichard MacCutchan8-Jun-11 21:42 
GeneralRe: Font Size Problem in Edit Control Pin
vishalgpt8-Jun-11 22:16
vishalgpt8-Jun-11 22:16 
GeneralRe: Font Size Problem in Edit Control Pin
Richard MacCutchan9-Jun-11 4:07
mveRichard MacCutchan9-Jun-11 4:07 
GeneralRe: Font Size Problem in Edit Control Pin
vishalgpt9-Jun-11 7:04
vishalgpt9-Jun-11 7:04 
GeneralRe: Font Size Problem in Edit Control Pin
Richard MacCutchan9-Jun-11 7:23
mveRichard MacCutchan9-Jun-11 7:23 
GeneralRe: Font Size Problem in Edit Control Pin
vishalgpt9-Jun-11 7:32
vishalgpt9-Jun-11 7:32 
GeneralRe: Font Size Problem in Edit Control Pin
Iain Clarke, Warrior Programmer9-Jun-11 8:03
Iain Clarke, Warrior Programmer9-Jun-11 8:03 
GeneralRe: Font Size Problem in Edit Control Pin
vishalgpt10-Jun-11 17:28
vishalgpt10-Jun-11 17:28 
Questionhow to get the code of OnLButtonDown and OnMouseMove etc in OnDraw method ? Pin
iampradeepsharma8-Jun-11 17:13
iampradeepsharma8-Jun-11 17:13 
AnswerRe: how to get the code of OnLButtonDown and OnMouseMove etc in OnDraw method ? Pin
Cedric Moonen8-Jun-11 20:29
Cedric Moonen8-Jun-11 20:29 
QuestionRe: how to get the code of OnLButtonDown and OnMouseMove etc in OnDraw method ? Pin
వేంకటనారాయణ(venkatmakam)8-Jun-11 20:30
వేంకటనారాయణ(venkatmakam)8-Jun-11 20:30 
AnswerRe: how to get the code of OnLButtonDown and OnMouseMove etc in OnDraw method ? Pin
Sarath C10-Jun-11 2:58
Sarath C10-Jun-11 2:58 
QuestionHow to fix the WinInet's block bug ? Pin
wangningyu8-Jun-11 15:36
wangningyu8-Jun-11 15:36 
QuestionFormatting CEdit Pin
DanYELL8-Jun-11 3:58
DanYELL8-Jun-11 3:58 
QuestionRe: Formatting CEdit Pin
David Crow8-Jun-11 4:21
David Crow8-Jun-11 4:21 
AnswerRe: Formatting CEdit Pin
DanYELL8-Jun-11 4:33
DanYELL8-Jun-11 4:33 
AnswerRe: Formatting CEdit Pin
Niklas L9-Jun-11 1:11
Niklas L9-Jun-11 1: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.