- uskindemo.zip
- Bin
- Dialog.exe
- Interop.USKINCOMLib.dll
- MDI.exe
- MDINet.exe
- Media.u3
- NeeMediaPlayer.exe
- SDI.exe
- SDINet.exe
- ToolBar.exe
- USkin.dll
- Winamp.u3
- uskindemosrc.zip
- USkin.dll
- Include
- Lib
- USkin.lib
- Samples
- C#
- MFC
- Dialog
- MDI
- MFCDemo.sln
- MFCDemo.suo
- SDI
- ToolBarComboDemo
- Skins
- uskin20.zip
- uskin21.zip
- Dialog.exe
- Interop.USKINCOMLib.dll
- ketix.u3
- MDI.exe
- MDINet.exe
- Media.u3
- SDI.exe
- SDINet.exe
- Target.u3
- ToolBar.exe
- TorsionBar.u3
- USkin.dll
- USkin.lib
- X360.u3
- FUIAutoUpdate.exe
- FUIAutoUpdate.ini
- FUISkinStudio.chm
- FUISkinStudio.exe
- USkin.h
- USkin.lib
- USkinFree.lib
- App.ico
- AssemblyInfo.cs
- bin
- USkin.chm
- USkin.dll
- USkinCom.dll
- USkinFree.dll
- USkinStudio.tpl
- uskinbuilder.zip
- USkinDemoBin.zip
- Dialog.exe
- MDI.exe
- MDINet.exe
- MDINet.vshost.exe
- SDI.exe
- SDINet.exe
- SDINet.vshost.exe
- ToolBar.exe
- USkin.dll
- DiyGreen.msstyles
- Vista.msstyles
|
// SDI.cpp : ����Ӧ�ó��������Ϊ��
//
#include "stdafx.h"
#include "SDI.h"
#include "MainFrm.h"
#include "SDIDoc.h"
#include "SDIView.h"
#include ".\sdi.h"
#include "..\..\..\Include\USkin.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#endif
// CSDIApp
BEGIN_MESSAGE_MAP(CSDIApp, CWinApp)
ON_COMMAND(ID_APP_ABOUT, OnAppAbout)
// �����ļ��ı��ĵ�����
ON_COMMAND(ID_FILE_NEW, CWinApp::OnFileNew)
ON_COMMAND(ID_FILE_OPEN, CWinApp::OnFileOpen)
// ����ӡ��������
ON_COMMAND(ID_FILE_PRINT_SETUP, CWinApp::OnFilePrintSetup)
END_MESSAGE_MAP()
// CSDIApp ����
CSDIApp::CSDIApp()
{
// TODO: �ڴ˴���ӹ�����룬
// ��������Ҫ�ij�ʼ�������� InitInstance ��
}
// Ψһ��һ�� CSDIApp ����
CSDIApp theApp;
// CSDIApp ��ʼ��
BOOL CSDIApp::InitInstance()
{
// ���һ�������� Windows XP �ϵ�Ӧ�ó����嵥ָ��Ҫ
// ʹ�� ComCtl32.dll �汾 6 ����߰汾�����ÿ��ӻ���ʽ��
//����Ҫ InitCommonControls()���������������ڡ�
InitCommonControls();
CWinApp::InitInstance();
// ��ʼ�� OLE ��
if (!AfxOleInit())
{
AfxMessageBox(IDP_OLE_INIT_FAILED);
return FALSE;
}
AfxEnableControlContainer();
// ����ʼ��
// ���δʹ����Щ���ܲ�ϣ����С
// ���տ�ִ���ļ��Ĵ�С����Ӧ�Ƴ�����
// ����Ҫ���ض���ʼ������
// �������ڴ洢���õ�ע�����
// TODO: Ӧ�ʵ��ĸ��ַ�����
// ������Ϊ��˾����֯��
USkinInit(NULL,NULL,_T("..\\Skins\\DiyGreen.msstyles"));
SetRegistryKey(_T("Ӧ�ó��������ɵı���Ӧ�ó���"));
LoadStdProfileSettings(4); // ���ر� INI �ļ�ѡ��(���� MRU)
// ע��Ӧ�ó�����ĵ�ģ�塣�ĵ�ģ��
// �������ĵ�����ܴ��ں���ͼ֮�������
CSingleDocTemplate* pDocTemplate;
pDocTemplate = new CSingleDocTemplate(
IDR_MAINFRAME,
RUNTIME_CLASS(CSDIDoc),
RUNTIME_CLASS(CMainFrame), // �� SDI ��ܴ���
RUNTIME_CLASS(CSDIView));
if (!pDocTemplate)
return FALSE;
AddDocTemplate(pDocTemplate);
this->RegisterShellFileTypes();
TCHAR sz[500];
::GetModuleFileName(NULL,sz,500);
AfxMessageBox(sz);
// ������������DDE�����ļ�������������
CCommandLineInfo cmdInfo;
ParseCommandLine(cmdInfo);
// ��������������ָ����������
// �� /RegServer��/Register��/Unregserver �� /Unregister ���Ӧ�ó����� FALSE��
if (!ProcessShellCommand(cmdInfo))
return FALSE;
// Ψһ��һ�������ѳ�ʼ���������ʾ����������и���
m_pMainWnd->ShowWindow(SW_SHOW);
m_pMainWnd->UpdateWindow();
// �������ں�ʱ�ŵ��� DragAcceptFiles��
// �� SDI Ӧ�ó����У���Ӧ�� ProcessShellCommand ֮����
return TRUE;
}
// ����Ӧ�ó����ڡ��˵���� CAboutDlg �Ի���
class CAboutDlg : public CDialog
{
public:
CAboutDlg();
// �Ի�������
enum { IDD = IDD_ABOUTBOX };
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV ֧��
// ʵ��
protected:
DECLARE_MESSAGE_MAP()
};
CAboutDlg::CAboutDlg() : CDialog(CAboutDlg::IDD)
{
}
void CAboutDlg::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
}
BEGIN_MESSAGE_MAP(CAboutDlg, CDialog)
END_MESSAGE_MAP()
// �������жԻ����Ӧ�ó�������
void CSDIApp::OnAppAbout()
{
CAboutDlg aboutDlg;
aboutDlg.DoModal();
}
// CSDIApp ��Ϣ�������
int CSDIApp::ExitInstance()
{
// TODO: �ڴ����ר�ô����/����û���
USkinExit();
return CWinApp::ExitInstance();
}
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.