static HHOOK hMsgBoxHook = NULL;
static LRESULT CALLBACK MsgBoxCBTProc(int nCode, WPARAM wParam, LPARAM lParam)
{
    switch (nCode) {
    case HCBT_ACTIVATE:
        HWND hWnd = (HWND)wParam;
        SetDlgItemText(hWnd, IDYES, "继续");
        SetDlgItemText(hWnd, IDNO, "退出");

        return 0;
    }

    return CallNextHookEx(hMsgBoxHook, nCode, wParam, lParam);
}

static int MyMsgBox(HWND hWnd, LPCTSTR lpText, LPCTSTR lpCaption, UINT uType)
{
    hMsgBoxHook = SetWindowsHookEx(WH_CBT, MsgBoxCBTProc, NULL, GetCurrentThreadId());
    int ret = MessageBox(hWnd, lpText, lpCaption, uType);
    UnhookWindowsHookEx(hMsgBoxHook);
    return ret;
}



本文链接地址: 修改Windows的MessageBox按钮文字
https://blog.qingfengju.com/index.asp?id=453

分类:Win32/C++ 查看次数:571 发布时间:2024/4/29 22:01:31

修改 C:\Windows\System32\inetsrv\config\applicationHost.config 和网站的 Web.Config

<add name="php_FastCgiModule" path="*.php" verb="*" modules="FastCgiModule" scriptProcessor="D:\Work\YSGPT\Server\PHP\php-cgi.exe" resourceType="Either" responseBufferLimit="0"/>

注意增加 responseBufferLimit="0"


修改 php.ini

output_buffering = Off


在PHP代码中启用无缓存输出

<?php
// 10 minutes
set_time_limit(10000);

header('Cache-Control: no-cache');
header('Connection: keep-alive');
header('X-Accel-Buffering: no');

// Chrome 浏览器必须先收到一些数据,才能立即显示到页面
echo str_pad(' ', 1050);
flush();
// ...



本文链接地址: IIS+PHP流式无缓存输出
https://blog.qingfengju.com/index.asp?id=452

分类:Web开发 查看次数:1668 发布时间:2024/4/17 12:12:06