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
Solved

CWnd::CreateEx on NT

Posted on 1997-04-07
1
684 Views
Last Modified: 2013-11-20
My application creates sub-windows that can be moved outside of the
parent's frame.  I have to use CreateEx() to do this.  This works under
Win95 but fails in NT.  I do not want these windows to appear in the
TaskBar.  So, I create a hidden window like this:

m_HiddenWnd.CreateEx(0, "SubWnd", "", WS_CHILD|WS_POPUP,
         0, 0, 1, 1, NULL, (HMENU)1);

The variable m_HiddenWnd is a CWnd.  Then I create the real window with
this as its parent.  The problem is the combination of WS_CHILD and
WS_POPUP.  The docs say you can't use these together.  However, if I
remove either of them the window fails to create.  But, on NT this fails
no matter what I do!!!!  What is the minimum I have to do to create a
window that is not owned by the MainFrame on both NT and 95?

0
Comment
Question by:Vance Kessler
1 Comment
 

Accepted Solution

by:
Grzes earned 50 total points
ID: 1300905
On your frame window create a child window using CreateEx() function and add follwing extended style:
WS_EX_TOOLWINDOW - it creates a tool window, which is a window intended  to be used as a floating toolbar. A tool window has a title bar that is shorter than a normal title bar, and the window title is drawn using a smaller font. A tool window does not appear in the task bar or in the window that appears when the user presses ALT+TAB.
And add any combination of styles, but don't add WS_POPUP style.
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying 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

Suggested Solutions

Title # Comments Views Activity
MFC Dialog 9 51
Installing Microsoft R server on REDHAT or SUSE Linux 4 147
Host to IP 7 80
unable to delete all specified values regedit 38 561
Introduction: Dialogs (1) modal - maintaining the database. Continuing from the ninth article about sudoku.   You might have heard of modal and modeless dialogs.  Here with this Sudoku application will we use one of each type: a modal dialog …
Introduction: Dialogs (2) modeless dialog and a worker thread.  Handling data shared between threads.  Recursive functions. Continuing from the tenth article about sudoku.   Last article we worked with a modal dialog to help maintain informat…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…

828 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