I'm not using MFC and the control was created as a resource in my dialog box, not with source code.
I need to know what function(s) do I need to call to modify the appearance of the static text (bold, italic, blue, green blah...). [Control Properties - in other visual languages like VB, VF :)]
I'm !working with MFC...
I need to know how can I format a text (Static or in a Text box), I mean, I need to change the font or the text style...
THANX
// here's some code ...
///////////////////////
case IDC_GET:
GetDlgItemText(hWnd, IDC_TXT, g_lpBuff, 64); //da problem
break;
///////////////////////
//IDC_GET - a button ID
//IDC_TXT - a text box ID
//LPTSTR g_lpBuff = NULL; - a global buffer var
//what's wrong ???
I'm a new boy in town & I have a problem when I call GetDlgItemText() to get the text from a TextBox control.
I get one ugly error (fault in User.exe). What's the remedy?? I also tried to use SendMessage() to "post" a WM_GETTEXT message. What did I do wrong. THANX.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.