[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?
Re: How to do flat style of CEdit (EDITTEXT) and CComboBox in CDialog
Did you try to set the Border property to False?
Re: How to do flat style of CEdit (EDITTEXT) and CComboBox in CDialog
Can you please tell how to do it..
Re: How to do flat style of CEdit (EDITTEXT) and CComboBox in CDialog
Quote:
Originally Posted by
Beginner_MFC
Can you please tell how to do it..
Right click on the edit control and select properties
Re: How to do flat style of CEdit (EDITTEXT) and CComboBox in CDialog
Way of doing it with code lines?
Re: How to do flat style of CEdit (EDITTEXT) and CComboBox in CDialog
Quote:
Originally Posted by
Beginner_MFC
Way of doing it with code lines?
Have a look at the CEdit::Create
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?
Re: How to do flat style of CEdit (EDITTEXT) and CComboBox in CDialog
Quote:
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
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
Re: How to do flat style of CEdit (EDITTEXT) and CComboBox in CDialog
Quote:
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?
Re: How to do flat style of CEdit (EDITTEXT) and CComboBox in CDialog
Quote:
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
1 Attachment(s)
Re: How to do flat style of CEdit (EDITTEXT) and CComboBox in CDialog
Attachment 35837
I have above one and i want below one.
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
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?
Re: How to do flat style of CEdit (EDITTEXT) and CComboBox in CDialog
Is there some reason you're not using the resource editor?