mIRCglass.dll BETA 2
chrystoffer - www.hurricane.net.br - chrystoffer@gmail.com

The dll only been tested on Windows 7 Ultimate x64! If there is any problem in another version of Windows, please send me an email saying what is the OS used at this time.
The dll has four functions, with five commands.


===============
1. The first option you'll see is the Glass. This command works or should work :D, in Windows Vista / 7.
With this command the dialog is the mIRC-style 'glass' that holds the Windows interface.
The command is simple ... first you must color the bottom of the dialog that will be applied with $rgb(153,180,209) and leaving the options within the dialog transparent. I recommend using the dcx.dll to do so.

Command:
dll mircglass.dll Glass $dname -1 -1 -1 -1

Example:
...
xdialog -g $dname +b $rgb(153,180,209)
xdialog -c $dname 2 text 0 0 120 32 transparent
xdid -t $dname 2 mircglass.dll BETA 2
...
dll mircglass.dll Glass $dname -1 -1 -1 -1

! IMPORTANT! THIS COMMAND MUST BE THE LAST COMMAND TO BE EXECUTED IN THE DIALOG INIT!


===============
2. The second option is to SetWindowsVistaTheme. With this command, Windows adds some effects on some of the options dialog, as listview/treeview ....

Command:
dll mircglass.dll SetWindowVistaTheme $dname ID

Example:
dll mircglass.dll SetWindowVistaTheme $dname 51



===============
3. This third option is exclusive to Windows 7! With this command you will add a 'progressbar' button in the mIRC Windows taskbar.
This option consists of two commands. The first to be executed is SetProgressState that will set the style progressbar on the button. Soon after the SetProgressValue used to set the value of the progressbar (0-100)

Command:
dll mircglass.dll SetProgressState TBPF_INDETERMINATE		(leaves the progressbar running button)
dll mircglass.dll SetProgressState TBPF_NORMAL			(green progressbar)
dll mircglass.dll SetProgressState TBPF_ERROR			(red progressbar)
dll mircglass.dll SetProgressState TBPF_PAUSED			(yellow progressbar)
dll mircglass.dll SetProgressState TBPF_NOPROGRESS		(cut the progressbar)

after you choose which style will have your progressbar, use:
dll mircglass.dll SetProgressValue [VALOR(0-100)]

Example:
dll mircglass.dll SetProgressState TBPF_INDETERMINATE
or
dll mircglass.dll SetProgressState TBPF_ERROR
dll mircglass.dll SetProgressValue 72



===============
4. Another unique option for Windows 7. With this command you will add a "mini-icon" with the mIRC icon on the taskbar.

Command:
dll mircglass.dll SetOverlayIcon IDI_APPLICATION		(adds an icon of a program)
dll mircglass.dll SetOverlayIcon IDI_ASTERISK			(adds an icon for information (i))
dll mircglass.dll SetOverlayIcon IDI_EXCLAMATION		(adds an exclamation icon /!\)
dll mircglass.dll SetOverlayIcon IDI_HAND			(adds an error icon (X))
dll mircglass.dll SetOverlayIcon IDI_QUESTION			(adds an icon question (?))
dll mircglass.dll SetOverlayIcon null				(removes the icon)

Example:
dll mircglass.dll SetOverlayIcon IDI_EXCLAMATION



===============
If you find any problem in the dll, let me know by email (chrystoffer@gmail.com) which put the error encountered and what is the OS used at this time.
Google Translate ^_^