Solved

CWnd::CreateEx on NT

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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

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…
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
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.
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…

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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now