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
rename.c
Package: zipsrc.zip [view]
Upload User: jlteech
Upload Date: 2007-01-06
Package Size: 349k
Code Size: 2k
Category:
Compress-Decompress algrithms
Development Platform:
Visual C++
- /* Author Mike White, 1996. Based on original WizUnZip code by
- * Robert Heath.
- */
- #include <stdio.h>
- #include "wiz.h"
- #include "rename.h"
- #include "helpids.h"
- /****************************************************************************
- FUNCTION: RenameProc(HWND, WORD, WPARAM, LPARAM)
- PURPOSE: Processes messages for "Rename" dialog box
- MESSAGES:
- WM_INITDIALOG - initialize dialog box
- WM_COMMAND - Input received
- ****************************************************************************/
- BOOL WINAPI RenameProc(HWND hDlg, WORD wMessage, WPARAM wParam, LPARAM lParam)
- {
- static char __far *lpsz;
- switch (wMessage)
- {
- case WM_INITDIALOG:
- lpsz = (char __far *)lParam;
- wsprintf(lpumb->szBuffer, "Rename %s", (LPSTR)lParam);
- SetDlgItemText(hDlg, IDM_RENAME_TEXT, lpumb->szBuffer);
- wsprintf(lpumb->szBuffer, "%s", (LPSTR)lParam);
- SetDlgItemText(hDlg, IDM_NEW_NAME_TEXT, lpumb->szBuffer);
- CenterDialog(GetParent(hDlg), hDlg); /* center on parent */
- return TRUE;
- case WM_SETFOCUS:
- SetFocus(GetDlgItem(hDlg, IDM_NEW_NAME_TEXT));
- return TRUE;
- case WM_COMMAND:
- switch (LOWORD(wParam))
- {
- case IDM_RENAME_RENAME:
- GetDlgItemText(hDlg, IDM_NEW_NAME_TEXT, lpsz, 80);
- case IDM_RENAME_CANCEL:
- EndDialog(hDlg, wParam);
- break;
- case IDM_RENAME_HELP:
- WinHelp(hDlg,szHelpFileName,HELP_CONTEXT, (DWORD)(HELPID_OVERWRITE));
- }
- return TRUE;
- }
- return FALSE;
- }