Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

3D borders on run time created edit boxes

Status
Not open for further replies.

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?
 
Did you include the WS_BORDER style in the dwStyle parameter?

Greetings,
Rick
 
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.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top