Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

3D look with EditBox

Posted on 1998-04-30
4
Medium Priority
?
408 Views
Last Modified: 2013-12-03
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
Comment
Question by:bor061297
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
4 Comments
 
LVL 11

Accepted Solution

by:
alexo earned 200 total points
ID: 1397838
Add the style DS_3DLOOK to your dialog box (not the edit control!)
0
 

Author Comment

by:bor061297
ID: 1397839
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
 
LVL 11

Expert Comment

by:alexo
ID: 1397840
Sorry, have some problems.  I'll get back to you in a couple of days.
0
 
LVL 11

Expert Comment

by:alexo
ID: 1397841
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: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

What my article will show is if you ever had to do processing to a listbox without being able to just select all the items in it. My software Visual Studio 2008 crystal report v11 My issue was I wanted to add crystal report to a form and show…
Entering time in Microsoft Access can be difficult. An input mask often bothers users more than helping them and won't catch all typing errors. This article shows how to create a textbox for 24-hour time input with full validation politely catching …
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
We’ve all felt that sense of false security before—locking down external access to a database or component and feeling like we’ve done all we need to do to secure company data. But that feeling is fleeting. Attacks these days can happen in many w…

604 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question