Solved

3D look with EditBox

Posted on 1998-04-30
4
402 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
  • 3
4 Comments
 
LVL 11

Accepted Solution

by:
alexo earned 50 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

The Eight Noble Truths of Backup and Recovery

How can IT departments tackle the challenges of a Big Data world? This white paper provides a roadmap to success and helps companies ensure that all their data is safe and secure, no matter if it resides on-premise with physical or virtual machines or in the cloud.

Question has a verified solution.

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

For a while now I'v been searching for a circular progress control, much like the one you get when first starting your Silverlight application. I found a couple that were written in WPF and there were a few written in Silverlight, but all appeared o…
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…

803 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