基于MFC的CDHtmlDialog 工程创建及html数据交互。

本文介绍了如何在VS2010中利用MFC的CDHtmlDialog创建工程,并详细讲解了从建立工程、效果展示到html代码编写,按键事件绑定,数据交互以及页面滚动的设置全过程。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

目录

1. VS2010 建立工程如图

2. 效果展示

 3. html代码

4、绑定按键事件

 5、数据交互

6、设置页面滚动


1. VS2010 建立工程如图

2. 效果展示

 3. html代码

<style>
    .item {
        margin-bottom: 15px;
        margin-top: 30px;
    }

        .item:last-child {
            margin-bottom: 20%;
        }

        .item .item-title {
            font-size: 25px;
            margin-bottom: 1px;
            padding: 0 15px;
            font-weight: bold;
        }

        .item .group > div {
            font-size: 20px;
            display: inline-block;
            margin-left: 2%;
            margin-bottom: 15px;
            color: #333;
        }

    input {
        margin-right: 5px;
    }

        input:focus {
            outline: none;
            box-shadow: none;
        }

    .input-module {
        font-size: 30px;
        margin-left: 2%;
        height: 38px;
        line-height: 38px;
        border: 1px solid #dcdcdc;
        box-sizing: border-box;
        border-radius: 3px;
        padding: 0px 10px;
        width: 50%;
    }

    .btn {
        font-weight: bold;
        padding: 0px 60px;
        height: 60px;
        border-radius: 15px;
        font-size: 30px;
        cursor: pointer;
        color: white;
        background-color: #4e8cf2;
        border-color: transparent;
    }

    .buttons {
        position: fixed;
        left: 0;
        bottom: 0;
        background-color: white;
        border-top: 1px solid #f5f5f5;
        box-shadow: 0px 1px 5px #eee;
        width: 100%;
        padding: 22px 0;
        display: flex;
        justify-content: center;
    }

    input[type=radio] {
        width: 30px;
        height: 30px;
        vertical-align: middle;
        margin-top: -2px;
        margin-bottom: 1px;
    }

    fieldset {
        border: 1px solid #dcdcdc;
        border-radius: 3px;
    }
</style>
<html>
<head>
    <meta http-equiv="Conte
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

Ya土豆儿~

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值