Solved

Creation of Main Window without a Title Bar

Posted on 2004-09-24
2
190 Views
Last Modified: 2013-12-03
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?
0
Comment
Question by:jtrades
2 Comments
 
LVL 86

Accepted Solution

by:
jkr earned 250 total points
Comment Utility
I assume you mean a "Splash Screen". All you have to do is to either not set or remove the styles WS_CAPTION, WS_SYSMENU and WS_OVERLAPPED, so that basically WS_BORDER|WS_VISIBLE|WS_POPUP remain and also set WS_EX_TOPMOST.
0
 

Author Comment

by:jtrades
Comment Utility
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.
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

This article describes how to programmatically preset the "Pages per Sheet" option that's available with most printer drivers.   This setting lets you do "n-Up" printing, where two, four, or more pages are printed on each sheet of paper. If your …
As more and more people are shifting to the latest .Net frameworks, the windows presentation framework is gaining importance by the day. Many people are now turning to WPF controls to provide a rich user experience. I have been using WPF controls fo…
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…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

771 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

11 Experts available now in Live!

Get 1:1 Help Now