Solved

3D look with EditBox

Posted on 1998-04-30
4
401 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
display png images in VB6 4 373
Multi Table MS Access Query 5 63
Duplicates in Aggregate Query 3 33
Access Query (QBE) Using VBA Function for Criteria 13 57
This article shows how to make a Windows 7 gadget that accepts files dropped from the Windows Explorer.  It also illustrates how to give your gadget a non-rectangular shape and how to add some nifty visual effects to text displayed in a your gadget.…
If you have ever found yourself doing a repetitive action with the mouse and keyboard, and if you have even a little programming experience, there is a good chance that you can use a text editor to whip together a sort of macro to automate the proce…
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…
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

914 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now