MFC edit control border
when I noticed my professor's edit controls were flat, 2D with just a blue
border. I have no idea how to accomplish this. In VS2005, I open the
IDD_FORMVIEW and add an edit control with no static edge or anything, just
border set to true. In the designer and the "Test Dialog" mode, the control
looks correct: 2D, blue border, very simple. But when I build and run, the
blue border is gone and the edit control is now sunken and 3D. My professor has
no idea why his is different, since our edit controls use the same options. I
have also tried to do the exact same thing in VS2003 on a different computer,
with the same results (except not even the designer and the Test Dialog mode
show a 2D edit control, they show a 3D edit control).
i'm not sure if
this has something to do with winxp visual styles or something else. does
anyone have any ideas how to fix this? I'm at the end of my wits, and I've
googled for several days now and tried every little option to change it.
The
only way I can even make a 2D edit control is to set static edge, border, and
client edge to false. But if I set border to false, I also lose the blue line
bordering the edit control (it essentially blends into the background
now).
Here's a picture of how his
looks:
his nice 2D one
and
here's how mine always comes out (notice how hard the 3D read-only edit control
is to see):
mine 3D nightmare

