Solved

Creation of Main Window without a Title Bar

Posted on 2004-09-24
2
196 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
[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
2 Comments
 
LVL 86

Accepted Solution

by:
jkr earned 250 total points
ID: 12144456
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
ID: 12192919
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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

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 …
This article surveys and compares options for encoding and decoding base64 data.  It includes source code in C++ as well as examples of how to use standard Windows API functions for these tasks. We'll look at the algorithms — how encoding and decodi…
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…

739 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