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 Maciej Los 205
1 Richard MacCutchan 185
2 DamithSL 170
3 Tomas Takac 146
4 OriginalGriff 132
0 OriginalGriff 5,130
1 DamithSL 4,237
2 Maciej Los 3,700
3 Kornfeld Eliyahu Peter 3,470
4 Sergey Alexandrovich Kryukov 2,846


Advertise | Privacy | Mobile
Web04 | 2.8.141216.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