Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 411
  • Last Modified:

3D look with EditBox

I am creating Edit Box with next API:

      hwndEdit = CreateWindow(
            "EDIT",   // predefined class
            "Edit text",       // button text
     WS_VISIBLE | WS_CHILD | ES_AUTOHSCROLL,  // styles
    20,         // starting x position
...
...

but I am getting "flat" look of EditBox.
How to achieve 3D look of EditBox?

0
bor061297
Asked:
bor061297
  • 3
1 Solution
 
alexoCommented:
Add the style DS_3DLOOK to your dialog box (not the edit control!)
0
 
bor061297Author Commented:
EditBox is placed on main window, that I am creating with:

    hWndMain = CreateWindow(
        szAppName,
        szTitle,
        WS_DLGFRAME | WS_SYSMENU | WS_MINIMIZEBOX,
...
...

so if I add DS_3DLOOK it is not much of use. How to solve this?
0
 
alexoCommented:
Sorry, have some problems.  I'll get back to you in a couple of days.
0
 
alexoCommented:
bor, my previos answer was incorrect.  Here's the correct one:

Instead of CreateWindow() use:
  hwndEdit = CreateWindowEx(WS_EX_CLIENTEDGE, "EDIT", ...);

Sorry for the inconvenience.
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now