Code/Resource
Windows Develop
Linux-Unix program
Internet-Socket-Network
Web Server
Browser Client
Ftp Server
Ftp Client
Browser Plugins
Proxy Server
Email Server
Email Client
WEB Mail
Firewall-Security
Telnet Server
Telnet Client
ICQ-IM-Chat
Search Engine
Sniffer Package capture
Remote Control
xml-soap-webservice
P2P
WEB(ASP,PHP,...)
TCP/IP Stack
SNMP
Grid Computing
SilverLight
DNS
Cluster Service
Network Security
Communication-Mobile
Game Program
Editor
Multimedia program
Graph program
Compiler program
Compress-Decompress algrithms
Crypt_Decrypt algrithms
Mathimatics-Numerical algorithms
MultiLanguage
Disk/Storage
Java Develop
assembly language
Applications
Other systems
Database system
Embeded-SCM Develop
FlashMX/Flex
source in ebook
Delphi VCL
OS Develop
MiddleWare
MPI
MacOS develop
LabView
ELanguage
Software/Tools
E-Books
Artical/Document
FILENEWD.CPP
Package: word.rar [view]
Upload User: aakk678
Upload Date: 2022-07-09
Package Size: 406k
Code Size: 2k
Category:
GUI Develop
Development Platform:
Visual C++
- // filenewd.cpp : implementation file
- //
- // This is a part of the Microsoft Foundation Classes C++ library.
- // Copyright (C) 1992-1997 Microsoft Corporation
- // All rights reserved.
- //
- // This source code is only intended as a supplement to the
- // Microsoft Foundation Classes Reference and related
- // electronic documentation provided with the library.
- // See these sources for detailed information regarding the
- // Microsoft Foundation Classes product.
- #include "stdafx.h"
- #include "wordpad.h"
- #include "filenewd.h"
- #include "helpids.h"
- #ifdef _DEBUG
- #undef THIS_FILE
- static char BASED_CODE THIS_FILE[] = __FILE__;
- #endif
- DWORD const CFileNewDialog::m_nHelpIDs[] =
- {
- IDC_DATEDIALOG_LIST, IDH_WORDPAD_FILENEW_DOC,
- 0, 0
- };
- /////////////////////////////////////////////////////////////////////////////
- // CFileNewDialog dialog
- CFileNewDialog::CFileNewDialog(CWnd* pParent /*=NULL*/)
- : CCSDialog(CFileNewDialog::IDD, pParent)
- {
- //{{AFX_DATA_INIT(CFileNewDialog)
- m_nSel = -1;
- //}}AFX_DATA_INIT
- }
- void CFileNewDialog::DoDataExchange(CDataExchange* pDX)
- {
- CCSDialog::DoDataExchange(pDX);
- //{{AFX_DATA_MAP(CFileNewDialog)
- DDX_Control(pDX, IDC_DATEDIALOG_LIST, m_listbox);
- DDX_LBIndex(pDX, IDC_DATEDIALOG_LIST, m_nSel);
- //}}AFX_DATA_MAP
- }
- BEGIN_MESSAGE_MAP(CFileNewDialog, CCSDialog)
- //{{AFX_MSG_MAP(CFileNewDialog)
- ON_LBN_DBLCLK(IDC_DATEDIALOG_LIST, OnDblclkDatedialogList)
- //}}AFX_MSG_MAP
- END_MESSAGE_MAP()
- /////////////////////////////////////////////////////////////////////////////
- // CFileNewDialog message handlers
- BOOL CFileNewDialog::OnInitDialog()
- {
- CCSDialog::OnInitDialog();
- CString str;
- VERIFY(str.LoadString(IDS_WORD6_DOCUMENT));
- m_listbox.AddString(str);
- VERIFY(str.LoadString(IDS_RTF_DOCUMENT));
- m_listbox.AddString(str);
- VERIFY(str.LoadString(IDS_TEXT_DOCUMENT));
- m_listbox.AddString(str);
- m_listbox.SetCurSel(0);
- return TRUE; // return TRUE unless you set the focus to a control
- // EXCEPTION: OCX Property Pages should return FALSE
- }
- void CFileNewDialog::OnDblclkDatedialogList()
- {
- OnOK();
- }