Posted VB6 version of the component, and updated to use FindWindowsEx to obtain the MDI client.
| Tiling Bitmaps into Controls, Forms and MDI Form backgrounds![]() This article provides a bitmap tiling component which allows you to:
Tiling a bitmap into the background of a control or form can make a bit difference to its graphical impact. You can see some samples of this tiling code in use in the S Grid Control,PopupMenu DLL and Toolbar and CoolMenu Control. As well as providing reusable code which you can extract for tiling a picture into an object in the download, this article also presents a component which encapsulates the code and provides a way of tiling the background space of an MDI form with your own custom bitmap. Drawing whatever you like on the background of an MDI formIn order to do this, you need to be able to subclass the MDI form message. This component uses the Subclassing and Timer Assistant to enable subclassing. With that in place, here are the steps you need to take to draw into the MDI background:
You can use these techniques to achieve other effects when you paint the MDI background. For example, InstallShield (used to) put their www addresses at the bottom right hand corner of the MDI background.
| |
|
|
||