Solved

CWnd::CreateEx on NT

Posted on 1997-04-07
1
687 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
[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
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

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
pre4 challenge 19 110
FizzBuzz challenge 9 85
wordcount challenge 11 147
Excel file not created as expected 7 93
Introduction: Load and Save to file, Document-View interaction inside the SDI. Continuing from the second article about sudoku.   Open the project in visual studio. From the class view select CSudokuDoc and double click to open the header …
Introduction: Displaying information on the statusbar.   Continuing from the third article about sudoku.   Open the project in visual studio. Status bar – let’s display the timestamp there.  We need to get the timestamp from the document s…
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.
Attackers love to prey on accounts that have privileges. Reducing privileged accounts and protecting privileged accounts therefore is paramount. Users, groups, and service accounts need to be protected to help protect the entire Active Directory …

733 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