Click here to Skip to main content
16,012,316 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: How to remove a folder and all its contents Pin
vijay_aroli30-May-08 0:59
vijay_aroli30-May-08 0:59 
AnswerRe: How to remove a folder and all its contents Pin
Michael Schubert30-May-08 1:43
Michael Schubert30-May-08 1:43 
AnswerRe: How to remove a folder and all its contents Pin
David Crow30-May-08 3:17
David Crow30-May-08 3:17 
AnswerRe: How to remove a folder and all its contents Pin
ThatsAlok20-Jul-09 1:01
ThatsAlok20-Jul-09 1:01 
QuestionVisual Studio 2005 intellisense now showing all the elements Pin
ComplexLifeForm29-May-08 23:32
ComplexLifeForm29-May-08 23:32 
AnswerRe: Visual Studio 2005 intellisense now showing all the elements Pin
Ahmed Charfeddine30-May-08 2:11
Ahmed Charfeddine30-May-08 2:11 
QuestionRe: Visual Studio 2005 intellisense now showing all the elements Pin
David Crow30-May-08 3:19
David Crow30-May-08 3:19 
QuestionDrawing a Japanese string onto a dialog Pin
V K 229-May-08 23:03
V K 229-May-08 23:03 
Hi,
I am facing a problem with Japanese font - MS UI Gothic ,regular,16.. We have a function for handling Japanese strings.. But as per current implementation.. after user types any text onto a dialog and presses enter or minimizes the dialog then the entered text is turning bold. Our current implementation is


DWORD DrawJapaneseString( HWND hWnd, PSTR str, LPRECT lpR)
{

HDC hDC;
DWORD dwExt;
int xStart = 0;
HFONT htempFont;
RECT charRect;

HideCaret( hWnd );
hDC = GetDC( hWnd );

dwExt = GetTextBoundingSize( hDC, (LPSTR) str, textLen, &xStart );

if( GetSystemMetrics(SM_DBCSENABLED)) {
SetRect( (LPRECT) &charRect,
textStart.x,textStart.y,
textStart.x+LOWORD(dwExt), textStart.y+ HIWORD(dwExt));
// AppRedraw expands rectangle by 10 anyway...
AppRedraw( hWnd, &charRect );
SetTextColor( hDC, textPen.lopnColor );
int nmode = SetBkMode( hDC, TRANSPARENT );
DrawText(hDC,str,textLen,&charRect,DT_LEFT);
SetBkMode( hDC, nmode);
textLoc.x = charRect.right;
}
ReleaseDC( hWnd, hDC );
ShowCaret( hWnd );
return( dwExt );
}

Can I know how to stop the text turning to bold.


Thanks.
GeneralRe: Drawing a Japanese string onto a dialog Pin
ShilpiP29-May-08 23:40
ShilpiP29-May-08 23:40 
GeneralRe: Drawing a Japanese string onto a dialog Pin
V K 230-May-08 1:04
V K 230-May-08 1:04 
QuestionRe: Drawing a Japanese string onto a dialog Pin
ShilpiP30-May-08 1:13
ShilpiP30-May-08 1:13 
AnswerRe: Drawing a Japanese string onto a dialog Pin
V K 230-May-08 2:21
V K 230-May-08 2:21 
Questionhndling of controls in smart device Pin
waquasalig29-May-08 22:55
waquasalig29-May-08 22:55 
QuestionRe: hndling of controls in smart device Pin
David Crow30-May-08 3:20
David Crow30-May-08 3:20 
Questionuser control Pin
subramanyeswari29-May-08 22:24
subramanyeswari29-May-08 22:24 
AnswerRe: user control Pin
subramanyeswari29-May-08 23:06
subramanyeswari29-May-08 23:06 
AnswerRe: user control Pin
ShilpiP29-May-08 23:50
ShilpiP29-May-08 23:50 
AnswerRe: user control Pin
David Crow30-May-08 3:21
David Crow30-May-08 3:21 
GeneralRe: user control Pin
subramanyeswari30-May-08 3:32
subramanyeswari30-May-08 3:32 
QuestionShellExecute swallowing empty parameter Pin
mav.northwind29-May-08 21:29
mav.northwind29-May-08 21:29 
QuestionRe: ShellExecute swallowing empty parameter Pin
David Crow30-May-08 3:25
David Crow30-May-08 3:25 
AnswerRe: ShellExecute swallowing empty parameter Pin
mav.northwind30-May-08 3:45
mav.northwind30-May-08 3:45 
QuestionRe: ShellExecute swallowing empty parameter Pin
David Crow30-May-08 4:08
David Crow30-May-08 4:08 
AnswerRe: ShellExecute swallowing empty parameter Pin
mav.northwind30-May-08 4:43
mav.northwind30-May-08 4:43 
QuestionRe: ShellExecute swallowing empty parameter Pin
David Crow30-May-08 4:50
David Crow30-May-08 4:50 

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.