Simple custom buttons on the IE toolbar

zhaozj2021-02-17  58

Implementation by adding a content in the registry

CString helperie :: guid () {cstring sguid; guid gguid = {0}; if (s_ok == :: cocreateguid (& gguid)) {sguid.format ("{% 08x-% 04x-% 04x-% 02x% 02x -% 02x% 02x% 02x% 02x% 02x% 02x} ", gguid.data1, gguid.data2, gguid.data3, gguid.data4 [0], gguid.data4 [1], gguid.data4 [2], gguid .Data4 [3], gguid.data4 [4], gguid.data4 [5], gguid.data4 [6], gguid.data4 [7]);} Return sguid;}

INT Helperie :: AddieButton (LPCSTR LPDO, LPCSTR LPBUTTENTEXT, LPCSTR LPCION, LPCSTR LPHOTICON, LPCSTR LPMENUTEXT, LPCSTR LPMENUSTATUSBAR) {INT NRET = 0;

CString sKeyName; sKeyName = "Software // Microsoft // Internet Explorer // Extensions"; sKeyName = "//"; sKeyName = guid (); CRegKey reg;! If (ERROR_SUCCESS = reg.Create (HKEY_LOCAL_MACHINE, sKeyName) Return NRET;

// fixed CLSID / unclear what is MS What Dong Reg.SetValue ("{1FBA04EE-3024-11D2-8F1F-0000F87ABD16}", "CLSID"); Reg.SetValue ("Yes", "default visible" );

// Tips if (null! = Lpbuttontext) Reg.setValue (LPButtonText, "ButtonText"); Else Reg.setValue ("AddieButton", "ButtonText");

// Icon IF (NULL! = LPICON) Reg.setValue (LPICON, ICON "); Else Reg.SetValue (", 2 "," icon "); //reg.setValue ("%SystemRoot% //system32/ /user32.dll, 1 "," icon "); //reg.setValue (" c: //test.ico "," icon ");

IF (NULL! = lPhoticon) Reg.setValue (LPhoticon, "Hoticon"); Else Reg.setValue (Path () ", 1", "Hoticon"); //rg.setValue("%SystemRoot%% ot ot/ 3s //User32.dll, 2 "," hoticon ");

// Content cstring strdo = LPDO; if (strdo.isempty ()) strdo = "http://www.google.com/"; cstring strdoup = strdo; strdoup.makeupper (); if (strdoup.right (4) ==_T (". Htm") || strdoup.right (5) ==_t (". Html")) Reg.setValue (strdo, "script"); Else Reg.setValue (strdo, "exec"); // Menu if (null! = LpMenutext) Reg.setValue (LPMENUTEXT, "Menutext"); Else Reg.SetValue ("Do What You Do | & Menutext", "Menutext");

IF (null! = lpmenusbar) Reg.setValue (LPMenustatusbar, "Menustatusbar"); Else Reg.SetValue ("Do What You Do | Menustatusbar", "Menustatusbar");

Reg.close ();

Return nret = 1;}

Source code compression package (collection)

Save the following to the UUE file can be used to use WinZip to open the use _ = _ _ = _ part 001 of 001 of file helperie.zip _ = _

Begin 666 Helperie.zipm4 $ l # !! 0``` (`" J # / 2 [2% [318 @ 0` # / `` `````2 & 5l <& 5r245% fp <* u5m3v_b1a0_ @ / 1wf'j5e = & "# 83 = c = ar (, 8 $% $ @ b # -nl8f0y] @! 6c <> rqx (hr7z; me2kmj6d3j> j? 2R-me6 [/ e2kut $, o_1! 59 / 9 @ L "& i6L628 = z; wWos> _ / ^ 6! 1! M $] hn]% jr ! BN6p'6q 7a! # I8qq9r`! H" / (9 $ #! Lw?>% 3% H4Z? L83R: = 23 ^ QM ',,. 3` @ x'yoz <":, n57edb / 5tx /! $' E`ZL 1 / CQ; 1> K8 / M5]., <] L88f'` * Mm n_v] x@8.%3L-5n*UFBUY4S: IV $: p! Ckwe)], jaj; *% ikx @ 1,; $ <"! Px! X%! Kuzlpvc] f% <= w66e $ bwy; "9] 3C 9 @ 0t; e @ T /] `GD # _KM = HY: Y4! DE @ 6? K @ c $ f! Z78n <0ap1 '1 ** m * 0_bp', b! O> q '@ 66n <9zcrbig [u ^ JYX: 44B 0 @) "7 <= z,: dhm) 17; 247Yi ## (@ 56Y.% C'E! * 8 [81 6ra% @. 7du & m) JV; 9DO> # 3! & # L_, vt> 2tnl "VZVC7 % P1HGIPAA,; 0, Y.1 ") 3829) @ [j0" = @ mmb "f4L @ /" / q = w0nyaw5! 63i = b $ d1 %% Y1VLM * (=. 'Ebj - <; $ f * $ Y! 0ss5 /: bjm ' 8: Axy, &] [F8BV? $ AZJNZ <) BI5K * (1Q ^ MP (. C15W * W> YA5U / ZDB0K "OBD2O> $ L $ # yyk [/ 1fl? 2k4V: 1 ^ IV3J0 . 7nau`4nc% qfzm4 ); E _ ': A5, x7b_52? J = 1; .0 y & glo * smuhlo2' $ # mccgf6 $! Q% v ^ @ 3_? K <

* @ '- @: o = / zm2% #, EX? _ [81xs'1 (TU-6 "f (> sxc% 6m h!;" N'It /; af @ vw4hs 9t_kh ! `` "/` P`` "p``! $ AE; '! E 52 * -vwz; 4mk,> -];)! M8 ! #> Qklmf - ['nptq6x; a_; 6" @ 32 ^ _w? 7wi / (@ 3: & "68> I2N3; 9`2 (7ib` <(MHS @% - <$ YAB # B6; 9F & H3, YG,, TS" -% 3 & "% R & .a, 2pmmuzs] K4 [] & ^ / i" U & 7 / Im9Mujufu & 7] F4-3; J #; 9MV19KN4WJ6.N-C4UWG3 & OZ_A # e [IL5? N57O! 4J [N [ML <[`8>] h '] y" W; (L'4Q2 / M [C $, L`] 0YEJ% 6 $ /! 02LB) D $ .4apg * ER u% 9? Z ^ v ^ 2% 7.m (_bx & *] f $ ' URZ-_3B / NOO ^ = _ oqq / _grz_67wv? GWXXUS! 17 (IA]!.! AZ% $ [M5RJ6 -4V6_) xsv.u#e @qo ('NT / =? H1 Z2X> J $> q% / 3r # l!] M! Vk * EC (z * #, mjw: p0`; zigef / _06wy: 9bgvnl * qs ^ n_3 = &? HN>

转载请注明原文地址:https://www.9cbs.com/read-28694.html

New Post(0)