Visual C++ and MFC Programming 2nd Edition

(Martin Jones) #1

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


?? You may have to tremendously increase the width and the height of your dialog
box. Although this solution works sometimes, it may have the disadvantage of
producing a highly crowded dialog box
?? You can hide some controls and display them only when needed, such as in
response to a user clicking a button. The concept of this type of application
involves an unpredictable and non-practical design. It also eventually requires a
lot of coding
?? The third solution involves the user of property pages

A property page is a dialog box, that can be positioned in front of, or behind of, another.
This has the advantage of providing various dialog boxes that are “physically” grouped as
one entity. Each part is represented by a tab. The tabs are usually positioned in the top
section and each is used to identify a particular page:

To use a property page, the user clicks one. The page clicked besomes positioned in front
of the other(s). The user can click another tab to select a different page:

12.3.2..Creating Property Pages.....................................................................


A property page is designed from a dialog box and it must have the following
characteristics:
?? Style: Child or WS_CHILD

?? Border: Thin or WS_POPUP
Free download pdf