Click here to Skip to main content
11,704,768 members (46,440 online)
Rate this: bad
good
Please Sign up or sign in to vote.
See more: VC6 VC7 VC8.0 C++ VC9.0
In a dilag, the edit control has a border default, I want to remove its border, there is no ways except by setting in the property board, so I want to remove it at runtimes, how to do?


Thanks!
Posted 20-Aug-10 15:13pm
myfirm482
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

MSDN is your friend. Install it if you don't already have it. Search it before jumping to post a question on the net.

Any UI elements you add from the property board is present, as code, in the .rc file. Open that in the notepad (visual studio doesn't display the textual version) and analyse.

I'll answer your question this time and remember what I said for the future.

Get the existing style using GetWindowStyle(...). Remove WS_BORDER flag from it and set it back using SetWindowStyle(...).
  Permalink  
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 3

m_wndEdit.ModifyStyleEx(WS_EX_CLIENTEDGE, 0, SWP_DRAWFRAME | SWP_FRAMECHANGED);
  Permalink  
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

Any setting in properties, can be set in code, in fact, it probably IS set in code that's generated by the IDE. So, I would suggest looking at the auto generated code and seeing what it does, an easy way to do this is to copy your project, change that one thing in the IDE, then diff the two projects and find what line of code is different.
  Permalink  
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 4

http://msdn.microsoft.com/en-US/library/f7yhsd2b(v=VS.80).aspx[^]

You can find all the member function and properties here..
  Permalink  

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

  Print Answers RSS
0 Sergey Alexandrovich Kryukov 679
1 OriginalGriff 455
2 Andy Lanng 245
3 CPallini 242
4 Maciej Los 225
0 OriginalGriff 8,864
1 Sergey Alexandrovich Kryukov 8,245
2 CPallini 5,189
3 Maciej Los 4,726
4 Mika Wendelius 3,606


Advertise | Privacy | Mobile
Web02 | 2.8.150819.1 | Last Updated 30 Nov 2011
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100