Advertisement
6_2008-2009 Libraries #197940

UPDATE(2006.06.26): Theming tabstrip panes and contained controls

UPDATE(2006.06.26): Multi-threading issues solved. Now various OS dialogs don't crash app (common dialogs, browse for folder, browse for printers, etc.). Need Compact In-Process Multi-threading: A FolderWatcher with sample UI (http://www.pscode.com/vb/scripts/ShowCode.asp?txtCodeId=36373&lngWId=1) registered to load sample Project2. _________________________________________________ UPDATE(2006.02.08): Now supports Uniscribe Unicode script processor for complex script and right-to-left languages. Couple of bugfixes and performance optimizations. _________________________________________________ UPDATE(2005.12.09): Now vbButtonFace colored backgrounds of Edits/TextBoxes are painted "transparent" -- for emulating selectable labels with locked borderless textboxes. More API hooking involved :-)) __________________________________________________ REUPLOAD(2005.12.03): This is a sample project that shows how to paint tabstrip panes using current theme background (see screenshot). Also, contained controls background is taken care of (CheckBox, OptionButton, CommandButton). uxtheme exports EnableThemeDialogTexture function which unfortunately is not working with VB6 containers (PictureBox, Frame, etc.) Also, there is a problem with windowless controls in its implementation -- these paint directly on the container DC. The presented solution subclasses the container and responds to WM_CTLCOLORBTN and WM_CTLCOLORSTATIC notifications by painting contained control background using current theme and returning NULL_BRUSH. This resolves contained controls requests for integration with parent background. For the container background FillRect API is hooked just before forwarding WM_PAINT and requests for vbButtonFace solid brush are replaced with themed background -- pretty cool and working!! Enjoy and don't forget to vote!

AI

Resumo por IA: This codebase represents a historical implementation of the logic described in the metadata. Our preservation engine analyzes the structure to provide context for modern developers.

Código fonte
original-source
Upload
Comentários originais (3)
Recuperado do Wayback Machine