[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Creation of Main Window without a Title Bar

Posted on 2004-09-24
2
Medium Priority
?
200 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 750 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

NEW Veeam Agent for Microsoft Windows

Backup and recover physical and cloud-based servers and workstations, as well as endpoint devices that belong to remote users. Avoid downtime and data loss quickly and easily for Windows-based physical or public cloud-based workloads!

Question has a verified solution.

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

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…
For a while now I'v been searching for a circular progress control, much like the one you get when first starting your Silverlight application. I found a couple that were written in WPF and there were a few written in Silverlight, but all appeared o…
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…
Is your OST file inaccessible, Need to transfer OST file from one computer to another? Want to convert OST file to PST? If the answer to any of the above question is yes, then look no further. With the help of Stellar OST to PST Converter, you can e…

830 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