Visual C++ and MFC Programming 2nd Edition

(Martin Jones) #1

Chapter 12: Dialog-Based Windows Visual C++ and MFC Fundamentals


13.3.1..Introduction..........................................................................................


A floating window is an object that is part of an application and behave as a semi-dialog
box. Such a window does not constitute an application by itself. It is used to complete the
application it is part of. A floating window behaves like a dialog box with the main
difference that the user does not have to close the floating window in order to access the
rest of the application, which is the case for a modal dialog box. Here is an application
that uses many floating windows:

There are various types of floating windows used on different applications. They include
modeless dialog boxes, tool bars, and dialog bars.

Practical Learning: Introducing Floating Windows



  1. Start a new project named Floating

  2. Create it as a Single Document and click Finish


13.3.2..The Modeless Dialog Box..................................................................


A modeless dialog box allows the user to access the main application or any other
possible object of the application even if this dialog box is displaying. The user can
decide to close it when the object is not needed anymore or keep it on as long as
necessary. Here is an example:
Free download pdf