zoukankan      html  css  js  c++  java
  • VC++中启用XP主题外观

    .NET Winform中,启用XP主题外观执行以下语句即可:
    Application.EnableVisualStyles();

    VC Win32项目,默认是不启用XP主题外观的,并不是每个人都喜欢简洁的Windows经典主题外观。
    启用XP主题外观,需要用资源文件。有种更简单的方式:
    头文件里加入以下语句:
    #include <CommCtrl.h>
    #pragma comment(lib, "ComCtl32.Lib")
    #pragma comment(linker, "/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='x86' publicKeyToken='6595b64144ccf1df' language='*'\"")

    在main函数最前面调用InitCommonControls函数:
    int APIENTRY _tWinMain(HINSTANCE hInstance,
                         HINSTANCE hPrevInstance,
                         LPTSTR    lpCmdLine,
                        
    int       nCmdShow)
    {
        InitCommonControls();
        MessageBox(NULL, L
    "Windows XP 主题开启.", L"Windows XP 主题", 0 );
        
    return 0;
    }

     

  • 相关阅读:
    sqlhelper类
    嵌入式的n个方向
    study vim + cscope
    mail lists
    关于我的学习
    yahoo enter linux mobile competition
    找工作啦 啦啦啦啦啦
    minicom display unsolicited codes
    并购的年代
    配置rt73无线网卡至suse10.3
  • 原文地址:https://www.cnblogs.com/MaxWoods/p/1730837.html
Copyright © 2011-2022 走看看