# SOME DESCRIPTIVE TITLE. # This file is put in the public domain. # # Translators: # Jure Cuhalev , 2005. # Jure Čuhalev , 2003. # Nejc Novak , 2001. # Roman Maurer [mailto:roman.maurer@amis.net, 2004. msgid "" msgstr "" "Project-Id-Version: HexChat\n" "Report-Msgid-Bugs-To: www.hexchat.org\n" "POT-Creation-Date: 2013-03-28 23:54+0100\n" "PO-Revision-Date: 2013-03-28 23:04+0000\n" "Last-Translator: bviktor \n" "Language-Team: LANGUAGE \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: sl\n" "Plural-Forms: nplurals=4; plural=(n%100==1 ? 0 : n%100==2 ? 1 : n%100==3 || n%100==4 ? 2 : 3);\n" #: src/common/cfgfiles.c:746 msgid "I'm busy" msgstr "Ne utegnem" #: src/common/cfgfiles.c:773 msgid "Leaving" msgstr "Odhajam" #: src/common/cfgfiles.c:834 msgid "" "* Running IRC as root is stupid! You should\n" " create a User Account and use that to login.\n" msgstr "* Uporaba IRC-a kot root uporabnik je neumna!\n Ustvarite uporabniški račun in ga uporabite za prijavo.\n" #: src/common/dcc.c:81 msgid "Waiting" msgstr "Čakam" #: src/common/dcc.c:82 msgid "Active" msgstr "Aktiven" #: src/common/dcc.c:83 msgid "Failed" msgstr "Spodletelo" #: src/common/dcc.c:84 msgid "Done" msgstr "Opravljeno" #: src/common/dcc.c:85 src/fe-gtk/menu.c:943 msgid "Connect" msgstr "Poveži se" #: src/common/dcc.c:86 msgid "Aborted" msgstr "Prekinjeno" #: src/common/dcc.c:1885 src/common/outbound.c:2539 #, c-format msgid "Cannot access %s\n" msgstr "Ne morem dostopati do %s\n" #: src/common/dcc.c:1886 src/common/text.c:1302 src/common/text.c:1340 #: src/common/text.c:1351 src/common/text.c:1358 src/common/text.c:1371 #: src/common/text.c:1388 src/common/text.c:1488 src/common/util.c:358 msgid "Error" msgstr "Napaka" #: src/common/dcc.c:2364 #, c-format msgid "%s is offering \"%s\". Do you want to accept?" msgstr "" #: src/common/dcc.c:2579 msgid "No active DCCs\n" msgstr "Ni aktivnih DCCjev\n" #: src/common/hexchat.c:842 msgid "_Open Dialog Window" msgstr "" #: src/common/hexchat.c:843 msgid "_Send a File" msgstr "" #: src/common/hexchat.c:844 msgid "_User Info (WhoIs)" msgstr "" #: src/common/hexchat.c:845 msgid "_Add to Friends List" msgstr "" #: src/common/hexchat.c:846 msgid "_Ignore" msgstr "" #: src/common/hexchat.c:847 msgid "O_perator Actions" msgstr "" #: src/common/hexchat.c:849 msgid "Give Ops" msgstr "Dodeli status op" #: src/common/hexchat.c:850 msgid "Take Ops" msgstr "Odvzemi status op" #: src/common/hexchat.c:851 msgid "Give Voice" msgstr "Dodeli glasovni privilegij" #: src/common/hexchat.c:852 msgid "Take Voice" msgstr "Odvzemi glasovni privilegij" #: src/common/hexchat.c:854 msgid "Kick/Ban" msgstr "Brcni/Izobči" #: src/common/hexchat.c:855 src/common/hexchat.c:892 msgid "Kick" msgstr "Brcni" #: src/common/hexchat.c:856 src/common/hexchat.c:857 src/common/hexchat.c:858 #: src/common/hexchat.c:859 src/common/hexchat.c:860 src/common/hexchat.c:891 #: src/fe-gtk/banlist.c:60 msgid "Ban" msgstr "Izobči" #: src/common/hexchat.c:861 src/common/hexchat.c:862 src/common/hexchat.c:863 #: src/common/hexchat.c:864 msgid "KickBan" msgstr "Brcni in izobči" #: src/common/hexchat.c:874 msgid "Leave Channel" msgstr "Zapusti kanal" #: src/common/hexchat.c:875 msgid "Join Channel..." msgstr "Pridruži se kanalu ..." #: src/common/hexchat.c:876 src/fe-gtk/menu.c:1336 msgid "Enter Channel to Join:" msgstr "Kanal, ki se mu želite pridružiti:" #: src/common/hexchat.c:877 msgid "Server Links" msgstr "Povezave strežnikov" #: src/common/hexchat.c:878 msgid "Ping Server" msgstr "\"Ping\" strežnika" #: src/common/hexchat.c:879 msgid "Hide Version" msgstr "Skrij različico" #: src/common/hexchat.c:889 msgid "Op" msgstr "Dodeli op" #: src/common/hexchat.c:890 msgid "DeOp" msgstr "Odvzemi op" #: src/common/hexchat.c:893 msgid "bye" msgstr "Nasvidenje" #: src/common/hexchat.c:894 #, c-format msgid "Enter reason to kick %s:" msgstr "Vnesite razlog za brco %s:" #: src/common/hexchat.c:895 msgid "Sendfile" msgstr "Datoteka za pošiljanje" #: src/common/hexchat.c:896 msgid "Dialog" msgstr "Pogovorno okno" #: src/common/hexchat.c:905 msgid "WhoIs" msgstr "Whois" #: src/common/hexchat.c:906 msgid "Send" msgstr "Pošlji" #: src/common/hexchat.c:907 msgid "Chat" msgstr "Klepet" #: src/common/hexchat.c:908 src/fe-gtk/banlist.c:778 #: src/fe-gtk/ignoregui.c:400 src/fe-gtk/urlgrab.c:213 msgid "Clear" msgstr "Počisti" #: src/common/hexchat.c:909 msgid "Ping" msgstr "Ping" #: src/common/ignore.c:126 src/common/ignore.c:130 src/common/ignore.c:134 #: src/common/ignore.c:138 src/common/ignore.c:142 src/common/ignore.c:146 #: src/common/ignore.c:150 msgid "YES " msgstr "DA " #: src/common/ignore.c:128 src/common/ignore.c:132 src/common/ignore.c:136 #: src/common/ignore.c:140 src/common/ignore.c:144 src/common/ignore.c:148 #: src/common/ignore.c:152 msgid "NO " msgstr "NE " #: src/common/ignore.c:383 #, c-format msgid "You are being CTCP flooded from %s, ignoring %s\n" msgstr "%s vas zasipa s CTCP podatki, spregledujem %s\n" #: src/common/ignore.c:408 #, c-format msgid "You are being MSG flooded from %s, setting gui_autoopen_dialog OFF.\n" msgstr "" #: src/common/notify.c:478 #, c-format msgid " %-20s online\n" msgstr " %-20s prisoten\n" #: src/common/notify.c:480 #, c-format msgid " %-20s offline\n" msgstr " %-20s odsoten\n" #: src/common/outbound.c:72 msgid "No channel joined. Try /join #\n" msgstr "Niste na nobenem kanalu. Poskusite /join #\n" #: src/common/outbound.c:78 msgid "Not connected. Try /server []\n" msgstr "Niste povezani. Poskusite /server []\n" #: src/common/outbound.c:281 #, c-format msgid "Server %s already exists on network %s.\n" msgstr "" #: src/common/outbound.c:287 #, c-format msgid "Added server %s to network %s.\n" msgstr "" #: src/common/outbound.c:373 #, c-format msgid "Already marked away: %s\n" msgstr "" #: src/common/outbound.c:446 msgid "Already marked back.\n" msgstr "" #: src/common/outbound.c:1812 msgid "I need /bin/sh to run!\n" msgstr "Potrebujem /bin/sh za zagon!\n" #: src/common/outbound.c:2203 msgid "Commands Available:" msgstr "Ukazi, ki so na voljo:" #: src/common/outbound.c:2217 msgid "User defined commands:" msgstr "Ukazi, določeni s strani uporabnika:" #: src/common/outbound.c:2233 msgid "Plugin defined commands:" msgstr "Ukazi, določeni s strani uporabnika:" #: src/common/outbound.c:2244 msgid "Type /HELP for more information, or /HELP -l" msgstr "Za več informacij uporabite /HELP ali /HELP -l" #: src/common/outbound.c:2328 #, c-format msgid "Unknown arg '%s' ignored." msgstr "Neznan argument '%s' spregledan." #: src/common/outbound.c:3329 msgid "No such plugin found.\n" msgstr "Ta dodatek ne obstaja.\n" #: src/common/outbound.c:3334 src/fe-gtk/plugingui.c:190 msgid "That plugin is refusing to unload.\n" msgstr "Ta plugin zavrača odstranitev.\n" #: src/common/outbound.c:3609 msgid "ADDBUTTON , adds a button under the user-list" msgstr "ADDBUTTON doda gumb v seznam uporabnikov" #: src/common/outbound.c:3610 msgid "" "ADDSERVER , adds a new network with a new " "server to the network list" msgstr "" #: src/common/outbound.c:3612 msgid "ALLCHAN , sends a command to all channels you're in" msgstr "ALLCHAN izvede ukaz na vseh kanalih, s katerimi ste povezani" #: src/common/outbound.c:3614 msgid "ALLCHANL , sends a command to all channels on the current server" msgstr "" #: src/common/outbound.c:3616 msgid "ALLSERV , sends a command to all servers you're in" msgstr "ALLSERV pošlje ukaz vsem strežnikom, na katerih ste prijavljeni" #: src/common/outbound.c:3617 msgid "AWAY [], sets you away" msgstr "AWAY [] nastavi vašo odsotnost" #: src/common/outbound.c:3618 msgid "BACK, sets you back (not away)" msgstr "" #: src/common/outbound.c:3620 msgid "" "BAN [], bans everyone matching the mask from the current " "channel. If they are already on the channel this doesn't kick them (needs " "chanop)" msgstr "BAN [], prepove dostop do trenutnega kanala vsem, ki ustrezajo maski. Če so že na kanalu, jih ta ukaz ne brcne iz kanala (potrebuje status op)" #: src/common/outbound.c:3621 msgid "CHANOPT [-quiet] []" msgstr "" #: src/common/outbound.c:3622 msgid "" "CHARSET [], get or set the encoding used for the current " "connection" msgstr "" #: src/common/outbound.c:3623 msgid "CLEAR [ALL|HISTORY], Clears the current text window or command history" msgstr "" #: src/common/outbound.c:3624 msgid "CLOSE, Closes the current window/tab" msgstr "CLOSE zapre trenutno okno/zavihek" #: src/common/outbound.c:3627 msgid "COUNTRY [-s] , finds a country code, eg: au = australia" msgstr "COUNTRY poišče ime države, npr: si = Slovenija" #: src/common/outbound.c:3629 msgid "" "CTCP , send the CTCP message to nick, common messages are " "VERSION and USERINFO" msgstr "CTCP pošlje sporočilo CTCP vzdevku; pogosti sporočili sta VERSION in USERINFO" #: src/common/outbound.c:3631 msgid "" "CYCLE [], parts the current or given channel and immediately " "rejoins" msgstr "" #: src/common/outbound.c:3633 msgid "" "\n" "DCC GET - accept an offered file\n" "DCC SEND [-maxcps=#] [file] - send a file to someone\n" "DCC PSEND [-maxcps=#] [file] - send a file using passive mode\n" "DCC LIST - show DCC list\n" "DCC CHAT - offer DCC CHAT to someone\n" "DCC PCHAT - offer DCC CHAT using passive mode\n" "DCC CLOSE example:\n" " /dcc close send johnsmith file.tar.gz" msgstr "\nDCC GET - prejme ponujeno datoteko\nDCC SEND [-maxcps=#] [datoteka] - pošlje nekomu datoteko\nDCC PSEND [-maxcps=#] [datoteka] - pošlje nekomu datoteko z uporabo pasivnega načina\nDCC LIST - pokaže DCC seznam\nDCC CHAT - nekomu ponudi DCC CHAT\nDCC CHAT - nekomu ponudi DCC CHAT v pasivnem načinu\nDCC CLOSE primer:\n /dcc close send janeznovak datoteka.tar.gz" #: src/common/outbound.c:3645 msgid "" "DEHOP , removes chanhalf-op status from the nick on the current " "channel (needs chanop)" msgstr "DEHOP odstrani status polovični-op vzdevku (za kar so potrebne pravice op)" #: src/common/outbound.c:3647 msgid "DELBUTTON , deletes a button from under the user-list" msgstr "DELBUTTON zbriše gumb s seznama uporabnikov" #: src/common/outbound.c:3649 msgid "" "DEOP , removes chanop status from the nick on the current channel " "(needs chanop)" msgstr "DEOP odstrani status op vzdevku (za kar so potrebne pravice op)" #: src/common/outbound.c:3651 msgid "" "DEVOICE , removes voice status from the nick on the current channel " "(needs chanop)" msgstr "DEVOICE odstrani glasovni privilegij vzdevku (za kar so potrebne pravice op)" #: src/common/outbound.c:3652 msgid "DISCON, Disconnects from server" msgstr "DISCON prekine povezavo s strežnikom" #: src/common/outbound.c:3653 msgid "DNS , Finds a users IP number" msgstr "DNS poišče uporabnikov naslov IP" #: src/common/outbound.c:3654 msgid "ECHO , Prints text locally" msgstr "ECHO izpiše besedilo v okno" #: src/common/outbound.c:3657 msgid "" "EXEC [-o] , runs the command. If -o flag is used then output is " "sent to current channel, else is printed to current text box" msgstr "EXEC [-o] izvede ukaz. Če uporabite stikalo -o, je rezultat izpisan na trenutnem kanalu, sicer pa v trenutnem besedilnem polju" #: src/common/outbound.c:3659 msgid "EXECCONT, sends the process SIGCONT" msgstr "EXECCONT pošlje procesu signal za nadaljevanje SIGCONT" #: src/common/outbound.c:3662 msgid "" "EXECKILL [-9], kills a running exec in the current session. If -9 is given " "the process is SIGKILL'ed" msgstr "EXECKILL [-9] ubije delujoči proces v trenutni seji. Če uporabite stikalo -9, je procesu poslan signal SIGKILL" #: src/common/outbound.c:3664 msgid "EXECSTOP, sends the process SIGSTOP" msgstr "EXECSTOP procesu pošlje signal SIGSTOP" #: src/common/outbound.c:3665 msgid "EXECWRITE, sends data to the processes stdin" msgstr "EXECWRITE pošlje podatke vhodnemu toku procesa" #: src/common/outbound.c:3669 msgid "EXPORTCONF, exports HexChat settings" msgstr "" #: src/common/outbound.c:3672 msgid "FLUSHQ, flushes the current server's send queue" msgstr "FULSHQ odpošlje čakajočo vrsto sporočil na strežnik" #: src/common/outbound.c:3674 msgid "GATE [], proxies through a host, port defaults to 23" msgstr "GATE [] usmeri tok prek gostitelja (proxy), privzeto prek vrat 23" #: src/common/outbound.c:3678 msgid "GHOST [password], Kills a ghosted nickname" msgstr "" #: src/common/outbound.c:3683 msgid "HOP , gives chanhalf-op status to the nick (needs chanop)" msgstr "HOP vzdevku dodeli status polovični-op (za kar potrebuje pravice op)" #: src/common/outbound.c:3684 msgid "ID , identifies yourself to nickserv" msgstr "ID , vas identificira pri nickservu" #: src/common/outbound.c:3686 msgid "" "IGNORE \n" " mask - host mask to ignore, eg: *!*@*.aol.com\n" " types - types of data to ignore, one or all of:\n" " PRIV, CHAN, NOTI, CTCP, DCC, INVI, ALL\n" " options - NOSAVE, QUIET" msgstr "IGNORE \n maska - maska gostitelja, npr.: *!*@*.siol.net\n vrste - vrste podatkov za preziranje, ena ali vse od:\n PRIV, CHAN, NOTI, CTCP, DCC, INVI, ALL\n možnosti - NOSAVE, QUIET" #: src/common/outbound.c:3693 msgid "" "INVITE [], invites someone to a channel, by default the " "current channel (needs chanop)" msgstr "INVITE [] povabi vzdevek na kanal, privzeto na trenutnega (za kar potrebuje pravice op)" #: src/common/outbound.c:3694 msgid "JOIN , joins the channel" msgstr "JOIN , pridruži se kanalu" #: src/common/outbound.c:3696 msgid "KICK , kicks the nick from the current channel (needs chanop)" msgstr "KICK brcne vzdevek iz trenutnega kanala (za kar potrebuje pravice op)" #: src/common/outbound.c:3698 msgid "" "KICKBAN , bans then kicks the nick from the current channel (needs " "chanop)" msgstr "KICKBAN izvede prepoved in brcne osebo iz kanala (za kar potrebuje pravice op)" #: src/common/outbound.c:3701 msgid "LAGCHECK, forces a new lag check" msgstr "LAGCHECK preveri časovni odmik" #: src/common/outbound.c:3703 msgid "" "LASTLOG [-h] [-m] [-r] [--] , searches for a string in the buffer\n" " Use -h to highlight the found string(s)\n" " Use -m to match case\n" " Use -r when string is a Regular Expression\n" " Use -- (double hyphen) to end options when searching for, say, the string '-r'" msgstr "" #: src/common/outbound.c:3709 msgid "LOAD [-e] , loads a plugin or script" msgstr "LOAD [-e] , naloži dodatek ali skripto" #: src/common/outbound.c:3712 msgid "" "MDEHOP, Mass deop's all chanhalf-ops in the current channel (needs chanop)" msgstr "MDEHOP vsem odvzame polovične statuse op na trenutnem kanalu (za kar potrebuje pravice op)" #: src/common/outbound.c:3714 msgid "MDEOP, Mass deop's all chanops in the current channel (needs chanop)" msgstr "MDEOP vsem na trenutnem kanalu odvzame status op (za kar potrebuje pravice op)" #: src/common/outbound.c:3716 msgid "" "ME , sends the action to the current channel (actions are written in" " the 3rd person, like /me jumps)" msgstr "ME pošlje dejanje v trenutni kanal (dejanja so izpisana v tretji osebi, npr. /me skače)" #: src/common/outbound.c:3720 msgid "" "MKICK, Mass kicks everyone except you in the current channel (needs chanop)" msgstr "MKICK na trenutnem kanalu brcne vse razen samega sebe (za kar potrebuje pravice op)" #: src/common/outbound.c:3723 msgid "MOP, Mass op's all users in the current channel (needs chanop)" msgstr "MDEOP vsem na trenutnem kanalu odvzame status op (za kar potrebuje pravice op)" #: src/common/outbound.c:3724 msgid "MSG , sends a private message" msgstr "MSG pošlje zasebno sporočilo" #: src/common/outbound.c:3727 msgid "NAMES, Lists the nicks on the current channel" msgstr "NAMES izpiše seznam vseh vzdevkov na trenutnem kanalu" #: src/common/outbound.c:3729 msgid "NCTCP , Sends a CTCP notice" msgstr "NCTCP pošlje obvestilo CTCP" #: src/common/outbound.c:3730 msgid "NEWSERVER [-noconnect] []" msgstr "" #: src/common/outbound.c:3731 msgid "NICK , sets your nick" msgstr "NICK nastavi vaš vzdevek" #: src/common/outbound.c:3734 msgid "" "NOTICE , sends a notice. Notices are a type of " "message that should be auto reacted to" msgstr "NOTICE pošlje obvestilo. To je vrsta sporočila, na katerega je možen samodejen odziv" #: src/common/outbound.c:3736 msgid "" "NOTIFY [-n network1[,network2,...]] [], displays your notify list or " "adds someone to it" msgstr "" #: src/common/outbound.c:3738 msgid "OP , gives chanop status to the nick (needs chanop)" msgstr "OP vzdevku podeli status operateja (op) kanala (za kar potrebuje pravice op)" #: src/common/outbound.c:3740 msgid "" "PART [] [], leaves the channel, by default the current one" msgstr "PART [] [] zapusti kanal, privzeto trenutnega" #: src/common/outbound.c:3742 msgid "PING , CTCP pings nick or channel" msgstr "PING pošlje CTCP ping vzdevku ali kanalu" #: src/common/outbound.c:3744 msgid "QUERY [-nofocus] , opens up a new privmsg window to someone" msgstr "" #: src/common/outbound.c:3746 msgid "QUIT [], disconnects from the current server" msgstr "QUIT [ prekine povezavo s trenutnim strežnikom" #: src/common/outbound.c:3748 msgid "QUOTE , sends the text in raw form to the server" msgstr "QUOTE strežniku pošlje besedilo v surovi obliki" #: src/common/outbound.c:3751 msgid "" "RECONNECT [-ssl] [] [] [], Can be called just as " "/RECONNECT to reconnect to the current server or with /RECONNECT ALL to " "reconnect to all the open servers" msgstr "RECONNECT [-ssl] [] [] [] lahko ga uporabite samo kot /RECONNECT za ponovitev povezave s trenutnim strežnikom ali kot /RECONNECT ALL za obnovitev povezav na vse povezane strežnike" #: src/common/outbound.c:3754 msgid "" "RECONNECT [] [] [], Can be called just as /RECONNECT " "to reconnect to the current server or with /RECONNECT ALL to reconnect to " "all the open servers" msgstr "RECONNECT [] [] [], lahko ga uporabite samo kot /RECONNECT za ponovitev povezave na trenutni strežnik ali kot /RECONNECT ALL za ponovitev povezave na vse odprte strežnike" #: src/common/outbound.c:3756 msgid "" "RECV , send raw data to HexChat, as if it was received from the IRC " "server" msgstr "" #: src/common/outbound.c:3759 msgid "SAY , sends the text to the object in the current window" msgstr "SAY pošlje besedilo predmetu v trenutnem oknu" #: src/common/outbound.c:3760 msgid "SEND []" msgstr "" #: src/common/outbound.c:3763 msgid "SERVCHAN [-ssl] , connects and joins a channel" msgstr "SERVCHAN [-ssl] se poveže na strežnik in se pridruži kanalu" #: src/common/outbound.c:3766 msgid "SERVCHAN , connects and joins a channel" msgstr "SERVCHAN se poveže na strežnik in se pridruži kanalu" #: src/common/outbound.c:3770 msgid "" "SERVER [-ssl] [] [], connects to a server, the " "default port is 6667 for normal connections, and 6697 for ssl connections" msgstr "" #: src/common/outbound.c:3773 msgid "" "SERVER [] [], connects to a server, the default port " "is 6667" msgstr "SERVER [] [] poveže se na strežnik, privzeto na vrata 6667" #: src/common/outbound.c:3775 msgid "SET [-e] [-off|-on] [-quiet] []" msgstr "" #: src/common/outbound.c:3776 msgid "SETCURSOR [-|+], reposition the cursor in the inputbox" msgstr "" #: src/common/outbound.c:3777 msgid "SETTAB , change a tab's name, tab_trunc limit still applies" msgstr "" #: src/common/outbound.c:3778 msgid "SETTEXT , replace the text in the input box" msgstr "" #: src/common/outbound.c:3781 msgid "" "TOPIC [], sets the topic if one is given, else shows the current " "topic" msgstr "TOPIC [] če podamo temo, jo nastavi, sicer pa prikaže trenutno" #: src/common/outbound.c:3783 msgid "" "\n" "TRAY -f [] Blink tray between two icons.\n" "TRAY -f Set tray to a fixed icon.\n" "TRAY -i Blink tray with an internal icon.\n" "TRAY -t Set the tray tooltip.\n" "TRAY -b <text> Set the tray balloon." msgstr "" #: src/common/outbound.c:3790 msgid "UNBAN <mask> [<mask>...], unbans the specified masks." msgstr "UNBAN <maska> [<maska> ...] odstrani prepoved za določene maske." #: src/common/outbound.c:3791 msgid "UNIGNORE <mask> [QUIET]" msgstr "UNIGNORE <maska> [QUIET]" #: src/common/outbound.c:3792 msgid "UNLOAD <name>, unloads a plugin or script" msgstr "LOAD <datoteka> naloži dodatek ali skript" #: src/common/outbound.c:3793 msgid "URL <url>, opens a URL in your browser" msgstr "URL <url>, odpre URL v vašem brskalniku" #: src/common/outbound.c:3795 msgid "" "USELECT [-a] [-s] <nick1> <nick2> etc, highlights nick(s) in channel " "userlist" msgstr "" #: src/common/outbound.c:3798 msgid "VOICE <nick>, gives voice status to someone (needs chanop)" msgstr "VOICE <vzdevek> dodeli glasovni privilegij vzdevku (za kar potrebuje pravice op)" #: src/common/outbound.c:3800 msgid "WALLCHAN <message>, writes the message to all channels" msgstr "WALLCHAN <sporočilo> pošlje sporočilo na vse kanale" #: src/common/outbound.c:3802 msgid "" "WALLCHOP <message>, sends the message to all chanops on the current channel" msgstr "WALLCHOP <sporočilo> pošlje sporočilo vsem operaterjem kanala" #: src/common/outbound.c:3835 #, c-format msgid "Usage: %s\n" msgstr "Uporaba:%s\n" #: src/common/outbound.c:3840 msgid "" "\n" "No help available on that command.\n" msgstr "\nNa to temo ni na voljo pomoči.\n" #: src/common/outbound.c:3846 msgid "No such command.\n" msgstr "Ta ukaz ne obstaja.\n" #: src/common/outbound.c:4177 msgid "Bad arguments for user command.\n" msgstr "Napačne izbire za uporabnikov ukaz.\n" #: src/common/outbound.c:4338 msgid "Too many recursive usercommands, aborting." msgstr "Preveč rekurzivnih ukazov, opuščam." #: src/common/outbound.c:4421 msgid "Unknown Command. Try /help\n" msgstr "Neznan ukaz. Poskusite /help\n" #: src/common/plugin.c:383 src/common/plugin.c:424 msgid "No hexchat_plugin_init symbol; is this really a HexChat plugin?" msgstr "" #: src/common/server.c:643 msgid "Are you sure this is a SSL capable server and port?\n" msgstr "Ali ste prepričani, da strežnik podpira SSL prek teh vrat?\n" #: src/common/server.c:1011 #, c-format msgid "" "Cannot resolve hostname %s\n" "Check your IP Settings!\n" msgstr "Ne morem določiti imena gostitelja %s\nPreverite svoje nastavitve IP!\n" #: src/common/server.c:1016 msgid "Proxy traversal failed.\n" msgstr "Prečkanje proxyja neuspešno.\n" #: src/common/servlist.c:767 #, c-format msgid "Cycling to next server in %s...\n" msgstr "Povezujem se z naslednjim strežnikom v %s...\n" #: src/common/servlist.c:1252 #, c-format msgid "" "Warning: \"%s\" character set is unknown. No conversion will be applied for " "network %s." msgstr "Pozor: \"%s\" je neznan kodni nabor. Za omrežje %s ne bo uporabljena nobena pretvorba." #: src/common/textevents.h:6 msgid "%C18*%O$t%C18$1%O added to notify list." msgstr "" #: src/common/textevents.h:9 msgid "%C22*%O$t%C22$1%O Banlist: %C18$2%O on %C24$4%O by %C26$3%O" msgstr "" #: src/common/textevents.h:12 msgid "%C22*%O$tCannot join %C22$1 %O(%C20You are banned%O)." msgstr "" #: src/common/textevents.h:18 msgid "%C29*%O$tCapabilities acknowledged: %C29$2%O" msgstr "" #: src/common/textevents.h:21 msgid "%C23*%O$tCapabilities supported: %C29$2%O" msgstr "" #: src/common/textevents.h:24 msgid "%C23*%O$tCapabilities requested: %C29$1%O" msgstr "" #: src/common/textevents.h:27 msgid "%C24*%O$t%C28$1%O is now known as %C18$2%O" msgstr "" #: src/common/textevents.h:36 msgid "%C22*%O$t%C26$1%O sets ban on %C18$2%O" msgstr "" #: src/common/textevents.h:39 msgid "%C22*%O$tChannel %C22$1%O created on %C24$2%O" msgstr "" #: src/common/textevents.h:42 msgid "%C22*%O$t%C26$1%O removes channel half-operator status from %C18$2%O" msgstr "" #: src/common/textevents.h:45 msgid "%C22*%O$t%C26$1%O removes channel operator status from %C18$2%O" msgstr "" #: src/common/textevents.h:48 msgid "%C22*%O$t%C26$1%O removes voice from %C18$2%O" msgstr "" #: src/common/textevents.h:51 msgid "%C22*%O$t%C26$1%C sets exempt on %C18$2%O" msgstr "" #: src/common/textevents.h:54 msgid "%C22*%O$t%C26$1%O gives channel half-operator status to %C18$2%O" msgstr "" #: src/common/textevents.h:57 msgid "%C22*%O$t%C26$1%C sets invite on %C18$2%O" msgstr "" #: src/common/textevents.h:60 msgid "%UChannel Users Topic" msgstr "%UKanal Uporabnikov Tema" #: src/common/textevents.h:66 msgid "%C22*%O$t%C26$1%O sets mode %C24$2$3%O on %C22$4%O" msgstr "" #: src/common/textevents.h:69 msgid "%C22*%O$tChannel %C22$1%O modes: %C24$2" msgstr "" #: src/common/textevents.h:78 msgid "%C22*%O$t%C26$1%O gives channel operator status to %C18$2%O" msgstr "" #: src/common/textevents.h:81 msgid "%C22*%O$t%C26$1%O removes exempt on %C18$2%O" msgstr "" #: src/common/textevents.h:84 msgid "%C22*%O$t%C26$1%O removes invite on %C18$2%O" msgstr "" #: src/common/textevents.h:87 msgid "%C22*%O$t%C26$1%O removes channel keyword" msgstr "" #: src/common/textevents.h:90 msgid "%C22*%O$t%C26$1%O removes user limit" msgstr "" #: src/common/textevents.h:93 msgid "%C22*%O$t%C26$1%O sets channel keyword to %C24$2%O" msgstr "" #: src/common/textevents.h:96 msgid "%C22*%O$t%C26$1%O sets channel limit to %C24$2%O" msgstr "" #: src/common/textevents.h:99 msgid "%C22*%O$t%C26$1%O removes ban on %C18$2%O" msgstr "" #: src/common/textevents.h:102 msgid "%C22*%O$t%C26$1%O gives voice to %C18$2%O" msgstr "" #: src/common/textevents.h:105 msgid "%C23*%O$tConnected. Now logging in." msgstr "" #: src/common/textevents.h:108 msgid "%C23*%O$tConnecting to %C29$1%C (%C23$2:$3%O)" msgstr "" #: src/common/textevents.h:111 msgid "%C20*%O$tConnection failed (%C20$1%O)" msgstr "" #: src/common/textevents.h:114 msgid "%C24*%O$tReceived a CTCP %C24$1%C from %C18$2%O" msgstr "" #: src/common/textevents.h:117 msgid "%C24*%C$tReceived a CTCP %C24$1%C from %C18$2%C (to %C22$3%C)%O" msgstr "" #: src/common/textevents.h:123 msgid "%C24*%O$tReceived a CTCP Sound %C24$1%C from %C18$2%O" msgstr "" #: src/common/textevents.h:126 msgid "%C24*%O$tReceived a CTCP Sound %C24$1%C from %C18$2%C (to %C22$3%O)" msgstr "" #: src/common/textevents.h:129 msgid "%C23*%O$tDCC CHAT to %C18$1%O aborted." msgstr "" #: src/common/textevents.h:132 msgid "" "%C24*%O$tDCC CHAT connection established to %C18$1%C %C30[%C24$2%C30]%O" msgstr "" #: src/common/textevents.h:135 msgid "%C20*%O$tDCC CHAT to %C18$1%O lost (%C20$4%O)" msgstr "" #: src/common/textevents.h:138 msgid "%C24*%O$tReceived a DCC CHAT offer from %C18$1%O" msgstr "" #: src/common/textevents.h:141 msgid "%C24*%O$tOffering DCC CHAT to %C18$1%O" msgstr "" #: src/common/textevents.h:144 msgid "%C24*%O$tAlready offering CHAT to %C18$1%O" msgstr "" #: src/common/textevents.h:147 msgid "%C20*%O$tDCC $1 connect attempt to %C18$2%O failed (%C20$3%O)" msgstr "" #: src/common/textevents.h:150 msgid "%C23*%O$tReceived '%C23$1%C' from %C18$2%O" msgstr "" #: src/commo<style>pre { line-height: 125%; } td.linenos .normal { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; } span.linenos { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; } td.linenos .special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; } span.linenos.special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; } .highlight .hll { background-color: #ffffcc } .highlight .c { color: #888888 } /* Comment */ .highlight .err { color: #a61717; background-color: #e3d2d2 } /* Error */ .highlight .k { color: #008800; font-weight: bold } /* Keyword */ .highlight .ch { color: #888888 } /* Comment.Hashbang */ .highlight .cm { color: #888888 } /* Comment.Multiline */ .highlight .cp { color: #cc0000; font-weight: bold } /* Comment.Preproc */ .highlight .cpf { color: #888888 } /* Comment.PreprocFile */ .highlight .c1 { color: #888888 } /* Comment.Single */ .highlight .cs { color: #cc0000; font-weight: bold; background-color: #fff0f0 } /* Comment.Special */ .highlight .gd { color: #000000; background-color: #ffdddd } /* Generic.Deleted */ .highlight .ge { font-style: italic } /* Generic.Emph */ .highlight .ges { font-weight: bold; font-style: italic } /* Generic.EmphStrong */ .highlight .gr { color: #aa0000 } /* Generic.Error */ .highlight .gh { color: #333333 } /* Generic.Heading */ .highlight .gi { color: #000000; background-color: #ddffdd } /* Generic.Inserted */ .highlight .go { color: #888888 } /* Generic.Output */ .highlight .gp { color: #555555 } /* Generic.Prompt */ .highlight .gs { font-weight: bold } /* Generic.Strong */ .highlight .gu { color: #666666 } /* Generic.Subheading */ .highlight .gt { color: #aa0000 } /* Generic.Traceback */ .highlight .kc { color: #008800; font-weight: bold } /* Keyword.Constant */ .highlight .kd { color: #008800; font-weight: bold } /* Keyword.Declaration */ .highlight .kn { color: #008800; font-weight: bold } /* Keyword.Namespace */ .highlight .kp { color: #008800 } /* Keyword.Pseudo */ .highlight .kr { color: #008800; font-weight: bold } /* Keyword.Reserved */ .highlight .kt { color: #888888; font-weight: bold } /* Keyword.Type */ .highlight .m { color: #0000DD; font-weight: bold } /* Literal.Number */ .highlight .s { color: #dd2200; background-color: #fff0f0 } /* Literal.String */ .highlight .na { color: #336699 } /* Name.Attribute */ .highlight .nb { color: #003388 } /* Name.Builtin */ .highlight .nc { color: #bb0066; font-weight: bold } /* Name.Class */ .highlight .no { color: #003366; font-weight: bold } /* Name.Constant */ .highlight .nd { color: #555555 } /* Name.Decorator */ .highlight .ne { color: #bb0066; font-weight: bold } /* Name.Exception */ .highlight .nf { color: #0066bb; font-weight: bold } /* Name.Function */ .highlight .nl { color: #336699; font-style: italic } /* Name.Label */ .highlight .nn { color: #bb0066; font-weight: bold } /* Name.Namespace */ .highlight .py { color: #336699; font-weight: bold } /* Name.Property */ .highlight .nt { color: #bb0066; font-weight: bold } /* Name.Tag */ .highlight .nv { color: #336699 } /* Name.Variable */ .highlight .ow { color: #008800 } /* Operator.Word */ .highlight .w { color: #bbbbbb } /* Text.Whitespace */ .highlight .mb { color: #0000DD; font-weight: bold } /* Literal.Number.Bin */ .highlight .mf { color: #0000DD; font-weight: bold } /* Literal.Number.Float */ .highlight .mh { color: #0000DD; font-weight: bold } /* Literal.Number.Hex */ .highlight .mi { color: #0000DD; font-weight: bold } /* Literal.Number.Integer */ .highlight .mo { color: #0000DD; font-weight: bold } /* Literal.Number.Oct */ .highlight .sa { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Affix */ .highlight .sb { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Backtick */ .highlight .sc { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Char */ .highlight .dl { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Delimiter */ .highlight .sd { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Doc */ .highlight .s2 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Double */ .highlight .se { color: #0044dd; background-color: #fff0f0 } /* Literal.String.Escape */ .highlight .sh { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Heredoc */ .highlight .si { color: #3333bb; background-color: #fff0f0 } /* Literal.String.Interpol */ .highlight .sx { color: #22bb22; background-color: #f0fff0 } /* Literal.String.Other */ .highlight .sr { color: #008800; background-color: #fff0ff } /* Literal.String.Regex */ .highlight .s1 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Single */ .highlight .ss { color: #aa6600; background-color: #fff0f0 } /* Literal.String.Symbol */ .highlight .bp { color: #003388 } /* Name.Builtin.Pseudo */ .highlight .fm { color: #0066bb; font-weight: bold } /* Name.Function.Magic */ .highlight .vc { color: #336699 } /* Name.Variable.Class */ .highlight .vg { color: #dd7700 } /* Name.Variable.Global */ .highlight .vi { color: #3333bb } /* Name.Variable.Instance */ .highlight .vm { color: #336699 } /* Name.Variable.Magic */ .highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */</style><div class="highlight"><pre><span></span><span class="cm">/* X-Tray</span> <span class="cm"> * Copyright (C) 2005 Michael Hotaling <Mike.Hotaling@SinisterDevelopments.com></span> <span class="cm"> *</span> <span class="cm"> * X-Tray is free software; you can redistribute it and/or modify</span> <span class="cm"> * it under the terms of the GNU General Public License as published by</span> <span class="cm"> * the Free Software Foundation; either version 2 of the License, or</span> <span class="cm"> * (at your option) any later version.</span> <span class="cm"> * </span> <span class="cm"> * X-Tray is distributed in the hope that it will be useful,</span> <span class="cm"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span> <span class="cm"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the</span> <span class="cm"> * GNU General Public License for more details.</span> <span class="cm"> * </span> <span class="cm"> * You should have received a copy of the GNU General Public License</span> <span class="cm"> * along with X-Tray; if not, write to the Free Software</span> <span class="cm"> * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA</span> <span class="cm"> */</span> <span class="cp">#define _WIN32_IE 0x0601</span> <span class="cp">#include</span><span class="w"> </span><span class="cpf"><windows.h></span> <span class="cp">#include</span><span class="w"> </span><span class="cpf"><stdio.h></span> <span class="cp">#include</span><span class="w"> </span><span class="cpf"><commctrl.h></span> <span class="cp">#include</span><span class="w"> </span><span class="cpf"><tchar.h></span> <span class="cp">#include</span><span class="w"> </span><span class="cpf">"hexchat-plugin.h"</span> <span class="cp">#include</span><span class="w"> </span><span class="cpf">"utility.h"</span> <span class="cp">#include</span><span class="w"> </span><span class="cpf">"hextray.h"</span> <span class="cp">#include</span><span class="w"> </span><span class="cpf">"hexchat.h"</span> <span class="cp">#include</span><span class="w"> </span><span class="cpf">"callbacks.h"</span> <span class="cp">#include</span><span class="w"> </span><span class="cpf">"resource.h"</span> <span class="cp">#include</span><span class="w"> </span><span class="cpf">"sdTray.h"</span> <span class="cp">#include</span><span class="w"> </span><span class="cpf">"sdAlerts.h"</span> <span class="n">HWND</span><span class="w"> </span><span class="n">g_hPrefTabEvents</span><span class="p">;</span> <span class="n">HWND</span><span class="w"> </span><span class="n">g_hPrefTabSettings</span><span class="p">;</span> <span class="n">HWND</span><span class="w"> </span><span class="n">g_hPrefTabAlerts</span><span class="p">;</span> <span class="n">HWND</span><span class="w"> </span><span class="n">g_hPrefTabAbout</span><span class="p">;</span> <span class="kt">bool</span><span class="w"> </span><span class="n">g_bCanQuit</span><span class="p">;</span> <span class="kt">int</span><span class="w"> </span><span class="n">g_iIsActive</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">1</span><span class="p">;</span> <span class="n">BOOL</span><span class="w"> </span><span class="n">CALLBACK</span><span class="w"> </span><span class="n">EnumWindowsProc</span><span class="p">(</span><span class="n">HWND</span><span class="w"> </span><span class="n">hWnd</span><span class="p">,</span><span class="w"> </span><span class="n">LPARAM</span><span class="w"> </span><span class="n">lParam</span><span class="p">)</span> <span class="p">{</span> <span class="w"> </span><span class="n">TCHAR</span><span class="w"> </span><span class="n">szTitle</span><span class="p">[</span><span class="mi">10</span><span class="p">];</span> <span class="w"> </span><span class="n">GetWindowText</span><span class="p">(</span><span class="n">hWnd</span><span class="p">,</span><span class="w"> </span><span class="n">szTitle</span><span class="p">,</span><span class="w"> </span><span class="mi">9</span><span class="p">);</span> <span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="n">_tcsstr</span><span class="p">(</span><span class="n">szTitle</span><span class="p">,</span><span class="w"> </span><span class="n">_T</span><span class="p">(</span><span class="s">"HexChat ["</span><span class="p">)))</span> <span class="w"> </span><span class="p">{</span> <span class="w"> </span><span class="n">g_hXchatWnd</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">hWnd</span><span class="p">;</span> <span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="nb">false</span><span class="p">;</span> <span class="w"> </span><span class="p">}</span> <span class="w"> </span> <span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="nb">true</span><span class="p">;</span> <span class="p">}</span> <span class="cm">/***********************************************************************************************/</span> <span class="cm">/******* our HexChat event call back, get the name and info for each event and save it *********/</span> <span class="cm">/******* for our alerts later ******************************************************************/</span> <span class="cm">/***********************************************************************************************/</span> <span class="kt">int</span><span class="w"> </span><span class="n">event_cb</span><span class="p">(</span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">word</span><span class="p">[],</span><span class="w"> </span><span class="kt">void</span><span class="w"> </span><span class="o">*</span><span class="n">userdata</span><span class="p">)</span> <span class="p">{</span> <span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">iEvent</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="kt">int</span><span class="p">)</span><span class="n">userdata</span><span class="p">;</span> <span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="n">iEvent</span><span class="w"> </span><span class="o">></span><span class="w"> </span><span class="mi">10</span><span class="w"> </span><span class="o">&&</span><span class="w"> </span><span class="n">iEvent</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="mi">21</span><span class="p">)</span> <span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">HEXCHAT_EAT_NONE</span><span class="p">;</span> <span class="w"> </span><span class="cm">/***************************************************************************************/</span> <span class="w"> </span><span class="cm">/***** if the window is minimized or if we're allowed to show alerts when its not **/</span> <span class="w"> </span><span class="cm">/***** and if the option to show the specified alert is true and if we're even **/</span> <span class="w"> </span><span class="cm">/***** allowed to show alerts at all then we show them (a bit confusing but it works) **/</span> <span class="w"> </span><span class="cm">/***************************************************************************************/</span> <span class="w"> </span><span class="k">if</span><span class="p">(((</span><span class="n">g_iIsActive</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span><span class="w"> </span><span class="o">||</span><span class="w"> </span><span class="o">!</span><span class="p">(</span><span class="n">g_dwPrefs</span><span class="w"> </span><span class="o">&</span><span class="w"> </span><span class="p">(</span><span class="mi">1</span><span class="o"><<</span><span class="n">PREF_OSBWM</span><span class="p">)))</span><span class="w"> </span><span class="o">&&</span><span class="w"> </span><span class="p">(</span><span class="n">g_dwPrefs</span><span class="w"> </span><span class="o">&</span><span class="w"> </span><span class="p">(</span><span class="mi">1</span><span class="o"><<</span><span class="n">PREF_AMAE</span><span class="p">))</span><span class="w"> </span><span class="o">&&</span><span class="w"> </span><span class="p">(</span><span class="n">g_dwPrefs</span><span class="w"> </span><span class="o">&</span><span class="w"> </span><span class="p">(</span><span class="mi">1</span><span class="o"><<</span><span class="n">iEvent</span><span class="p">)))</span> <span class="w"> </span><span class="p">{</span><span class="w"> </span> <span class="w"> </span><span class="cm">/*********************************/</span> <span class="w"> </span><span class="cm">/*********** Our Buffers *********/</span> <span class="w"> </span><span class="cm">/*********************************/</span> <span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="n">szInfo</span><span class="p">[</span><span class="mi">512</span><span class="p">];</span> <span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="n">szName</span><span class="p">[</span><span class="mi">64</span><span class="p">];</span> <span class="w"> </span><span class="n">DWORD</span><span class="w"> </span><span class="n">dwInfoFlags</span><span class="p">;</span> <span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">iTime</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_iTime</span><span class="o">*</span><span class="mi">1000</span><span class="p">;</span> <span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">szTemp</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> <span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="n">g_dwPrefs</span><span class="w"> </span><span class="o">&</span><span class="w"> </span><span class="p">(</span><span class="mi">1</span><span class="o"><<</span><span class="n">PREF_KAOI</span><span class="p">))</span> <span class="w"> </span><span class="p">{</span> <span class="w"> </span><span class="n">iTime</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span> <span class="w"> </span><span class="p">}</span> <span class="w"> </span><span class="k">switch</span><span class="p">(</span><span class="n">iEvent</span><span class="p">)</span> <span class="w"> </span><span class="p">{</span> <span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">CHAN_HILIGHT</span><span class="p">:</span> <span class="w"> </span><span class="n">_snprintf</span><span class="p">(</span><span class="n">szInfo</span><span class="p">,</span><span class="w"> </span><span class="mi">512</span><span class="p">,</span><span class="w"> </span><span class="s">"%s:</span><span class="se">\r\n</span><span class="s">%s"</span><span class="p">,</span><span class="w"> </span><span class="n">word</span><span class="p">[</span><span class="mi">1</span><span class="p">],</span><span class="w"> </span><span class="n">word</span><span class="p">[</span><span class="mi">2</span><span class="p">]);</span> <span class="w"> </span><span class="n">_snprintf</span><span class="p">(</span><span class="n">szName</span><span class="p">,</span><span class="w"> </span><span class="mi">64</span><span class="p">,</span><span class="w"> </span><span class="s">"Highlight: %s"</span><span class="p">,</span><span class="w"> </span><span class="n">hexchat_get_info</span><span class="w"> </span><span class="p">(</span><span class="n">ph</span><span class="p">,</span><span class="w"> </span><span class="s">"channel"</span><span class="p">));</span> <span class="w"> </span><span class="n">dwInfoFlags</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">NIIF_INFO</span><span class="p">;</span> <span class="w"> </span><span class="k">break</span><span class="p">;</span> <span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">CHAN_MESSAGE</span><span class="p">:</span> <span class="w"> </span><span class="n">_snprintf</span><span class="p">(</span><span class="n">szInfo</span><span class="p">,</span><span class="w"> </span><span class="mi">512</span><span class="p">,</span><span class="w"> </span><span class="s">"%s:</span><span class="se">\r\n</span><span class="s">%s"</span><span class="p">,</span><span class="w"> </span><span class="n">word</span><span class="p">[</span><span class="mi">1</span><span class="p">],</span><span class="w"> </span><span class="n">word</span><span class="p">[</span><span class="mi">2</span><span class="p">]);</span> <span class="w"> </span><span class="n">_snprintf</span><span class="p">(</span><span class="n">szName</span><span class="p">,</span><span class="w"> </span><span class="mi">64</span><span class="p">,</span><span class="w"> </span><span class="s">"Channel Message: %s"</span><span class="p">,</span><span class="w"> </span><span class="n">hexchat_get_info</span><span class="w"> </span><span class="p">(</span><span class="n">ph</span><span class="p">,</span><span class="w"> </span><span class="s">"channel"</span><span class="p">));</span> <span class="w"> </span><span class="n">dwInfoFlags</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">NIIF_INFO</span><span class="p">;</span> <span class="w"> </span><span class="k">break</span><span class="p">;</span> <span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">CHAN_TOPIC_CHANGE</span><span class="p">:</span> <span class="w"> </span><span class="n">_snprintf</span><span class="p">(</span><span class="n">szInfo</span><span class="p">,</span><span class="w"> </span><span class="mi">512</span><span class="p">,</span><span class="w"> </span><span class="s">"%s has changed the topic to %s"</span><span class="p">,</span><span class="w"> </span><span class="n">word</span><span class="p">[</span><span class="mi">1</span><span class="p">],</span><span class="w"> </span><span class="n">word</span><span class="p">[</span><span class="mi">2</span><span class="p">]);</span> <span class="w"> </span><span class="n">_snprintf</span><span class="p">(</span><span class="n">szName</span><span class="p">,</span><span class="w"> </span><span class="mi">64</span><span class="p">,</span><span class="w"> </span><span class="s">"Topic Change: %s"</span><span class="p">,</span><span class="w"> </span><span class="n">word</span><span class="p">[</span><span class="mi">3</span><span class="p">]);</span> <span class="w"> </span><span class="n">dwInfoFlags</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">NIIF_INFO</span><span class="p">;</span> <span class="w"> </span><span class="k">break</span><span class="p">;</span> <span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">CHAN_INVITE</span><span class="p">:</span> <span class="w"> </span><span class="n">_snprintf</span><span class="p">(</span><span class="n">szInfo</span><span class="p">,</span><span class="w"> </span><span class="mi">512</span><span class="p">,</span><span class="w"> </span><span class="s">"%s has invited you into %s"</span><span class="p">,</span><span class="w"> </span><span class="n">word</span><span class="p">[</span><span class="mi">1</span><span class="p">],</span><span class="w"> </span><span class="n">word</span><span class="p">[</span><span class="mi">2</span><span class="p">]);</span> <span class="w"> </span><span class="n">_snprintf</span><span class="p">(</span><span class="n">szName</span><span class="p">,</span><span class="w"> </span><span class="mi">64</span><span class="p">,</span><span class="w"> </span><span class="s">"Invite"</span><span class="p">);</span> <span class="w"> </span><span class="n">dwInfoFlags</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">NIIF_INFO</span><span class="p">;</span> <span class="w"> </span><span class="k">break</span><span class="p">;</span> <span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">CHAN_KICKED</span><span class="p">:</span> <span class="w"> </span><span class="n">_snprintf</span><span class="p">(</span><span class="n">szInfo</span><span class="p">,</span><span class="w"> </span><span class="mi">512</span><span class="p">,</span><span class="w"> </span><span class="s">"Kicked from %s by %s:</span><span class="se">\r\n</span><span class="s">%s"</span><span class="p">,</span><span class="w"> </span><span class="n">word</span><span class="p">[</span><span class="mi">2</span><span class="p">],</span><span class="w"> </span><span class="n">word</span><span class="p">[</span><span class="mi">3</span><span class="p">],</span><span class="w"> </span><span class="n">word</span><span class="p">[</span><span class="mi">4</span><span class="p">]);</span> <span class="w"> </span><span class="n">_snprintf</span><span class="p">(</span><span class="n">szName</span><span class="p">,</span><span class="w"> </span><span class="mi">64</span><span class="p">,</span><span class="w"> </span><span class="s">"Kick"</span><span class="p">);</span> <span class="w"> </span><span class="n">dwInfoFlags</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">NIIF_WARNING</span><span class="p">;</span> <span class="w"> </span><span class="k">break</span><span class="p">;</span> <span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">CHAN_BANNED</span><span class="p">:</span> <span class="w"> </span><span class="n">_snprintf</span><span class="p">(</span><span class="n">szInfo</span><span class="p">,</span><span class="w"> </span><span class="mi">512</span><span class="p">,</span><span class="w"> </span><span class="s">"Cannot join %s You are banned."</span><span class="p">,</span><span class="w"> </span><span class="n">word</span><span class="p">[</span><span class="mi">1</span><span class="p">]);</span> <span class="w"> </span><span class="n">_snprintf</span><span class="p">(</span><span class="n">szName</span><span class="p">,</span><span class="w"> </span><span class="mi">64</span><span class="p">,</span><span class="w"> </span><span class="s">"Banned"</span><span class="p">);</span> <span class="w"> </span><span class="n">dwInfoFlags</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">NIIF_WARNING</span><span class="p">;</span> <span class="w"> </span><span class="k">break</span><span class="p">;</span> <span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">CTCP_GENERIC</span><span class="p">:</span> <span class="w"> </span><span class="n">_snprintf</span><span class="p">(</span><span class="n">szInfo</span><span class="p">,</span><span class="w"> </span><span class="mi">512</span><span class="p">,</span><span class="w"> </span><span class="s">"%s:</span><span class="se">\r\n</span><span class="s">CTCP %s"</span><span class="p">,</span><span class="w"> </span><span class="n">word</span><span class="p">[</span><span class="mi">2</span><span class="p">],</span><span class="w"> </span><span class="n">word</span><span class="p">[</span><span class="mi">1</span><span class="p">]);</span> <span class="w"> </span><span class="n">_snprintf</span><span class="p">(</span><span class="n">szName</span><span class="p">,</span><span class="w"> </span><span class="mi">64</span><span class="p">,</span><span class="w"> </span><span class="s">"CTCP"</span><span class="p">);</span> <span class="w"> </span><span class="n">dwInfoFlags</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">NIIF_INFO</span><span class="p">;</span> <span class="w"> </span><span class="k">break</span><span class="p">;</span> <span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">PMSG_RECEIVE</span><span class="p">:</span> <span class="w"> </span><span class="n">_snprintf</span><span class="p">(</span><span class="n">szInfo</span><span class="p">,</span><span class="w"> </span><span class="mi">512</span><span class="p">,</span><span class="w"> </span><span class="s">"%s:</span><span class="se">\r\n</span><span class="s">%s"</span><span class="p">,</span><span class="w"> </span><span class="n">word</span><span class="p">[</span><span class="mi">1</span><span class="p">],</span><span class="w"> </span><span class="n">word</span><span class="p">[</span><span class="mi">2</span><span class="p">]);</span> <span class="w"> </span><span class="n">_snprintf</span><span class="p">(</span><span class="n">szName</span><span class="p">,</span><span class="w"> </span><span class="mi">64</span><span class="p">,</span><span class="w"> </span><span class="s">"Private Message"</span><span class="p">);</span> <span class="w"> </span><span class="n">dwInfoFlags</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">NIIF_INFO</span><span class="p">;</span> <span class="w"> </span><span class="k">break</span><span class="p">;</span> <span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">SERV_DISCONNECT</span><span class="p">:</span> <span class="w"> </span><span class="n">_snprintf</span><span class="p">(</span><span class="n">szInfo</span><span class="p">,</span><span class="w"> </span><span class="mi">512</span><span class="p">,</span><span class="w"> </span><span class="s">"Disconnected</span><span class="se">\r\n</span><span class="s">Error: %s"</span><span class="p">,</span><span class="w"> </span><span class="n">word</span><span class="p">[</span><span class="mi">1</span><span class="p">]);</span> <span class="w"> </span><span class="n">_snprintf</span><span class="p">(</span><span class="n">szName</span><span class="p">,</span><span class="w"> </span><span class="mi">64</span><span class="p">,</span><span class="w"> </span><span class="s">"Disconnect"</span><span class="p">);</span> <span class="w"> </span><span class="n">dwInfoFlags</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">NIIF_ERROR</span><span class="p">;</span> <span class="w"> </span><span class="k">break</span><span class="p">;</span> <span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">SERV_KILLED</span><span class="p">:</span> <span class="w"> </span><span class="n">_snprintf</span><span class="p">(</span><span class="n">szInfo</span><span class="p">,</span><span class="w"> </span><span class="mi">512</span><span class="p">,</span><span class="w"> </span><span class="s">"Killed(%s(%s))"</span><span class="p">,</span><span class="w"> </span><span class="n">word</span><span class="p">[</span><span class="mi">1</span><span class="p">],</span><span class="w"> </span><span class="n">word</span><span class="p">[</span><span class="mi">2</span><span class="p">]);</span> <span class="w"> </span><span class="n">_snprintf</span><span class="p">(</span><span class="n">szName</span><span class="p">,</span><span class="w"> </span><span class="mi">64</span><span class="p">,</span><span class="w"> </span><span class="s">"Server Admin has killed you"</span><span class="p">);</span> <span class="w"> </span><span class="n">dwInfoFlags</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">NIIF_ERROR</span><span class="p">;</span> <span class="w"> </span><span class="k">break</span><span class="p">;</span> <span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">SERV_NOTICE</span><span class="p">:</span> <span class="w"> </span><span class="n">_snprintf</span><span class="p">(</span><span class="n">szInfo</span><span class="p">,</span><span class="w"> </span><span class="mi">512</span><span class="p">,</span><span class="w"> </span><span class="s">"Notice:</span><span class="se">\r\n</span><span class="s">%s: %s"</span><span class="p">,</span><span class="w"> </span><span class="n">word</span><span class="p">[</span><span class="mi">1</span><span class="p">],</span><span class="w"> </span><span class="n">word</span><span class="p">[</span><span class="mi">2</span><span class="p">]);</span> <span class="w"> </span><span class="n">_snprintf</span><span class="p">(</span><span class="n">szName</span><span class="p">,</span><span class="w"> </span><span class="mi">64</span><span class="p">,</span><span class="w"> </span><span class="s">"Notice"</span><span class="p">);</span> <span class="w"> </span><span class="n">dwInfoFlags</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">NIIF_INFO</span><span class="p">;</span> <span class="w"> </span><span class="k">break</span><span class="p">;</span> <span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="mi">11</span><span class="p">:</span> <span class="w"> </span><span class="n">_snprintf</span><span class="p">(</span><span class="n">szInfo</span><span class="p">,</span><span class="w"> </span><span class="mi">512</span><span class="p">,</span><span class="w"> </span><span class="s">":</span><span class="se">\r\n</span><span class="s">%s: %s"</span><span class="p">,</span><span class="w"> </span><span class="n">word</span><span class="p">[</span><span class="mi">1</span><span class="p">],</span><span class="w"> </span><span class="n">word</span><span class="p">[</span><span class="mi">2</span><span class="p">]);</span> <span class="w"> </span><span class="n">_snprintf</span><span class="p">(</span><span class="n">szName</span><span class="p">,</span><span class="w"> </span><span class="mi">64</span><span class="p">,</span><span class="w"> </span><span class="s">"Notice"</span><span class="p">);</span> <span class="w"> </span><span class="n">dwInfoFlags</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">NIIF_INFO</span><span class="p">;</span> <span class="w"> </span><span class="k">break</span><span class="p">;</span> <span class="w"> </span><span class="p">}</span> <span class="w"> </span><span class="cm">/**************************************************************************************/</span> <span class="w"> </span><span class="cm">/***** Use windows instead of balloons, and if its a window should we keep it open ****/</span> <span class="w"> </span><span class="cm">/***** indefinitely? ****/</span> <span class="w"> </span><span class="cm">/**************************************************************************************/</span> <span class="w"> </span><span class="n">szTemp</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">hexchat_strip_color</span><span class="p">(</span><span class="n">szInfo</span><span class="p">);</span> <span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="n">g_dwPrefs</span><span class="w"> </span><span class="o">&</span><span class="w"> </span><span class="p">(</span><span class="mi">1</span><span class="o"><<</span><span class="n">PREF_UWIOB</span><span class="p">))</span> <span class="w"> </span><span class="p">{</span> <span class="w"> </span><span class="n">sdSystemAlert</span><span class="p">((</span><span class="n">HINSTANCE</span><span class="p">)</span><span class="n">g_hInstance</span><span class="p">,</span><span class="w"> </span><span class="n">IDD_ALERT</span><span class="p">,</span><span class="w"> </span><span class="n">szTemp</span><span class="p">,</span><span class="w"> </span><span class="n">szName</span><span class="p">,</span><span class="w"> </span><span class="n">iTime</span><span class="p">);</span> <span class="w"> </span><span class="p">}</span> <span class="w"> </span><span class="k">else</span> <span class="w"> </span><span class="p">{</span> <span class="w"> </span><span class="n">ShowBalloon</span><span class="p">(</span><span class="n">g_hXchatWnd</span><span class="p">,</span><span class="w"> </span><span class="mi">1</span><span class="p">,</span><span class="w"> </span><span class="n">szTemp</span><span class="p">,</span><span class="w"> </span><span class="n">szName</span><span class="p">,</span><span class="w"> </span><span class="n">iTime</span><span class="p">,</span><span class="w"> </span><span class="n">dwInfoFlags</span><span class="p">);</span> <span class="w"> </span><span class="p">}</span> <span class="w"> </span><span class="n">free</span><span class="p">(</span><span class="n">szTemp</span><span class="p">);</span> <span class="w"> </span><span class="p">}</span> <span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="n">g_dwPrefs</span><span class="w"> </span><span class="o">&</span><span class="w"> </span><span class="p">(</span><span class="mi">1</span><span class="o"><<</span><span class="n">PREF_BLINK</span><span class="p">)</span><span class="w"> </span><span class="o">&&</span><span class="w"> </span><span class="p">(</span><span class="n">g_dwPrefs</span><span class="w"> </span><span class="o">&</span><span class="w"> </span><span class="p">(</span><span class="mi">1</span><span class="o"><<</span><span class="n">iEvent</span><span class="p">)))</span> <span class="w"> </span><span class="p">{</span> <span class="w"> </span><span class="n">BlinkIcon</span><span class="p">(</span><span class="n">g_hXchatWnd</span><span class="p">,</span><span class="w"> </span><span class="mi">1</span><span class="p">,</span><span class="w"> </span><span class="n">g_hIcons</span><span class="p">[</span><span class="mi">0</span><span class="p">],</span><span class="w"> </span><span class="n">g_hIcons</span><span class="p">[(</span><span class="n">iEvent</span><span class="o">+</span><span class="mi">1</span><span class="p">)],</span><span class="w"> </span><span class="mi">700</span><span class="p">,</span><span class="w"> </span><span class="mi">5</span><span class="p">);</span> <span class="w"> </span><span class="p">}</span> <span class="w"> </span><span class="cm">/***********************************/</span> <span class="w"> </span><span class="cm">/***** pass the events to HexChat **/</span> <span class="w"> </span><span class="cm">/***********************************/</span> <span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">HEXCHAT_EAT_NONE</span><span class="p">;</span> <span class="p">}</span> <span class="kt">int</span><span class="w"> </span><span class="n">command_cb</span><span class="p">(</span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">word</span><span class="p">[],</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">word_eol</span><span class="p">[],</span><span class="w"> </span><span class="kt">void</span><span class="w"> </span><span class="o">*</span><span class="n">userdata</span><span class="p">)</span> <span class="p">{</span> <span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="n">szInfo</span><span class="p">[</span><span class="mi">512</span><span class="p">];</span> <span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">szTemp</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> <span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">iTime</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_iTime</span><span class="o">*</span><span class="mi">1000</span><span class="p">;</span> <span class="w"> </span><span class="n">_snprintf</span><span class="p">(</span><span class="n">szInfo</span><span class="p">,</span><span class="w"> </span><span class="mi">512</span><span class="p">,</span><span class="w"> </span><span class="n">word_eol</span><span class="p">[</span><span class="mi">2</span><span class="p">]);</span> <span class="w"> </span><span class="n">szTemp</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">hexchat_strip_color</span><span class="p">(</span><span class="n">szInfo</span><span class="p">);</span> <span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="n">g_dwPrefs</span><span class="w"> </span><span class="o">&</span><span class="w"> </span><span class="p">(</span><span class="mi">1</span><span class="o"><<</span><span class="n">PREF_KAOI</span><span class="p">))</span> <span class="w"> </span><span class="p">{</span> <span class="w"> </span><span class="n">iTime</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span> <span class="w"> </span><span class="p">}</span> <span class="w"> </span><span class="k">if</span><span class="p">(((</span><span class="n">g_iIsActive</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span><span class="w"> </span><span class="o">||</span><span class="w"> </span><span class="o">!</span><span class="p">(</span><span class="n">g_dwPrefs</span><span class="w"> </span><span class="o">&</span><span class="w"> </span><span class="p">(</span><span class="mi">1</span><span class="o"><<</span><span class="n">PREF_OSBWM</span><span class="p">)))</span><span class="w"> </span><span class="o">&&</span><span class="w"> </span><span class="p">(</span><span class="n">g_dwPrefs</span><span class="w"> </span><span class="o">&</span><span class="w"> </span><span class="p">(</span><span class="mi">1</span><span class="o"><<</span><span class="n">PREF_AMAE</span><span class="p">)))</span> <span class="w"> </span><span class="p">{</span> <span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="n">g_dwPrefs</span><span class="w"> </span><span class="o">&</span><span class="w"> </span><span class="p">(</span><span class="mi">1</span><span class="o"><<</span><span class="n">PREF_UWIOB</span><span class="p">))</span> <span class="w"> </span><span class="p">{</span> <span class="w"> </span><span class="n">sdSystemAlert</span><span class="p">((</span><span class="n">HINSTANCE</span><span class="p">)</span><span class="n">g_hInstance</span><span class="p">,</span><span class="w"> </span><span class="n">IDD_ALERT</span><span class="p">,</span><span class="w"> </span><span class="n">szTemp</span><span class="p">,</span><span class="w"> </span><span class="s">"Alert"</span><span class="p">,</span><span class="w"> </span><span class="n">iTime</span><span class="p">);</span> <span class="w"> </span><span class="p">}</span> <span class="w"> </span><span class="k">else</span> <span class="w"> </span><span class="p">{</span> <span class="w"> </span><span class="n">ShowBalloon</span><span class="p">(</span><span class="n">g_hXchatWnd</span><span class="p">,</span><span class="w"> </span><span class="mi">1</span><span class="p">,</span><span class="w"> </span><span class="n">szTemp</span><span class="p">,</span><span class="w"> </span><span class="s">"Alert"</span><span class="p">,</span><span class="w"> </span><span class="n">iTime</span><span class="p">,</span><span class="w"> </span><span class="n">NIIF_INFO</span><span class="p">);</span> <span class="w"> </span><span class="p">}</span> <span class="w"> </span><span class="p">}</span> <span class="w"> </span><span class="n">free</span><span class="p">(</span><span class="n">szTemp</span><span class="p">);</span> <span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">HEXCHAT_EAT_ALL</span><span class="p">;</span> <span class="p">}</span> <span class="n">LRESULT</span><span class="w"> </span><span class="n">CALLBACK</span><span class="w"> </span><span class="n">WindowProc</span><span class="p">(</span><span class="n">HWND</span><span class="w"> </span><span class="n">hWnd</span><span class="p">,</span><span class="w"> </span><span class="n">UINT</span><span class="w"> </span><span class="n">msg</span><span class="p">,</span><span class="w"> </span><span class="n">WPARAM</span><span class="w"> </span><span class="n">wparam</span><span class="p">,</span><span class="w"> </span><span class="n">LPARAM</span><span class="w"> </span><span class="n">lparam</span><span class="p">)</span> <span class="p">{</span> <span class="w"> </span><span class="k">switch</span><span class="p">(</span><span class="n">msg</span><span class="p">)</span> <span class="w"> </span><span class="p">{</span> <span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">WM_CLOSE</span><span class="p">:</span> <span class="w"> </span><span class="p">{</span> <span class="w"> </span><span class="k">if</span><span class="p">((</span><span class="n">g_dwPrefs</span><span class="w"> </span><span class="o">&</span><span class="w"> </span><span class="p">(</span><span class="mi">1</span><span class="o"><<</span><span class="n">PREF_MIOC</span><span class="p">))</span><span class="w"> </span><span class="o">&&</span><span class="w"> </span><span class="p">(</span><span class="n">g_bCanQuit</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">false</span><span class="p">))</span> <span class="w"> </span><span class="p">{</span> <span class="w"> </span><span class="cm">/*******************************************/</span> <span class="w"> </span><span class="cm">/**** to autoaway or not to autoaway... ***/</span> <span class="w"> </span><span class="cm">/*******************************************/</span> <span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="n">g_dwPrefs</span><span class="w"> </span><span class="o">&</span><span class="w"> </span><span class="p">(</span><span class="mi">1</span><span class="o"><<</span><span class="n">PREF_AOM</span><span class="p">))</span> <span class="w"> </span><span class="p">{</span> <span class="w"> </span><span class="n">hexchat_globally_away</span><span class="p">(</span><span class="n">g_szAway</span><span class="p">);</span> <span class="w"> </span><span class="p">}</span> <span class="w"> </span><span class="cm">/**************************************************/</span> <span class="w"> </span><span class="cm">/**** Win32 API call to hide the window and **/</span> <span class="w"> </span><span class="cm">/**** save the fact that its minimized for later **/</span> <span class="w"> </span><span class="cm">/**************************************************/</span> <span class="w"> </span><span class="n">g_iIsActive</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span> <span class="w"> </span><span class="n">ShowWindow</span><span class="p">(</span><span class="n">hWnd</span><span class="p">,</span><span class="w"> </span><span class="n">SW_HIDE</span><span class="p">);</span> <span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span> <span class="w"> </span><span class="p">}</span> <span class="w"> </span><span class="k">else</span> <span class="w"> </span><span class="p">{</span> <span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="n">g_hPrefDlg</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span> <span class="w"> </span><span class="p">{</span> <span class="w"> </span><span class="n">DestroyWindow</span><span class="p">(</span><span class="n">g_hPrefDlg</span><span class="p">);</span> <span class="w"> </span><span class="p">}</span> <span class="w"> </span><span class="n">StopBlink</span><span class="p">(</span><span class="n">hWnd</span><span class="p">,</span><span class="w"> </span><span class="mi">1</span><span class="p">,</span><span class="w"> </span><span class="n">g_hIcons</span><span class="p">[</span><span class="mi">0</span><span class="p">]);</span> <span class="w"> </span> <span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="n">sdAlertNum</span><span class="p">())</span> <span class="w"> </span><span class="p">{</span> <span class="w"> </span><span class="n">sdCloseAlerts</span><span class="p">();</span> <span class="w"> </span><span class="n">HoldClose</span><span class="p">();</span> <span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span> <span class="w"> </span><span class="p">}</span> <span class="w"> </span><span class="p">}</span> <span class="w"> </span><span class="p">}</span> <span class="w"> </span><span class="k">break</span><span class="p">;</span> <span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">WM_SIZE</span><span class="p">:</span> <span class="w"> </span><span class="p">{</span> <span class="w"> </span><span class="cm">/******************************************/</span> <span class="w"> </span><span class="cm">/***** User wants to minimize HexChat, ****/</span> <span class="w"> </span><span class="cm">/***** are we allowed to go to tray? ******/</span> <span class="w"> </span><span class="cm">/******************************************/</span> <span class="w"> </span><span class="k">if</span><span class="p">((</span><span class="n">g_dwPrefs</span><span class="w"> </span><span class="o">&</span><span class="w"> </span><span class="p">(</span><span class="mi">1</span><span class="o"><<</span><span class="n">PREF_TOT</span><span class="p">))</span><span class="w"> </span><span class="o">&&</span><span class="w"> </span><span class="p">(</span><span class="n">wparam</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">SIZE_MINIMIZED</span><span class="p">))</span> <span class="w"> </span><span class="p">{</span> <span class="w"> </span><span class="cm">/*******************************************/</span> <span class="w"> </span><span class="cm">/**** to autoaway or not to autoaway... ***/</span> <span class="w"> </span><span class="cm">/*******************************************/</span> <span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="n">g_dwPrefs</span><span class="w"> </span><span class="o">&</span><span class="w"> </span><span class="p">(</span><span class="mi">1</span><span class="o"><<</span><span class="n">PREF_AOM</span><span class="p">))</span> <span class="w"> </span><span class="p">{</span> <span class="w"> </span><span class="n">hexchat_globally_away</span><span class="p">(</span><span class="n">g_szAway</span><span class="p">);</span> <span class="w"> </span><span class="p">}</span> <span class="w"> </span><span class="cm">/**************************************************/</span> <span class="w"> </span><span class="cm">/**** Win32 API call to hide the window and **/</span> <span class="w"> </span><span class="cm">/**** save the fact that its minimized for later **/</span> <span class="w"> </span><span class="cm">/**************************************************/</span> <span class="w"> </span><span class="n">g_iIsActive</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span> <span class="w"> </span><span class="n">ShowWindow</span><span class="p">(</span><span class="n">hWnd</span><span class="p">,</span><span class="w"> </span><span class="n">SW_HIDE</span><span class="p">);</span> <span class="w"> </span><span class="p">}</span> <span class="w"> </span><span class="p">}</span> <span class="w"> </span><span class="k">break</span><span class="p">;</span> <span class="w"> </span><span class="cm">/**********************************/</span> <span class="w"> </span><span class="cm">/*** user clicked the tray icon ***/</span> <span class="w"> </span><span class="cm">/**********************************/</span> <span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">WM_TRAYMSG</span><span class="p">:</span> <span class="w"> </span><span class="p">{</span> <span class="w"> </span><span class="k">switch</span><span class="p">(</span><span class="n">lparam</span><span class="p">)</span> <span class="w"> </span><span class="p">{</span> <span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">WM_LBUTTONDOWN</span><span class="p">:</span> <span class="w"> </span><span class="p">{</span> <span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="o">!</span><span class="n">g_iIsActive</span><span class="p">)</span> <span class="w"> </span><span class="p">{</span> <span class="w"> </span><span class="cm">/*********************************************************/</span> <span class="w"> </span><span class="cm">/*** 0: its hiden, restore it and show it, if autoaway ***/</span> <span class="w"> </span><span class="cm">/*** is on, set us as back ***/</span> <span class="w"> </span><span class="cm">/*********************************************************/</span> <span class="w"> </span><span class="n">SendMessage</span><span class="p">(</span><span class="n">hWnd</span><span class="p">,</span><span class="w"> </span><span class="n">WM_SYSCOMMAND</span><span class="p">,</span><span class="w"> </span><span class="n">SC_RESTORE</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> <span class="w"> </span><span class="n">SetForegroundWindow</span><span class="p">(</span><span class="n">hWnd</span><span class="p">);</span> <span class="w"> </span><span class="n">g_iIsActive</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">1</span><span class="p">;</span> <span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="n">g_dwPrefs</span><span class="w"> </span><span class="o">&</span><span class="w"> </span><span class="p">(</span><span class="mi">1</span><span class="o"><<</span><span class="n">PREF_AOM</span><span class="p">))</span> <span class="w"> </span><span class="p">{</span> <span class="w"> </span><span class="n">hexchat_globally_back</span><span class="p">();</span> <span class="w"> </span><span class="p">}</span> <span class="w"> </span><span class="p">}</span> <span class="w"> </span><span class="k">else</span> <span class="w"> </span><span class="p">{</span> <span class="w"> </span><span class="n">SendMessage</span><span class="p">(</span><span class="n">hWnd</span><span class="p">,</span><span class="w"> </span><span class="n">WM_SYSCOMMAND</span><span class="p">,</span><span class="w"> </span><span class="n">SC_MINIMIZE</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> <span class="w"> </span><span class="p">}</span> <span class="w"> </span><span class="p">}</span> <span class="w"> </span><span class="k">break</span><span class="p">;</span> <span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">WM_RBUTTONDOWN</span><span class="p">:</span> <span class="w"> </span><span class="p">{</span> <span class="w"> </span><span class="cm">/******************************************/</span> <span class="w"> </span><span class="cm">/*** user wants to see the menu find out **/</span> <span class="w"> </span><span class="cm">/*** where the mouse is and show it **/</span> <span class="w"> </span><span class="cm">/******************************************/</span> <span class="w"> </span><span class="n">POINT</span><span class="w"> </span><span class="n">pt</span><span class="p">;</span> <span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">iRet</span><span class="p">;</span> <span class="w"> </span><span class="n">GetCursorPos</span><span class="p">(</span><span class="o">&</span><span class="n">pt</span><span class="p">);</span> <span class="w"> </span><span class="n">SetForegroundWindow</span><span class="p">(</span><span class="n">hWnd</span><span class="p">);</span> <span class="w"> </span><span class="n">ModifyMenu</span><span class="p">(</span><span class="n">g_hTrayMenu</span><span class="p">,</span><span class="w"> </span><span class="mi">2</span><span class="p">,</span><span class="w"> </span><span class="p">(</span><span class="n">MF_POPUP</span><span class="w"> </span><span class="o">|</span><span class="w"> </span><span class="n">MF_BYPOSITION</span><span class="p">),</span><span class="w"> </span><span class="p">(</span><span class="n">UINT</span><span class="p">)</span><span class="n">setServerMenu</span><span class="p">(),</span><span class="w"> </span><span class="n">_T</span><span class="p">(</span><span class="s">"Away"</span><span class="p">));</span> <span class="w"> </span><span class="n">Sleep</span><span class="p">(</span><span class="mi">175</span><span class="p">);</span> <span class="w"> </span><span class="n">iRet</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">TrackPopupMenuEx</span><span class="p">(</span><span class="n">g_hTrayMenu</span><span class="p">,</span><span class="w"> </span><span class="p">(</span><span class="n">TPM_RETURNCMD</span><span class="w"> </span><span class="o">|</span><span class="w"> </span><span class="n">TPM_LEFTALIGN</span><span class="p">),</span><span class="w"> </span><span class="n">pt</span><span class="p">.</span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="n">pt</span><span class="p">.</span><span class="n">y</span><span class="p">,</span><span class="w"> </span><span class="n">hWnd</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> <span class="w"> </span><span class="cm">/***********************************/</span> <span class="w"> </span><span class="cm">/*** nRet is the users selection, **/</span> <span class="w"> </span><span class="cm">/*** process it **/</span> <span class="w"> </span><span class="cm">/***********************************/</span> <span class="w"> </span><span class="n">sdTrayProc</span><span class="p">(</span><span class="n">hWnd</span><span class="p">,</span><span class="w"> </span><span class="n">iRet</span><span class="p">);</span> <span class="w"> </span><span class="p">}</span> <span class="w"> </span><span class="k">break</span><span class="p">;</span> <span class="w"> </span><span class="p">}</span> <span class="w"> </span><span class="p">}</span> <span class="w"> </span><span class="k">break</span><span class="p">;</span> <span class="w"> </span><span class="k">default</span><span class="o">:</span> <span class="w"> </span><span class="p">{</span> <span class="w"> </span><span class="cm">/*****************************************************/</span> <span class="w"> </span><span class="cm">/*** the taskbar has been restarted, re-add our icon */</span> <span class="w"> </span><span class="cm">/*****************************************************/</span> <span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="n">msg</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">RegisterWindowMessage</span><span class="p">(</span><span class="n">_T</span><span class="p">(</span><span class="s">"TaskbarCreated"</span><span class="p">)))</span> <span class="w"> </span><span class="p">{</span> <span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="n">szVersion</span><span class="p">[</span><span class="mi">64</span><span class="p">];</span> <span class="w"> </span><span class="n">_snprintf</span><span class="p">(</span><span class="n">szVersion</span><span class="p">,</span><span class="w"> </span><span class="mi">64</span><span class="p">,</span><span class="w"> </span><span class="s">"HexChat [%s]"</span><span class="p">,</span><span class="w"> </span><span class="n">hexchat_get_info</span><span class="p">(</span><span class="n">ph</span><span class="p">,</span><span class="w"> </span><span class="s">"version"</span><span class="p">));</span> <span class="w"> </span><span class="n">AddIcon</span><span class="p">(</span><span class="n">g_hXchatWnd</span><span class="p">,</span><span class="w"> </span><span class="mi">1</span><span class="p">,</span><span class="w"> </span><span class="n">g_hIcons</span><span class="p">[</span><span class="mi">0</span><span class="p">],</span><span class="w"> </span><span class="n">szVersion</span><span class="p">,</span><span class="w"> </span><span class="p">(</span><span class="n">NIF_ICON</span><span class="w"> </span><span class="o">|</span><span class="w"> </span><span class="n">NIF_MESSAGE</span><span class="w"> </span><span class="o">|</span><span class="w"> </span><span class="n">NIF_TIP</span><span class="p">),</span><span class="w"> </span><span class="n">WM_TRAYMSG</span><span class="p">);</span> <span class="w"> </span><span class="p">}</span> <span class="w"> </span><span class="p">}</span> <span class="w"> </span><span class="k">break</span><span class="p">;</span> <span class="w"> </span><span class="p">}</span> <span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">CallWindowProc</span><span class="p">(</span><span class="n">g_hOldProc</span><span class="p">,</span><span class="w"> </span><span class="n">hWnd</span><span class="p">,</span><span class="w"> </span><span class="n">msg</span><span class="p">,</span><span class="w"> </span><span class="n">wparam</span><span class="p">,</span><span class="w"> </span><span class="n">lparam</span><span class="p">);</span> <span class="p">}</span> <span class="cm">/****************************************************/</span> <span class="cm">/*** process messages from the tray menu ************/</span> <span class="cm">/****************************************************/</span> <span class="n">LRESULT</span><span class="w"> </span><span class="n">CALLBACK</span><span class="w"> </span><span class="n">sdTrayProc</span><span class="p">(</span><span class="n">HWND</span><span class="w"> </span><span class="n">hWnd</span><span class="p">,</span><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">msg</span><span class="p">)</span> <span class="p">{</span> <span class="w"> </span><span class="k">switch</span><span class="p">(</span><span class="n">msg</span><span class="p">)</span> <span class="w"> </span><span class="p">{</span> <span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">ACT_EXIT</span><span class="p">:</span> <span class="w"> </span><span class="p">{</span> <span class="w"> </span><span class="n">g_bCanQuit</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">true</span><span class="p">;</span> <span class="w"> </span><span class="n">PostMessage</span><span class="p">(</span><span class="n">hWnd</span><span class="p">,</span><span class="w"> </span><span class="n">WM_CLOSE</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> <span class="w"> </span><span class="p">}</span> <span class="w"> </span><span class="k">break</span><span class="p">;</span> <span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">ACT_RESTORE</span><span class="p">:</span> <span class="w"> </span><span class="p">{</span> <span class="w"> </span><span class="cm">/*************************************************/</span> <span class="w"> </span><span class="cm">/** user wants us to restore the HexChat window **/</span> <span class="w"> </span><span class="cm">/** and of autoaway is on, set as back ******** **/</span> <span class="w"> </span><span class="cm">/*************************************************/</span> <span class="w"> </span><span class="n">SendMessage</span><span class="p">(</span><span class="n">g_hXchatWnd</span><span class="p">,</span><span class="w"> </span><span class="n">WM_SYSCOMMAND</span><span class="p">,</span><span class="w"> </span><span class="n">SC_RESTORE</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> <span class="w"> </span><span class="n">SetForegroundWindow</span><span class="p">(</span><span class="n">hWnd</span><span class="p">);</span> <span class="w"> </span> <span class="w"> </span><span class="k">if</span><span class="p">((</span><span class="o">!</span><span class="n">g_iIsActive</span><span class="p">)</span><span class="w"> </span><span class="o">&&</span><span class="w"> </span><span class="p">(</span><span class="n">g_dwPrefs</span><span class="w"> </span><span class="o">&</span><span class="w"> </span><span class="p">(</span><span class="mi">1</span><span class="o"><<</span><span class="n">PREF_AOM</span><span class="p">)))</span> <span class="w"> </span><span class="p">{</span> <span class="w"> </span><span class="n">hexchat_globally_back</span><span class="p">();</span> <span class="w"> </span><span class="n">g_iIsActive</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">1</span><span class="p">;</span> <span class="w"> </span><span class="p">}</span> <span class="w"> </span><span class="p">}</span> <span class="w"> </span><span class="k">break</span><span class="p">;</span> <span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">ACT_SETTINGS</span><span class="p">:</span> <span class="w"> </span><span class="p">{</span> <span class="w"> </span><span class="n">ShowWindow</span><span class="p">(</span><span class="n">g_hPrefDlg</span><span class="p">,</span><span class="w"> </span><span class="n">SW_SHOW</span><span class="p">);</span> <span class="w"> </span><span class="p">}</span> <span class="w"> </span><span class="k">break</span><span class="p">;</span> <span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">ACT_AWAY</span><span class="p">:</span> <span class="w"> </span><span class="p">{</span> <span class="w"> </span><span class="n">hexchat_globally_away</span><span class="p">(</span><span class="n">g_szAway</span><span class="p">);</span> <span class="w"> </span><span class="p">}</span> <span class="w"> </span><span class="k">break</span><span class="p">;</span> <span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">ACT_BACK</span><span class="p">:</span> <span class="w"> </span><span class="p">{</span> <span class="w"> </span><span class="n">hexchat_globally_back</span><span class="p">();</span> <span class="w"> </span><span class="p">}</span> <span class="w"> </span><span class="k">break</span><span class="p">;</span> <span class="w"> </span><span class="k">default</span><span class="o">:</span> <span class="w"> </span><span class="p">{</span> <span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="n">msg</span><span class="w"> </span><span class="o">></span><span class="w"> </span><span class="mi">0</span><span class="p">)</span> <span class="w"> </span><span class="p">{</span> <span class="w"> </span><span class="n">hexchat_set_context</span><span class="p">(</span><span class="n">ph</span><span class="p">,</span><span class="w"> </span><span class="n">hexchat_find_server</span><span class="p">(</span><span class="n">msg</span><span class="mi">-1</span><span class="p">));</span> <span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="o">!</span><span class="n">hexchat_get_info</span><span class="p">(</span><span class="n">ph</span><span class="p">,</span><span class="w"> </span><span class="s">"away"</span><span class="p">))</span> <span class="w"> </span><span class="p">{</span> <span class="w"> </span><span class="n">hexchat_away</span><span class="p">(</span><span class="n">g_szAway</span><span class="p">);</span> <span class="w"> </span><span class="p">}</span> <span class="w"> </span><span class="k">else</span> <span class="w"> </span><span class="p">{</span> <span class="w"> </span><span class="n">hexchat_back</span><span class="p">();</span> <span class="w"> </span><span class="p">}</span> <span class="w"> </span><span class="p">}</span> <span class="w"> </span><span class="p">}</span> <span class="w"> </span><span class="k">break</span><span class="p">;</span> <span class="w"> </span><span class="p">}</span> <span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="mi">1</span><span class="p">;</span> <span class="p">}</span> <span class="kt">int</span><span class="w"> </span><span class="n">CALLBACK</span><span class="w"> </span><span class="n">PrefProc</span><span class="p">(</span><span class="n">HWND</span><span class="w"> </span><span class="n">hWnd</span><span class="p">,</span><span class="w"> </span><span class="n">UINT</span><span class="w"> </span><span class="n">msg</span><span class="p">,</span><span class="w"> </span><span class="n">WPARAM</span><span class="w"> </span><span class="n">wparam</span><span class="p">,</span><span class="w"> </span><span class="n">LPARAM</span><span class="w"> </span><span class="n">lparam</span><span class="p">)</span> <span class="p">{</span> <span class="w"> </span><span class="k">switch</span><span class="p">(</span><span class="n">msg</span><span class="p">)</span> <span class="w"> </span><span class="p">{</span> <span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">WM_INITDIALOG</span><span class="p">:</span> <span class="w"> </span><span class="p">{</span> <span class="w"> </span><span class="n">TCITEM</span><span class="w"> </span><span class="n">tci1</span><span class="p">;</span> <span class="w"> </span><span class="n">TCITEM</span><span class="w"> </span><span class="n">tci2</span><span class="p">;</span> <span class="w"> </span><span class="n">TCITEM</span><span class="w"> </span><span class="n">tci3</span><span class="p">;</span> <span class="w"> </span><span class="n">TCITEM</span><span class="w"> </span><span class="n">tci4</span><span class="p">;</span> <span class="w"> </span><span class="n">tci1</span><span class="p">.</span><span class="n">mask</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">TCIF_TEXT</span><span class="p">;</span> <span class="w"> </span><span class="n">tci1</span><span class="p">.</span><span class="n">pszText</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">_T</span><span class="p">(</span><span class="s">"Settings"</span><span class="p">);</span> <span class="w"> </span><span class="n">tci1</span><span class="p">.</span><span class="n">cchTextMax</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">strlen</span><span class="p">(</span><span class="s">"Settings"</span><span class="p">);</span> <span class="w"> </span><span class="n">SendDlgItemMessage</span><span class="p">(</span><span class="n">hWnd</span><span class="p">,</span><span class="w"> </span><span class="n">IDC_TAB_CONTROL</span><span class="p">,</span><span class="w"> </span><span class="n">TCM_INSERTITEM</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="p">(</span><span class="n">LPARAM</span><span class="p">)</span><span class="o">&</span><span class="n">tci1</span><span class="p">);</span> <span class="w"> </span><span class="n">tci2</span><span class="p">.</span><span class="n">mask</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">TCIF_TEXT</span><span class="p">;</span> <span class="w"> </span><span class="n">tci2</span><span class="p">.</span><span class="n">pszText</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">_T</span><span class="p">(</span><span class="s">"Alerts"</span><span class="p">);</span> <span class="w"> </span><span class="n">tci2</span><span class="p">.</span><span class="n">cchTextMax</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">strlen</span><span class="p">(</span><span class="s">"Alerts"</span><span class="p">);</span> <span class="w"> </span><span class="n">SendDlgItemMessage</span><span class="p">(</span><span class="n">hWnd</span><span class="p">,</span><span class="w"> </span><span class="n">IDC_TAB_CONTROL</span><span class="p">,</span><span class="w"> </span><span class="n">TCM_INSERTITEM</span><span class="p">,</span><span class="w"> </span><span class="mi">1</span><span class="p">,</span><span class="w"> </span><span class="p">(</span><span class="n">LPARAM</span><span class="p">)</span><span class="o">&</span><span class="n">tci2</span><span class="p">);</span> <span class="w"> </span><span class="n">tci3</span><span class="p">.</span><span class="n">mask</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">TCIF_TEXT</span><span class="p">;</span> <span class="w"> </span><span class="n">tci3</span><span class="p">.</span><span class="n">pszText</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">_T</span><span class="p">(</span><span class="s">"Events"</span><span class="p">);</span> <span class="w"> </span><span class="n">tci3</span><span class="p">.</span><span class="n">cchTextMax</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">strlen</span><span class="p">(</span><span class="s">"Events"</span><span class="p">);</span> <span class="w"> </span><span class="n">SendDlgItemMessage</span><span class="p">(</span><span class="n">hWnd</span><span class="p">,</span><span class="w"> </span><span class="n">IDC_TAB_CONTROL</span><span class="p">,</span><span class="w"> </span><span class="n">TCM_INSERTITEM</span><span class="p">,</span><span class="w"> </span><span class="mi">2</span><span class="p">,</span><span class="w"> </span><span class="p">(</span><span class="n">LPARAM</span><span class="p">)</span><span class="o">&</span><span class="n">tci3</span><span class="p">);</span> <span class="w"> </span><span class="n">tci4</span><span class="p">.</span><span class="n">mask</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">TCIF_TEXT</span><span class="p">;</span> <span class="w"> </span><span class="n">tci4</span><span class="p">.</span><span class="n">pszText</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">_T</span><span class="p">(</span><span class="s">"About"</span><span class="p">);</span> <span class="w"> </span><span class="n">tci4</span><span class="p">.</span><span class="n">cchTextMax</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">strlen</span><span class="p">(</span><span class="s">"About"</span><span class="p">);</span> <span class="w"> </span><span class="n">SendDlgItemMessage</span><span class="p">(</span><span class="n">hWnd</span><span class="p">,</span><span class="w"> </span><span class="n">IDC_TAB_CONTROL</span><span class="p">,</span><span class="w"> </span><span class="n">TCM_INSERTITEM</span><span class="p">,</span><span class="w"> </span><span class="mi">3</span><span class="p">,</span><span class="w"> </span><span class="p">(</span><span class="n">LPARAM</span><span class="p">)</span><span class="o">&</span><span class="n">tci4</span><span class="p">);</span> <span class="w"> </span><span class="cm">/***********************************************************************************/</span> <span class="w"> </span><span class="cm">/***********************************************************************************/</span> <span class="w"> </span><span class="cm">/***********************************************************************************/</span> <span class="w"> </span><span class="n">g_hPrefTabSettings</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">CreateDialog</span><span class="p">((</span><span class="n">HINSTANCE</span><span class="p">)</span><span class="n">g_hInstance</span><span class="p">,</span> <span class="w"> </span><span class="n">MAKEINTRESOURCE</span><span class="p">(</span><span class="n">IDD_SETTINGS</span><span class="p">),</span> <span class="w"> </span><span class="n">hWnd</span><span class="p">,</span><span class="w"> </span> <span class="w"> </span><span class="p">(</span><span class="n">DLGPROC</span><span class="p">)</span><span class="n">SettingsProc</span><span class="p">);</span> <span class="w"> </span><span class="n">SetDialog</span><span class="p">(</span><span class="n">g_hPrefTabSettings</span><span class="p">,</span><span class="w"> </span><span class="n">IDD_SETTINGS</span><span class="p">);</span> <span class="w"> </span><span class="n">g_hPrefTabAlerts</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">CreateDialog</span><span class="p">((</span><span class="n">HINSTANCE</span><span class="p">)</span><span class="n">g_hInstance</span><span class="p">,</span> <span class="w"> </span><span class="n">MAKEINTRESOURCE</span><span class="p">(</span><span class="n">IDD_ALERTS</span><span class="p">),</span> <span class="w"> </span><span class="n">hWnd</span><span class="p">,</span> <span class="w"> </span><span class="p">(</span><span class="n">DLGPROC</span><span class="p">)</span><span class="n">AlertsProc</span><span class="p">);</span> <span class="w"> </span><span class="n">SetDialog</span><span class="p">(</span><span class="n">g_hPrefTabAlerts</span><span class="p">,</span><span class="w"> </span><span class="n">IDD_ALERTS</span><span class="p">);</span> <span class="w"> </span><span class="n">g_hPrefTabEvents</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">CreateDialog</span><span class="p">((</span><span class="n">HINSTANCE</span><span class="p">)</span><span class="n">g_hInstance</span><span class="p">,</span> <span class="w"> </span><span class="n">MAKEINTRESOURCE</span><span class="p">(</span><span class="n">IDD_EVENTS</span><span class="p">),</span> <span class="w"> </span><span class="n">hWnd</span><span class="p">,</span><span class="w"> </span> <span class="w"> </span><span class="p">(</span><span class="n">DLGPROC</span><span class="p">)</span><span class="n">EventsProc</span><span class="p">);</span> <span class="w"> </span><span class="n">SetDialog</span><span class="p">(</span><span class="n">g_hPrefTabEvents</span><span class="p">,</span><span class="w"> </span><span class="n">IDD_EVENTS</span><span class="p">);</span> <span class="w"> </span><span class="n">g_hPrefTabAbout</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">CreateDialog</span><span class="p">((</span><span class="n">HINSTANCE</span><span class="p">)</span><span class="n">g_hInstance</span><span class="p">,</span> <span class="w"> </span><span class="n">MAKEINTRESOURCE</span><span class="p">(</span><span class="n">IDD_ABOUT</span><span class="p">),</span> <span class="w"> </span><span class="n">hWnd</span><span class="p">,</span> <span class="w"> </span><span class="p">(</span><span class="n">DLGPROC</span><span class="p">)</span><span class="n">AboutProc</span><span class="p">);</span> <span class="w"> </span><span class="p">}</span> <span class="w"> </span><span class="k">break</span><span class="p">;</span> <span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">WM_SHOWWINDOW</span><span class="p">:</span> <span class="w"> </span><span class="p">{</span> <span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="n">wparam</span><span class="p">)</span> <span class="w"> </span><span class="p">{</span> <span class="w"> </span><span class="n">SendDlgItemMessage</span><span class="p">(</span><span class="n">hWnd</span><span class="p">,</span><span class="w"> </span><span class="n">IDC_TAB_CONTROL</span><span class="p">,</span><span class="w"> </span><span class="n">TCM_SETCURSEL</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> <span class="w"> </span><span class="n">ShowWindow</span><span class="p">(</span><span class="n">g_hPrefTabSettings</span><span class="p">,</span><span class="w"> </span><span class="n">SW_SHOW</span><span class="p">);</span> <span class="w"> </span><span class="n">ShowWindow</span><span class="p">(</span><span class="n">g_hPrefTabAlerts</span><span class="p">,</span><span class="w"> </span><span class="n">SW_HIDE</span><span class="p">);</span> <span class="w"> </span><span class="n">ShowWindow</span><span class="p">(</span><span class="n">g_hPrefTabEvents</span><span class="p">,</span><span class="w"> </span><span class="n">SW_HIDE</span><span class="p">);</span> <span class="w"> </span><span class="n">ShowWindow</span><span class="p">(</span><span class="n">g_hPrefTabAbout</span><span class="p">,</span><span class="w"> </span><span class="n">SW_HIDE</span><span class="p">);</span> <span class="w"> </span><span class="p">}</span> <span class="w"> </span><span class="p">}</span> <span class="w"> </span><span class="k">break</span><span class="p">;</span> <span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">WM_NOTIFY</span><span class="p">:</span> <span class="w"> </span><span class="p">{</span> <span class="w"> </span><span class="n">NMHDR</span><span class="w"> </span><span class="o">*</span><span class="n">pData</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="n">NMHDR</span><span class="w"> </span><span class="o">*</span><span class="p">)</span><span class="n">lparam</span><span class="p">;</span> <span class="w"> </span><span class="k">switch</span><span class="p">(</span><span class="n">pData</span><span class="o">-></span><span class="n">code</span><span class="p">)</span> <span class="w"> </span><span class="p">{</span> <span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">TCN_SELCHANGE</span><span class="p">:</span> <span class="w"> </span><span class="p">{</span> <span class="w"> </span><span class="k">switch</span><span class="p">(</span><span class="n">SendDlgItemMessage</span><span class="p">(</span><span class="n">hWnd</span><span class="p">,</span><span class="w"> </span><span class="n">IDC_TAB_CONTROL</span><span class="p">,</span><span class="w"> </span><span class="n">TCM_GETCURSEL</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">))</span> <span class="w"> </span><span class="p">{</span> <span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="mi">0</span><span class="p">:</span> <span class="w"> </span><span class="p">{</span> <span class="w"> </span><span class="n">ShowWindow</span><span class="p">(</span><span class="n">g_hPrefTabSettings</span><span class="p">,</span><span class="w"> </span><span class="n">SW_SHOW</span><span class="p">);</span> <span class="w"> </span><span class="n">ShowWindow</span><span class="p">(</span><span class="n">g_hPrefTabAlerts</span><span class="p">,</span><span class="w"> </span><span class="n">SW_HIDE</span><span class="p">);</span> <span class="w"> </span><span class="n">ShowWindow</span><span class="p">(</span><span class="n">g_hPrefTabEvents</span><span class="p">,</span><span class="w"> </span><span class="n">SW_HIDE</span><span class="p">);</span> <span class="w"> </span><span class="n">ShowWindow</span><span class="p">(</span><span class="n">g_hPrefTabAbout</span><span class="p">,</span><span class="w"> </span><span class="n">SW_HIDE</span><span class="p">);</span> <span class="w"> </span><span class="p">}</span> <span class="w"> </span><span class="k">break</span><span class="p">;</span> <span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="mi">1</span><span class="p">:</span> <span class="w"> </span><span class="p">{</span> <span class="w"> </span><span class="n">ShowWindow</span><span class="p">(</span><span class="n">g_hPrefTabSettings</span><span class="p">,</span><span class="w"> </span><span class="n">SW_HIDE</span><span class="p">);</span> <span class="w"> </span><span class="n">ShowWindow</span><span class="p">(</span><span class="n">g_hPrefTabAlerts</span><span class="p">,</span><span class="w"> </span><span class="n">SW_SHOW</span><span class="p">);</span> <span class="w"> </span><span class="n">ShowWindow</span><span class="p">(</span><span class="n">g_hPrefTabEvents</span><span class="p">,</span><span class="w"> </span><span class="n">SW_HIDE</span><span class="p">);</span> <span class="w"> </span><span class="n">ShowWindow</span><span class="p">(</span><span class="n">g_hPrefTabAbout</span><span class="p">,</span><span class="w"> </span><span class="n">SW_HIDE</span><span class="p">);</span> <span class="w"> </span><span class="p">}</span> <span class="w"> </span><span class="k">break</span><span class="p">;</span> <span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="mi">2</span><span class="p">:</span> <span class="w"> </span><span class="p">{</span> <span class="w"> </span><span class="n">ShowWindow</span><span class="p">(</span><span class="n">g_hPrefTabSettings</span><span class="p">,</span><span class="w"> </span><span class="n">SW_HIDE</span><span class="p">);</span> <span class="w"> </span><span class="n">ShowWindow</span><span class="p">(</span><span class="n">g_hPrefTabAlerts</span><span class="p">,</span><span class="w"> </span><span class="n">SW_HIDE</span><span class="p">);</span> <span class="w"> </span><span class="n">ShowWindow</span><span class="p">(</span><span class="n">g_hPrefTabEvents</span><span class="p">,</span><span class="w"> </span><span class="n">SW_SHOW</span><span class="p">);</span> <span class="w"> </span><span class="n">ShowWindow</span><span class="p">(</span><span class="n">g_hPrefTabAbout</span><span class="p">,</span><span class="w"> </span><span class="n">SW_HIDE</span><span class="p">);</span> <span class="w"> </span><span class="p">}</span> <span class="w"> </span><span class="k">break</span><span class="p">;</span> <span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="mi">3</span><span class="p">:</span> <span class="w"> </span><span class="p">{</span> <span class="w"> </span><span class="n">ShowWindow</span><span class="p">(</span><span class="n">g_hPrefTabSettings</span><span class="p">,</span><span class="w"> </span><span class="n">SW_HIDE</span><span class="p">);</span> <span class="w"> </span><span class="n">ShowWindow</span><span class="p">(</span><span class="n">g_hPrefTabAlerts</span><span class="p">,</span><span class="w"> </span><span class="n">SW_HIDE</span><span class="p">);</span> <span class="w"> </span><span class="n">ShowWindow</span><span class="p">(</span><span class="n">g_hPrefTabEvents</span><span class="p">,</span><span class="w"> </span><span class="n">SW_HIDE</span><span class="p">);</span> <span class="w"> </span><span class="n">ShowWindow</span><span class="p">(</span><span class="n">g_hPrefTabAbout</span><span class="p">,</span><span class="w"> </span><span class="n">SW_SHOW</span><span class="p">);</span> <span class="w"> </span><span class="p">}</span> <span class="w"> </span><span class="k">break</span><span class="p">;</span> <span class="w"> </span><span class="p">}</span> <span class="w"> </span><span class="p">}</span> <span class="w"> </span><span class="k">break</span><span class="p">;</span> <span class="w"> </span><span class="p">}</span> <span class="w"> </span><span class="p">}</span> <span class="w"> </span><span class="k">break</span><span class="p">;</span> <span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">WM_CLOSE</span><span class="p">:</span> <span class="w"> </span><span class="p">{</span> <span class="w"> </span><span class="n">ShowWindow</span><span class="p">(</span><span class="n">g_hPrefTabEvents</span><span class="p">,</span><span class="w"> </span><span class="n">SW_HIDE</span><span class="p">);</span> <span class="w"> </span><span class="n">ShowWindow</span><span class="p">(</span><span class="n">g_hPrefTabSettings</span><span class="p">,</span><span class="w"> </span><span class="n">SW_HIDE</span><span class="p">);</span> <span class="w"> </span><span class="n">ShowWindow</span><span class="p">(</span><span class="n">g_hPrefTabAlerts</span><span class="p">,</span><span class="w"> </span><span class="n">SW_HIDE</span><span class="p">);</span> <span class="w"> </span><span class="n">ShowWindow</span><span class="p">(</span><span class="n">g_hPrefTabAbout</span><span class="p">,</span><span class="w"> </span><span class="n">SW_HIDE</span><span class="p">);</span> <span class="w"> </span><span class="n">ShowWindow</span><span class="p">(</span><span class="n">hWnd</span><span class="p">,</span><span class="w"> </span><span class="n">SW_HIDE</span><span class="p">);</span> <span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span> <span class="w"> </span><span class="p">}</span> <span class="w"> </span><span class="k">break</span><span class="p">;</span> <span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">WM_COMMAND</span><span class="p">:</span> <span class="w"> </span><span class="p">{</span> <span class="w"> </span><span class="k">switch</span><span class="p">(</span><span class="n">wparam</span><span class="p">)</span> <span class="w"> </span><span class="p">{</span> <span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">IDC_PREF_OK</span><span class="p">:</span> <span class="w"> </span><span class="p">{</span> <span class="w"> </span><span class="n">CheckPrefs</span><span class="p">(</span><span class="n">g_hPrefTabEvents</span><span class="p">,</span><span class="w"> </span><span class="n">IDD_EVENTS</span><span class="p">);</span> <span class="w"> </span><span class="n">CheckPrefs</span><span class="p">(</span><span class="n">g_hPrefTabSettings</span><span class="p">,</span><span class="w"> </span><span class="n">IDD_SETTINGS</span><span class="p">);</span> <span class="w"> </span><span class="n">CheckPrefs</span><span class="p">(</span><span class="n">g_hPrefTabAlerts</span><span class="p">,</span><span class="w"> </span><span class="n">IDD_ALERTS</span><span class="p">);</span> <span class="w"> </span><span class="n">SavePrefs</span><span class="p">(</span><span class="mi">0</span><span class="p">);</span> <span class="w"> </span><span class="n">ShowWindow</span><span class="p">(</span><span class="n">g_hPrefTabEvents</span><span class="p">,</span><span class="w"> </span><span class="n">SW_HIDE</span><span class="p">);</span> <span class="w"> </span><span class="n">ShowWindow</span><span class="p">(</span><span class="n">g_hPrefTabSettings</span><span class="p">,</span><span class="w"> </span><span class="n">SW_HIDE</span><span class="p">);</span> <span class="w"> </span><span class="n">ShowWindow</span><span class="p">(</span><span class="n">g_hPrefTabAlerts</span><span class="p">,</span><span class="w"> </span><span class="n">SW_HIDE</span><span class="p">);</span> <span class="w"> </span><span class="n">ShowWindow</span><span class="p">(</span><span class="n">g_hPrefTabAbout</span><span class="p">,</span><span class="w"> </span><span class="n">SW_HIDE</span><span class="p">);</span> <span class="w"> </span><span class="n">ShowWindow</span><span class="p">(</span><span class="n">hWnd</span><span class="p">,</span><span class="w"> </span><span class="n">SW_HIDE</span><span class="p">);</span> <span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span> <span class="w"> </span><span class="p">}</span> <span class="w"> </span><span class="k">break</span><span class="p">;</span> <span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">IDC_PREF_CANCEL</span><span class="p">:</span> <span class="w"> </span><span class="p">{</span> <span class="w"> </span><span class="n">ShowWindow</span><span class="p">(</span><span class="n">g_hPrefTabEvents</span><span class="p">,</span><span class="w"> </span><span class="n">SW_HIDE</span><span class="p">);</span> <span class="w"> </span><span class="n">ShowWindow</span><span class="p">(</span><span class="n">g_hPrefTabSettings</span><span class="p">,</span><span class="w"> </span><span class="n">SW_HIDE</span><span class="p">);</span> <span class="w"> </span><span class="n">ShowWindow</span><span class="p">(</span><span class="n">g_hPrefTabAlerts</span><span class="p">,</span><span class="w"> </span><span class="n">SW_HIDE</span><span class="p">);</span> <span class="w"> </span><span class="n">ShowWindow</span><span class="p">(</span><span class="n">g_hPrefTabAbout</span><span class="p">,</span><span class="w"> </span><span class="n">SW_HIDE</span><span class="p">);</span> <span class="w"> </span><span class="n">ShowWindow</span><span class="p">(</span><span class="n">hWnd</span><span class="p">,</span><span class="w"> </span><span class="n">SW_HIDE</span><span class="p">);</span> <span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span> <span class="w"> </span><span class="p">}</span> <span class="w"> </span><span class="k">break</span><span class="p">;</span> <span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">IDC_PREF_APPLY</span><span class="p">:</span> <span class="w"> </span><span class="p">{</span> <span class="w"> </span><span class="n">CheckPrefs</span><span class="p">(</span><span class="n">g_hPrefTabEvents</span><span class="p">,</span><span class="w"> </span><span class="n">IDD_EVENTS</span><span class="p">);</span> <span class="w"> </span><span class="n">CheckPrefs</span><span class="p">(</span><span class="n">g_hPrefTabSettings</span><span class="p">,</span><span class="w"> </span><span class="n">IDD_SETTINGS</span><span class="p">);</span> <span class="w"> </span><span class="n">CheckPrefs</span><span class="p">(</span><span class="n">g_hPrefTabAlerts</span><span class="p">,</span><span class="w"> </span><span class="n">IDD_ALERTS</span><span class="p">);</span> <span class="w"> </span><span class="n">SavePrefs</span><span class="p">(</span><span class="mi">0</span><span class="p">);</span> <span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span> <span class="w"> </span><span class="p">}</span> <span class="w"> </span><span class="k">break</span><span class="p">;</span> <span class="w"> </span><span class="p">}</span> <span class="w"> </span><span class="p">}</span> <span class="w"> </span><span class="k">break</span><span class="p">;</span> <span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">WM_DESTROY</span><span class="p">:</span> <span class="w"> </span><span class="p">{</span> <span class="w"> </span><span class="n">SendMessage</span><span class="p">(</span><span class="n">g_hPrefTabEvents</span><span class="p">,</span><span class="w"> </span><span class="n">WM_CLOSE</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> <span class="w"> </span><span class="n">SendMessage</span><span class="p">(</span><span class="n">g_hPrefTabSettings</span><span class="p">,</span><span class="w"> </span><span class="n">WM_CLOSE</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> <span class="w"> </span><span class="n">SendMessage</span><span class="p">(</span><span class="n">g_hPrefTabAbout</span><span class="p">,</span><span class="w"> </span><span class="n">WM_CLOSE</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> <span class="w"> </span><span class="n">SendMessage</span><span class="p">(</span><span class="n">g_hPrefTabAlerts</span><span class="p">,</span><span class="w"> </span><span class="n">WM_CLOSE</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> <span class="w"> </span><span class="p">}</span> <span class="w"> </span><span class="k">break</span><span class="p">;</span> <span class="w"> </span><span class="p">}</span> <span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span> <span class="p">}</span> <span class="cm">/****************************************************/</span> <span class="cm">/****************************************************/</span> <span class="cm">/****************************************************/</span> <span class="n">LRESULT</span><span class="w"> </span><span class="n">CALLBACK</span><span class="w"> </span><span class="n">AlertsProc</span><span class="p">(</span><span class="n">HWND</span><span class="w"> </span><span class="n">hWnd</span><span class="p">,</span><span class="w"> </span><span class="n">UINT</span><span class="w"> </span><span class="n">msg</span><span class="p">,</span><span class="w"> </span><span class="n">WPARAM</span><span class="w"> </span><span class="n">wparam</span><span class="p">,</span><span class="w"> </span><span class="n">LPARAM</span><span class="w"> </span><span class="n">lparam</span><span class="p">)</span> <span class="p">{</span> <span class="w"> </span><span class="k">switch</span><span class="p">(</span><span class="n">msg</span><span class="p">)</span> <span class="w"> </span><span class="p">{</span> <span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">WM_CLOSE</span><span class="p">:</span> <span class="w"> </span><span class="p">{</span> <span class="w"> </span><span class="n">DestroyWindow</span><span class="p">(</span><span class="n">hWnd</span><span class="p">);</span> <span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span> <span class="w"> </span><span class="k">break</span><span class="p">;</span> <span class="w"> </span><span class="p">}</span> <span class="w"> </span><span class="k">break</span><span class="p">;</span> <span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">WM_COMMAND</span><span class="p">:</span> <span class="w"> </span><span class="p">{</span> <span class="w"> </span><span class="k">switch</span><span class="p">(</span><span class="n">LOWORD</span><span class="p">(</span><span class="n">wparam</span><span class="p">))</span> <span class="w"> </span><span class="p">{</span> <span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">PREF_AMAE</span><span class="p">:</span> <span class="w"> </span><span class="p">{</span> <span class="w"> </span><span class="n">SetToggle</span><span class="p">(</span><span class="n">hWnd</span><span class="p">,</span><span class="w"> </span><span class="n">PREF_OSBWM</span><span class="p">,</span><span class="w"> </span><span class="n">PREF_AMAE</span><span class="p">,</span><span class="w"> </span><span class="n">TRUE</span><span class="p">);</span> <span class="w"> </span><span class="n">SetToggle</span><span class="p">(</span><span class="n">hWnd</span><span class="p">,</span><span class="w"> </span><span class="n">PREF_UWIOB</span><span class="p">,</span><span class="w"> </span><span class="n">PREF_AMAE</span><span class="p">,</span><span class="w"> </span><span class="n">TRUE</span><span class="p">);</span> <span class="w"> </span><span class="n">SetToggle</span><span class="p">(</span><span class="n">hWnd</span><span class="p">,</span><span class="w"> </span><span class="n">PREF_KAOI</span><span class="p">,</span><span class="w"> </span><span class="n">PREF_AMAE</span><span class="p">,</span><span class="w"> </span><span class="n">TRUE</span><span class="p">);</span> <span class="w"> </span> <span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="n">IsDlgButtonChecked</span><span class="p">(</span><span class="n">hWnd</span><span class="p">,</span><span class="w"> </span><span class="n">PREF_AMAE</span><span class="p">))</span> <span class="w"> </span><span class="p">{</span> <span class="w"> </span><span class="n">SetToggle</span><span class="p">(</span><span class="n">hWnd</span><span class="p">,</span><span class="w"> </span><span class="n">IDC_ALERT_HOTKEY</span><span class="p">,</span><span class="w"> </span><span class="n">PREF_UWIOB</span><span class="p">,</span><span class="w"> </span><span class="n">TRUE</span><span class="p">);</span> <span class="w"> </span><span class="n">SetToggle</span><span class="p">(</span><span class="n">hWnd</span><span class="p">,</span><span class="w"> </span><span class="n">IDC_ALERT_HOTKEY_TEXT</span><span class="p">,</span><span class="w"> </span><span class="n">PREF_UWIOB</span><span class="p">,</span><span class="w"> </span><span class="n">TRUE</span><span class="p">);</span> <span class="w"> </span><span class="n">SetToggle</span><span class="p">(</span><span class="n">hWnd</span><span class="p">,</span><span class="w"> </span><span class="n">IDC_ALERT_TIME</span><span class="p">,</span><span class="w"> </span><span class="n">PREF_KAOI</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span> <span class="w"> </span><span class="n">SetT