CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 8 of 8

Thread: [RESOLVED] FLAT CEdit(EditBox)

  1. #1
    Join Date
    Oct 2019
    Posts
    82

    [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.

  2. #2
    VictorN's Avatar
    VictorN is offline Super Moderator Power Poster
    Join Date
    Jan 2003
    Location
    Hanover Germany
    Posts
    19,797

    Re: FLAT CEdit(EditBox)

    Show us your final code that creates editbox which looks like you want.
    Victor Nijegorodov

  3. #3
    GCDEF is offline Elite Member Power Poster
    Join Date
    Nov 2003
    Location
    Florida
    Posts
    12,598

    Re: FLAT CEdit(EditBox)

    Also, the part of the resource file that describes an edit control created in the resource editor.

  4. #4
    Join Date
    Oct 2019
    Posts
    82

    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?

  5. #5
    GCDEF is offline Elite Member Power Poster
    Join Date
    Nov 2003
    Location
    Florida
    Posts
    12,598

    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.

  6. #6
    Join Date
    Oct 2019
    Posts
    82

    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......

  7. #7
    VictorN's Avatar
    VictorN is offline Super Moderator Power Poster
    Join Date
    Jan 2003
    Location
    Hanover Germany
    Posts
    19,797

    Re: FLAT CEdit(EditBox)

    Well, what about what we asked you in the posts##2 & 3?
    Victor Nijegorodov

  8. #8
    Join Date
    Oct 2019
    Posts
    82

    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
  •  


Windows Mobile Development Center


Click Here to Expand Forum to Full Width




On-Demand Webinars (sponsored)