-
May 19th, 2020, 08:59 AM
#1
[RESOLVED] How to do flat style of CEdit (EDITTEXT) and CComboBox in CDialog
Can any one tell/provide code snippet for making the CEdit(EDITTEXT box) and CComboBox of
flat style?
-
May 19th, 2020, 10:12 AM
#2
Re: How to do flat style of CEdit (EDITTEXT) and CComboBox in CDialog
Did you try to set the Border property to False?
Victor Nijegorodov
-
May 19th, 2020, 11:12 AM
#3
Re: How to do flat style of CEdit (EDITTEXT) and CComboBox in CDialog
Can you please tell how to do it..
-
May 19th, 2020, 11:51 AM
#4
Re: How to do flat style of CEdit (EDITTEXT) and CComboBox in CDialog
 Originally Posted by Beginner_MFC
Can you please tell how to do it..
Right click on the edit control and select properties
-
May 19th, 2020, 12:28 PM
#5
Re: How to do flat style of CEdit (EDITTEXT) and CComboBox in CDialog
Way of doing it with code lines?
-
May 19th, 2020, 12:43 PM
#6
Re: How to do flat style of CEdit (EDITTEXT) and CComboBox in CDialog
 Originally Posted by Beginner_MFC
Way of doing it with code lines?
Have a look at the CEdit::Create
Victor Nijegorodov
-
May 19th, 2020, 01:12 PM
#7
Re: How to do flat style of CEdit (EDITTEXT) and CComboBox in CDialog
I used NOT WS_EX_CLIENTEDGE in .rc to remove the sunked edge from CEdit(EDITTEXT) but it is still showing Sunked/raised edge from left and topside?
-
May 19th, 2020, 01:17 PM
#8
Re: How to do flat style of CEdit (EDITTEXT) and CComboBox in CDialog
 Originally Posted by Beginner_MFC
I used NOT WS_EX_CLIENTEDGE in .rc to remove the sunked edge from CEdit(EDITTEXT) but it is still showing Sunked/raised edge from left and topside?
You should remove the WS_BORDER style: https://docs.microsoft.com/en-us/win.../window-styles
Victor Nijegorodov
-
May 19th, 2020, 01:58 PM
#9
Re: How to do flat style of CEdit (EDITTEXT) and CComboBox in CDialog
When i used NOT WS_BORDER in .rc than it removed the entire boundaries from CEdit means box with no surroundings ..Any idea why, NOT WS_EX_CLIENTEDGE not working? My basic is issue is to remove that raised effect from left and top edge of CEdit
-
May 19th, 2020, 02:08 PM
#10
Re: How to do flat style of CEdit (EDITTEXT) and CComboBox in CDialog
 Originally Posted by Beginner_MFC
When i used NOT WS_BORDER in .rc than it removed the entire boundaries from CEdit means box with no surroundings ..Any idea why, NOT WS_EX_CLIENTEDGE not working? My basic is issue is to remove that raised effect from left and top edge of CEdit
Sorry, I couldn't get you.
Could you attach a picture with what you have and another one with what you want?
Victor Nijegorodov
-
May 19th, 2020, 02:11 PM
#11
Re: How to do flat style of CEdit (EDITTEXT) and CComboBox in CDialog
 Originally Posted by Beginner_MFC
When i used NOT WS_BORDER in .rc than it removed the entire boundaries from CEdit means box with no surroundings ..Any idea why, NOT WS_EX_CLIENTEDGE not working? My basic is issue is to remove that raised effect from left and top edge of CEdit
It's an extended style so you'll need to use CreateEx
-
May 19th, 2020, 02:33 PM
#12
Re: How to do flat style of CEdit (EDITTEXT) and CComboBox in CDialog
I have above one and i want below one.
-
May 19th, 2020, 02:52 PM
#13
Re: How to do flat style of CEdit (EDITTEXT) and CComboBox in CDialog
One more suggestion: use Spy++ to obtain the styles of the control you are going to impement
Victor Nijegorodov
-
May 19th, 2020, 02:58 PM
#14
Re: How to do flat style of CEdit (EDITTEXT) and CComboBox in CDialog
Means with no flags or functions i can achive second edit box. I have to use CreatEx for that?
-
May 19th, 2020, 03:45 PM
#15
Re: How to do flat style of CEdit (EDITTEXT) and CComboBox in CDialog
Is there some reason you're not using the resource editor?
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|