Solved

CWnd::CreateEx on NT

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Include multiple hostnames in this command? 3 53
wordappend challenge 8 145
Detect file exist or not 3 130
JQuery serialize and unserialize 8 49
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.
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

912 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now