当前注册人数155278人 邮箱: 密码: 注册新用户 忘记密码
首页 C/C++/MFC C# ASP.NET VB.NET MATLAB   站内搜索 BBS讨论社区 下载代码说明/积分规则
为什么要注册?

1. 可以直接免费从本站下载代码,防止邮件发送不到您的邮箱,或登录不了国外网站

2. 可以设定关键字,当有您关心的代码收录时,邮件通知您

3. 对这里的代码进行评分和评论

4. 可以和大家一起分享你的源代码,得到更多的建议

Adding a Status Bar Pane to an Internet Explorer Window and Unmasking the Web Page Passwords in Place

在IE状态栏添加图标并执行程序显示密码输入框中的密码明文

2007年12月27日
C++/CLI, Windows, ATL, Dev
这个程序开发语言是C++,它安装之后,可以在IE状态栏上增加你的应用程序图标(它可以是XP的Theme风格),当你选择菜单中的Unmask Passwords后,网页中任何的密码输入框中的密码都会以明文方式显示出来。
 
相关知识
STDMETHODIMP CFieldManager::Invoke(DISPID dispidMember, REFIID riid, LCID lcid, 
        WORD wFlags, DISPPARAMS* pDispParams, VARIANT* pvarResult, 
        EXCEPINFO*  pExcepInfo,  UINT* puArgErr)
{
    if (!pDispParams)
        return E_INVALIDARG;

    switch (dispidMember)
    {
    case DISPID_DOWNLOADBEGIN:
        g_hIcon = LoadIcon(_Module.m_hInst, MAKEINTRESOURCE(IDI_ICON_START));
        RedrawWindow(g_hWndNewPane,NULL,NULL,RDW_INVALIDATE|RDW_UPDATENOW);
        break;
    case DISPID_DOWNLOADCOMPLETE:
        m_bPasswordsFound = FALSE;
        ShowPasswords();
        if(m_bPasswordsFound)
        {
            if(g_bUnmaskNeeded)
                g_hIcon = LoadIcon(_Module.m_hInst, MAKEINTRESOURCE(IDI_ICON_UNLOCK));
            else
                g_hIcon = LoadIcon(_Module.m_hInst, MAKEINTRESOURCE(IDI_ICON_LOCK));
        }
        else
            g_hIcon = LoadIcon(_Module.m_hInst, MAKEINTRESOURCE(IDI_ICON_START));

        RedrawWindow(g_hWndNewPane,NULL,NULL,RDW_INVALIDATE|RDW_UPDATENOW);
        break;
    default:
        break;
}
源代码原文下载:
Adding a Status Bar Pane to an Internet Explorer Window and Unmasking the Web Page Passwords in Place This article demonstrates how to add a Status Bar pane to Internet Explorer Window, and then how to use it for managing Web page password fields. This article shows how to add a status bar pane using subclassing tricks. First, find and subclass Status Bar window and create a pane window (as a STATIC control). Next, choose any existing pane, resize it for inserting a new one, and place the pane window over the existing pane where desired. A new status pane should be drawn and themed (for XP or Vista) exactly as any typical pane, and mouse clicks should be handled to prevent notifications from the native pane behind.

源码图片

从本站下载附件及源代码(1个附件,已经成功下载75次)

最值得关注的外文源代码

A More Complete DLL Injection Solution Using CreateRemoteThread
Ajax Data Grid
Customizable Tree Control with Animation Support
Transparent Cookie Encryption Via HTTP Module
评论(评论是增加积分的一个有效途径)
字数在300字内
请如实评论
本源代码共评论11次,此处显示最近7次评论! 查看所有评论

fany  2010年07月30日
很好很强大
chenyf2001  2009年10月03日
看看
ginger  2009年05月09日
很好
yjf2934  2009年05月06日
很棒啊
波波  2008年12月23日
好强哦
lianzhang  2008年11月22日
感谢
guojazz  2008年10月23日
又要积分
CopyRight (C) codesoso.com 2007-2009 All Rights Reserved   免责声明
京ICP备08011023号