Doh.. Why no 3D look!?
-
I feel kinda stupid asking this... but when I try creating my edit box I can't get it to look 3D!!! :~ The font that the edit box has is damn ugly too! X| How to get away from these things!? I never had these problems when I did the same on VC++ 6! Now I'm using Vc++ 7 Rickard Andersson@Suza Computing C# and C++ programmer from SWEDEN! UIN: 50302279 E-Mail: nikado@pc.nu Speciality: I love C#, ASP.NET and C++!
-
I feel kinda stupid asking this... but when I try creating my edit box I can't get it to look 3D!!! :~ The font that the edit box has is damn ugly too! X| How to get away from these things!? I never had these problems when I did the same on VC++ 6! Now I'm using Vc++ 7 Rickard Andersson@Suza Computing C# and C++ programmer from SWEDEN! UIN: 50302279 E-Mail: nikado@pc.nu Speciality: I love C#, ASP.NET and C++!
Set the font to the parent's font. pYourEdit->SetFont(pYourEdit->GetParent()->GetFont()); or just simply: pYourEdit->SetFont(GetFont()); , if you are doing it from the code of parent's window. Zolee
-
Set the font to the parent's font. pYourEdit->SetFont(pYourEdit->GetParent()->GetFont()); or just simply: pYourEdit->SetFont(GetFont()); , if you are doing it from the code of parent's window. Zolee
Sorry I didn't tell you that I don't use MFC! I create my edit box like this: wndCmdEdit = CreateWindow("edit", NULL, WS_CHILD | WS_VISIBLE | WS_BORDER | ES_LEFT | ES_MULTILINE, 5, 130, 385, 20, hWnd, (HMENU)IDC_MAINWNDEDIT, hInst, NULL); Rickard Andersson@Suza Computing C# and C++ programmer from SWEDEN! UIN: 50302279 E-Mail: nikado@pc.nu Speciality: I love C#, ASP.NET and C++!
-
Sorry I didn't tell you that I don't use MFC! I create my edit box like this: wndCmdEdit = CreateWindow("edit", NULL, WS_CHILD | WS_VISIBLE | WS_BORDER | ES_LEFT | ES_MULTILINE, 5, 130, 385, 20, hWnd, (HMENU)IDC_MAINWNDEDIT, hInst, NULL); Rickard Andersson@Suza Computing C# and C++ programmer from SWEDEN! UIN: 50302279 E-Mail: nikado@pc.nu Speciality: I love C#, ASP.NET and C++!
For 3D look, use the CreateWindowEx() function with the WS_EX_CLIENTEDGE extended window style. Then use SendMessage() to send a WM_SETFONT message to the edit control to set it's font.
CPUA 0x5041 Sonork 100.11743 Chicken Little "So it can now be written in stone as a testament to humanities achievments "PJ did Pi at CP"." Colin Davies Within you lies the power for good - Use it!