#include <windows.h>#include <windowsx.h>#include <tchar.h>#include "resource.h"/**///////////////////////////////////////////////////////////////////////////void ClearListBox(HWND hwndListBox)...{ ListBox_ResetContent(hwndListBox);//清除ListBox中的内容}/**///////////////////////////////////////////////////////////////////////////void FillListBox(HWND hwndListBox,UINT attr,LPCTSTR lpszFileSpec)...{ ClearListBox(hwndListBox); ListBox_Dir(hwndListBox,attr,lpszFileSpec);}/**///////////////////////////////////////////////////////////////////////////BOOL RenameFile_OnInitDialog(HWND hwnd, HWND hwndFocus, LPARAM lParam)...{ return(TRUE);}/**///////////////////////////////////////////////////////////////////////////BOOL WINAPI RenameFile_DlgProc( HWND hwndDlg, // handle to dialog box UINT uMsg, // message WPARAM wParam, // first message parameter LPARAM lParam // second message parameter )...{ switch(uMsg) ...{ HANDLE_MSG ( hwndDlg, WM_INITDIALOG, RenameFile_OnInitDialog); HANDLE_MSG ( hwndDlg, WM_COMMAND, RenameFile_OnCommand); } return(FALSE);}/**///////////////////////////////////////////////////////////////////////////int WINAPI WinMain(HINSTANCE hinstExe,HINSTANCE ,PSTR szCmdLine,int nCmdShow)...{ DialogBox(hinstExe,MAKEINTRESOURCE(IDD_DIALOG),NULL,RenameFile_DlgProc); return(0);}/**/////////////////////end of file//////////////////// 有后续代码