• 大小: 758KB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2021-05-07
  • 语言: C/C++
  • 标签: VC  MFC  对话框  

资源简介

给对话框添加皮肤的Demo,和相关说明。操作简单!

资源截图

代码片段和文件信息

// DemoDlg1.cpp : implementation file
//

#include “stdafx.h“
#include “SkinSharpDemo.h“
#include “DemoDlg1.h“

#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

/////////////////////////////////////////////////////////////////////////////
// CDemoDlg1 dialog


CDemoDlg1::CDemoDlg1(CWnd* pParent /*=NULL*/)
: CDialog(CDemoDlg1::IDD pParent)
{
//{{AFX_DATA_INIT(CDemoDlg1)
// NOTE: the ClassWizard will add member initialization here
//}}AFX_DATA_INIT
}


void CDemoDlg1::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CDemoDlg1)
// NOTE: the ClassWizard will add DDX and DDV calls here
//}}AFX_DATA_MAP
}


BEGIN_MESSAGE_MAP(CDemoDlg1 CDialog)
//{{AFX_MSG_MAP(CDemoDlg1)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CDemoDlg1 message handlers

BOOL CDemoDlg1::OnInitDialog() 
{
CDialog::OnInitDialog();

// TODO: Add extra initialization here

((CButton*)GetDlgItem(IDC_BUTTON5))->SetIcon(::LoadIcon(NULL IDI_INFORMATION));
((CButton*)GetDlgItem(IDC_BUTTON6))->SetBitmap(::LoadBitmap(NULL MAKEINTRESOURCE(32754)));

((CButton*)GetDlgItem(IDC_GROUPBOX1))->SetIcon(::LoadIcon(NULL IDI_INFORMATION));
((CButton*)GetDlgItem(IDC_GROUPBOX2))->SetBitmap(::LoadBitmap(NULL MAKEINTRESOURCE(32754)));

((CButton*)GetDlgItem(IDC_CHECK4))->SetIcon(::LoadIcon(NULL IDI_INFORMATION));
((CButton*)GetDlgItem(IDC_CHECK8))->SetBitmap(::LoadBitmap(NULL MAKEINTRESOURCE(32754)));


((CButton*)GetDlgItem(IDC_RADIO4))->SetIcon(::LoadIcon(NULL IDI_INFORMATION));
((CButton*)GetDlgItem(IDC_RADIO8))->SetBitmap(::LoadBitmap(NULL MAKEINTRESOURCE(32754)));

return TRUE;  // return TRUE unless you set the focus to a control
              // EXCEPTION: OCX Property Pages should return FALSE
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件      30738  2009-09-09 20:54  SkinH_VC\Bin\Aero.she

     文件       9533  2009-09-09 20:54  SkinH_VC\Bin\QQ2008.she

     文件      86528  2009-09-15 10:29  SkinH_VC\Bin\SkinH.dll

     文件      20552  2009-09-09 20:54  SkinH_VC\Bin\skinh.she

     文件      83456  2009-09-15 10:26  SkinH_VC\Bin\SkinHu.dll

     文件     331776  2009-09-09 21:04  SkinH_VC\Bin\SkinSharpDemo.exe

     目录          0  2009-09-09 22:05  SkinH_VC\Bin

     文件       1929  2009-09-09 20:54  SkinH_VC\Demo\SkinSharpDemo\DemoDlg1.cpp

     文件       1211  2009-09-09 20:54  SkinH_VC\Demo\SkinSharpDemo\DemoDlg1.h

     文件       3981  2009-09-09 20:54  SkinH_VC\Demo\SkinSharpDemo\DemoDlg2.cpp

     文件       1237  2009-09-09 20:54  SkinH_VC\Demo\SkinSharpDemo\DemoDlg2.h

     文件       4909  2009-09-09 20:54  SkinH_VC\Demo\SkinSharpDemo\DemoDlg3.cpp

     文件       1235  2009-09-09 20:54  SkinH_VC\Demo\SkinSharpDemo\DemoDlg3.h

     文件       6273  2009-09-09 20:54  SkinH_VC\Demo\SkinSharpDemo\DemoDlg4.cpp

     文件       1306  2009-09-09 20:54  SkinH_VC\Demo\SkinSharpDemo\DemoDlg4.h

     文件      10732  2009-09-09 20:54  SkinH_VC\Demo\SkinSharpDemo\DemoDlg5.cpp

     文件       1721  2009-09-09 20:54  SkinH_VC\Demo\SkinSharpDemo\DemoDlg5.h

     文件       5785  2009-09-09 20:54  SkinH_VC\Demo\SkinSharpDemo\DemoDlg6.cpp

     文件       2027  2009-09-09 20:54  SkinH_VC\Demo\SkinSharpDemo\DemoDlg6.h

     文件       3705  2009-09-09 20:54  SkinH_VC\Demo\SkinSharpDemo\ReadMe.txt

     文件     137334  2009-09-09 20:54  SkinH_VC\Demo\SkinSharpDemo\res\bitmap8.bmp

     文件        824  2009-09-09 20:54  SkinH_VC\Demo\SkinSharpDemo\res\default.bmp

     文件        822  2009-09-09 20:54  SkinH_VC\Demo\SkinSharpDemo\res\hand.bmp

     文件     137334  2009-09-09 20:54  SkinH_VC\Demo\SkinSharpDemo\res\logo.bmp

     文件        822  2009-09-09 20:54  SkinH_VC\Demo\SkinSharpDemo\res\open.bmp

     文件        822  2009-09-09 20:54  SkinH_VC\Demo\SkinSharpDemo\res\preview.bmp

     文件        822  2009-09-09 20:54  SkinH_VC\Demo\SkinSharpDemo\res\save.bmp

     文件        822  2009-09-09 20:54  SkinH_VC\Demo\SkinSharpDemo\res\saveshe.bmp

     文件        824  2009-09-09 20:54  SkinH_VC\Demo\SkinSharpDemo\res\select.bmp

     文件       1078  2009-09-09 20:54  SkinH_VC\Demo\SkinSharpDemo\res\SkinSharpDemo.ico

............此处省略26个文件信息

评论

共有 条评论