Click here to Skip to main content
15,902,492 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi all,

How can I set border for text control in MFC.

Thanks in advance for any help :)
Posted
Comments
Albert Holguin 16-Jun-11 22:35pm    
Which text control? CEdit, CStatic, CRichEditCtl? ...oh, and what do you mean by "set border"?

1 solution

MIDL
m_Edit.ModifyStyle(0,WS_BORDER);
m_Edit.SetWindowPos(NULL, 0, 0, 0, 0,SWP_DRAWFRAME | SWP_FRAMECHANGED | SWP_NOSIZE | SWP_NOMOVE |SWP_NOZORDER | SWP_NOACTIVATE);



m_Edit is of type CEdit
 
Share this answer
 
Comments
Lương Thông Đạt 17-Jun-11 5:00am    
Thanks for you support :) I did it

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900