⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 changewallpaperdlg.cpp

📁 使用在ppc2003
💻 CPP
字号:
// ChangeWallpaperDlg.cpp : implementation file
//

#include "stdafx.h"
#include "ChangeWallpaper.h"
#include "ChangeWallpaperDlg.h"
#include <wchar.h>
#include <stdio.h>

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

/////////////////////////////////////////////////////////////////////////////
// CChangeWallpaperDlg dialog

CChangeWallpaperDlg::CChangeWallpaperDlg(CWnd* pParent /*=NULL*/)
	: CDialog(CChangeWallpaperDlg::IDD, pParent)
{
	//{{AFX_DATA_INIT(CChangeWallpaperDlg)
	m_fileurl = _T("");

	//}}AFX_DATA_INIT
	// Note that LoadIcon does not require a subsequent DestroyIcon in Win32
	m_hIcon = AfxGetApp()->LoadIcon(IDR_MAINFRAME);
}

void CChangeWallpaperDlg::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(CChangeWallpaperDlg)
	DDX_Text(pDX, IDC_EDIT1, m_fileurl);
	//}}AFX_DATA_MAP
}

BEGIN_MESSAGE_MAP(CChangeWallpaperDlg, CDialog)
	//{{AFX_MSG_MAP(CChangeWallpaperDlg)
	ON_BN_CLICKED(IDC_BTN1, OnBtn1)
	ON_BN_CLICKED(IDC_BTN2, OnBtn2)
	ON_BN_CLICKED(IDC_BTN4, OnBtn4)
	ON_BN_CLICKED(IDC_BUTTON1, OnButton1)
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CChangeWallpaperDlg message handlers

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

	// Set the icon for this dialog.  The framework does this automatically
	//  when the application's main window is not a dialog
	SetIcon(m_hIcon, TRUE);			// Set big icon
	SetIcon(m_hIcon, FALSE);		// Set small icon
	
	CenterWindow(GetDesktopWindow());	// center to the hpc screen

	// TODO: Add extra initialization here
	m_fileurl=TEXT("http://static.flickr.com/43/124081520_0c50370f21_m.jpg"); //箇砞呼

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -