The information in this article applies to:
SUMMARY
The MULTICON sample demonstrates how to implement dynamic icons for both
CMDIChildWnd and CMDIFrameWnd windows. The procedure is to first register a
window class with a NULL icon for the frame. A frame of this type receives
WM_PAINT messages when it becomes iconic, and can output to a 36 x 36*
pixel area. To prevent duplicating output code from the view, the frame can
call its view's OnDraw member to do the output. MORE INFORMATIONThe following files are available for download from the Microsoft
Download Center. Click the file names below to download the files: http://www.microsoft.com/downloads/search.aspand then click How to use the Microsoft Download Center. This file contains subdirectories, be sure to use the -d command line switch while extracting. Two simple view classes are used to demonstrate dynamic icons: CRectView and CEllipseView. These classes draw a random rectangle and a random ellipse, respectively. CWinApp::OnIdle is overridden to invalidate each open view and each minimized frame window. The MULTICON sample also demonstrates how to scale the output from an open view to fit a minimized frame, and how to convert the minimized frame's output to an icon during a drag operation. *For Windows 3.1, subject to change in future versions of Windows.
Additional query words: dynamic mdi frame child kbfile
Keywords : kbfile kbMFC KbUIDesign kbVC |
Last Reviewed: December 13, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |