Solved

WM_SIZING & WS_TOOLBAR WIndow Class

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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Introduction This article is the first in a series of articles about the C/C++ Visual Studio Express debugger.  It provides a quick start guide in using the debugger. Part 2 focuses on additional topics in breakpoints.  Lastly, Part 3 focuses on th…
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 goal of the tutorial is to teach the user how to use functions in C++. The video will cover how to define functions, how to call functions and how to create functions prototypes. Microsoft Visual C++ 2010 Express will be used as a text editor an…
The viewer will learn how to pass data into a function in C++. This is one step further in using functions. Instead of only printing text onto the console, the function will be able to perform calculations with argumentents given by the user.
Suggested Courses

636 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