Solved

3D look with EditBox

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

SharePoint Admin?

Enable Your Employees To Focus On The Core With Intuitive Onscreen Guidance That is With You At The Moment of Need.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Does Microsoft Office 2016 support COM/ActiveX? 3 129
Windows 10 Scheduled Tasks 11 109
Best book to learn C++ 4 87
Visual Studio: built-in keystroke automation 2 82
zlib is a free compression library (a DLL) on which the popular gzip utility is built.  In this article, we'll see how to use the zlib functions to compress and decompress data in memory; that is, without needing to use a temporary file.  We'll be c…
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…
Are you ready to implement Active Directory best practices without reading 300+ pages? You're in luck. In this webinar hosted by Skyport Systems, you gain insight into Microsoft's latest comprehensive guide, with tips on the best and easiest way…

696 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