-
May 26th, 2020, 05:23 AM
#1
[RESOLVED] FLAT CEdit(EditBox)
Just a quick question. I am able to achieve flat editbox through CreateEx already discussed in previous thread.But question here again is why i am not able to achieve it resource editor although when i see editbox in resource edit it appears perfectly flat but after compiling code ,box shown on screen has sunken edge , not able to understand why. Since in my application i have to do around 200 editboxes flat thats why i dont want to use CreareEx . I am using Visual studio 2015. In project settings Target platform version is 8.1 and Target Platform is Windows..I have windows 10 installed on my machine.
-
May 26th, 2020, 06:25 AM
#2
Re: FLAT CEdit(EditBox)
Show us your final code that creates editbox which looks like you want.
Victor Nijegorodov
-
May 26th, 2020, 08:08 AM
#3
Re: FLAT CEdit(EditBox)
Also, the part of the resource file that describes an edit control created in the resource editor.
-
May 26th, 2020, 11:13 AM
#4
Re: FLAT CEdit(EditBox)
Victor i tried create new MFC application to check actual issue. When i created new MFC application(project) and a simple dialog in it through resource editor .i found that after compilation i find everything flat on screen.now i compared the .rc file of this new created mfc application dialog and one where i am facing the problem. Difference was these 2 lines were missing in .rc where i am facing issue. #include "targetver.h"
#include "verrsrc.h"
Den i tried adding them but on compilation it gave error cannot open include file "targetver.h". Any suggestion?
-
May 26th, 2020, 11:41 AM
#5
Re: FLAT CEdit(EditBox)
Targetver.h contains one line
#include <SDKDDKVer.h>
Look for a difference in stdafx.h between the projects if it can't find that.
-
May 26th, 2020, 02:26 PM
#6
Re: FLAT CEdit(EditBox)
Inspite of targerver.h i simply added sdkddkver.h .code compiled successfully but still no flat style achieved. I compared .rc, .h with the newly created mfc application dialog all seems fine......
-
May 26th, 2020, 03:00 PM
#7
Re: FLAT CEdit(EditBox)
Well, what about what we asked you in the posts##2 & 3?
Victor Nijegorodov
-
May 27th, 2020, 08:18 AM
#8
Re: FLAT CEdit(EditBox)
[Resolved]. I was missing #include afxdisp.h and #include sdkddkver.h in STDAFX.H
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
|