Link to home
Start Free TrialLog in
Avatar of jtrades
jtrades

asked on

Creation of Main Window without a Title Bar

I am trying to make the initial window when my program starts to appear without a title bar - that is, the only area that I would like to appear is the client area with a border around it.  I have tried the various suggestions given within this forum, but none have thus far worked.  My usual results include:

* a very small window appearing on the left hand side of my window
* nothing at all (usually when I use WS_POPUP)
* a blue title bar field and the client area without any borders

I am programming in C using Visual Studio.net.  Can someone please let me know which window style (or window style combinations) that I should use within the CreateWindow (or CreateWindowEx ) function?  Also, is it necessary for me to specify something for the caption option within this function, since I am not going to display the title bar?
ASKER CERTIFIED SOLUTION
Avatar of jkr
jkr
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of jtrades
jtrades

ASKER

Thanks for the styles.  Just one addition to your comment.  At first, no window was displaying until I changed the values for the size of the window from default (I had my window take up the entire screen - used GetSystemMetrics(SM_CXSCREEN) && GetSystemMetrics(SM_CYSCREEN).  After that, everything was fine.