May 27, 2003 #1 john0532 Programmer Jul 2, 2002 27 US If I use CEdit::Create() to create and edit box at run time I don't get the 3D effect. How can this be done?
If I use CEdit::Create() to create and edit box at run time I don't get the 3D effect. How can this be done?
May 27, 2003 #2 LazyMe Programmer Jan 13, 2003 938 MX Did you include the WS_BORDER style in the dwStyle parameter? Greetings, Rick Upvote 0 Downvote
May 28, 2003 Thread starter #3 john0532 Programmer Jul 2, 2002 27 US Using the following code gives me a 2D box, no borders. CEdit* pEdit = new CEdit; pEdit->Create(WS_VISIBLE | WS_TABSTOP | WS_BORDER, CRect(40,380,300,400), this, 1); Article 132243 in the MS knowledge base gives this example: m_Edit.CreateEx(WS_EX_CLIENTEDGE, "EDIT", "", WS_CHILD | WS_BORDER | WS_VISIBLE, 10, 10, 100, 100, pParent->GetSafeHwnd(), (HMENU)nID); but I haven't had any luck with it. I appreciate your help/ any help. Upvote 0 Downvote
Using the following code gives me a 2D box, no borders. CEdit* pEdit = new CEdit; pEdit->Create(WS_VISIBLE | WS_TABSTOP | WS_BORDER, CRect(40,380,300,400), this, 1); Article 132243 in the MS knowledge base gives this example: m_Edit.CreateEx(WS_EX_CLIENTEDGE, "EDIT", "", WS_CHILD | WS_BORDER | WS_VISIBLE, 10, 10, 100, 100, pParent->GetSafeHwnd(), (HMENU)nID); but I haven't had any luck with it. I appreciate your help/ any help.