?
Solved

CWnd::CreateEx on NT

Posted on 1997-04-07
1
Medium Priority
?
701 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 100 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

Will your db performance match your db growth?

In Percona’s white paper “Performance at Scale: Keeping Your Database on Its Toes,” we take a high-level approach to what you need to think about when planning for database scalability.

Question has a verified solution.

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

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: The undo support, implementing a stack. Continuing from the eigth article about sudoku.   We need a mechanism to keep track of the digits entered so as to implement an undo mechanism.  This should be a ‘Last In First Out’ collec…
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.
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…
Suggested Courses

762 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