Solved

WM_SIZING & WS_TOOLBAR WIndow Class

Posted on 1997-04-04
1
350 Views
Last Modified: 2011-09-20
I am trying to create an IDE like the Visual C++ IDE, and
I have a docking controlbar window derived from CDialogBar that contains a few controls that I want to dynamically size AFTER I undock the DialogBar(I derived a class that allows it to be resized, scarfed from the MS Developers Network).  This is much like the file/class/resource/info list on the left of the Visual C++ IDE.  The problem is, it never gets WM_SIZING messages, unlike the VC++ window, which does get them.  Why not?  Our window styles(via spy++) are exactly the same, save for a 0x001000 addition on mine, and a 0x03300 on theirs(I dont know why).  I need the WM_SIZING message to know what end is being drawn out, so I can resize my TreeView controls appropriately.  Help.
0
Comment
Question by:mpdff
1 Comment
 
LVL 3

Accepted Solution

by:
gaohong earned 100 total points
ID: 1162563
hi:

Subclass or derive your controlbar's parent and handle WM_PARENTNOTIFY message.

ParentNotify is send when child destroyed, created, sized but not moved,

consult help file for details of the message

good luck

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

IntroductionThis article is the second in a three part article series on the Visual Studio 2008 Debugger.  It provides tips in setting and using breakpoints. If not familiar with this debugger, you can find a basic introduction in the EE article loc…
Many modern programming languages support the concept of a property -- a class member that combines characteristics of both a data member and a method.  These are sometimes called "smart fields" because you can add logic that is applied automaticall…
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.
The viewer will be introduced to the member functions push_back and pop_back of the vector class. The video will teach the difference between the two as well as how to use each one along with its functionality.

910 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