Обновление(2006.06.26): темы оформления, панели закладке и содержащиеся в нем элементы – VB 6.0 – База кода


Название (оригинал): 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.
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!
Рус (машинный)Обновление(2006.06.26): решена многопоточность вопросы. Сейчас различных диалогов операционной системы не краш приложения (общие диалоги, обзор папок выберите для принтеров и т. п.). Нужна компактная в процессе многопоточность: в FolderWatcher с примерами пользовательского интерфейса (http://www.pscode.com/vb/scripts/ShowCode.asp?txtCodeId=36373

база кода