I am new to Windows programming and I have a question on development
using Borland C (4.53, 5.0). My Dialog boxes come up with a white
background and things like radio buttons don't look quite right. That is,
my dialog boxes look more Windows 3.x ish than Windows 95 ish. I have some
message boxes (ie., created via "MessageBox( hwnd, ... )") which come up
with the nice gray background but I can't figure out how to make my Dialog
boxes use the same style. It is interesting that when I edit the dialog
boxes using the Resource Workshop they look the way I want them to look, but
when the program runs they don't.
Thanks in advance for any tips/advice!
---------------------------------------------------------------------
John M. Troiano phone: (610)758-5060
Lehigh University Computing Center fax: (610)974-6436
Bethlehem, PA internet: jm...@lehigh.edu
>
> Hi,
>
> I am new to Windows programming and I have a question on development
> using Borland C (4.53, 5.0). My Dialog boxes come up with a white
> background and things like radio buttons don't look quite right. That is,
> my dialog boxes look more Windows 3.x ish than Windows 95 ish. I have some
> message boxes (ie., created via "MessageBox( hwnd, ... )") which come up
> with the nice gray background but I can't figure out how to make my Dialog
> boxes use the same style. It is interesting that when I edit the dialog
> boxes using the Resource Workshop they look the way I want them to look, but
> when the program runs they don't.
Two things: Make sure that your dialogs have the DS_3DLOOK style,
and make sure that your executable is linked with a subsystem of
4.0. For BC++4.53, you will have to get an external tool to do
this (available on the web somewhere...can't remember where).
-----------------------------------------------------------
Daniel G. Hyams, author CurveExpert 1.x | CurveExpert 1.x:
email: dhy...@ces.clemson.edu | A comprehensive
phone: (864) 639-4722 (with voicemail) | curve fitting
fax: (864) 639-4722 | system for
| Windows.
visit the CurveExpert home page at
http://www.eng.clemson.edu/~dhyams/CurveExpert.html
-----------------------------------------------------------