Click here to Skip to main content
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 16:13pm
myfirm479
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 OriginalGriff 520
1 Maciej Los 290
2 Richard MacCutchan 265
3 BillWoodruff 265
4 Suraj Sahoo | Coding Passion 155
0 OriginalGriff 8,764
1 Sergey Alexandrovich Kryukov 7,437
2 DamithSL 5,639
3 Maciej Los 5,279
4 Manas Bhardwaj 4,986


Advertise | Privacy | Mobile
Web01 | 2.8.1411028.1 | Last Updated 30 Nov 2011
Copyright © CodeProject, 1999-2014
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