资源描述:
《GUID生成器代码》由会员上传分享,免费在线阅读,更多相关内容在行业资料-天天文库。
1、///D:/daima/guidgen/aboutdlg.hclassCAboutDlg:publicCDialogImpl{public:enum{IDD=IDD_ABOUTBOX};BEGIN_MSG_MAP(CAboutDlg)MESSAGE_HANDLER(WM_INITDIALOG,OnInitDialog)COMMAND_ID_HANDLER(IDOK,OnCloseCmd)COMMAND_ID_HANDLER(IDCANCEL,OnCloseCmd)END_MSG_MAP()LRE
2、SULTOnInitDialog(UINT/*uMsg*/,WPARAM/*wParam*/,LPARAM/*lParam*/,BOOL&/*bHandled*/){CenterWindow(GetParent());returnTRUE;}LRESULTOnCloseCmd(WORD/*wNotifyCode*/,WORDwID,HWND/*hWndCtl*/,BOOL&/*bHandled*/){EndDialog(wID);return0;}};///D:/daima/guidgen/GuidGen.cpp//
3、GuidGen.cpp://#include"stdatl.h"#include#include#include#include#include"resource.h"#include"aboutdlg.h"#include"maindlg.h"CAppModule_Module;intRun(LPTSTR/*lpCmdLine*/=NULL,intnCmdShow=SW_SHOWDEFAULT){CMessageLoopthe
4、Loop;_Module.AddMessageLoop(&theLoop);CMainDlgdlgMain;if(dlgMain.Create(NULL)==NULL){ATLTRACE(_T("Maindialogcreationfailed!"));return0;}dlgMain.ShowWindow(nCmdShow);intnRet=theLoop.Run();_Module.RemoveMessageLoop();returnnRet;}intWINAPI_tWinMain(HINSTANCEhIns
5、tance,HINSTANCE/*hPrevInstance*/,LPTSTRlpCmdLine,intnCmdShow){#if(_WIN32_IE>=0x0300)INITCOMMONCONTROLSEXiccx;iccx.dwSize=sizeof(iccx);iccx.dwICC=ICC_BAR_CLASSES;//changetosupportothercontrols::InitCommonControlsEx(&iccx);#else::InitCommonControls();#endif_Modul
6、e.Init(NULL,hInstance);intnRet=Run(lpCmdLine,nCmdShow);_Module.Term();returnnRet;}///D:/daima/guidgen/GuidGen.rc//MicrosoftDeveloperStudiogeneratedresourcescript.//#include"resource.h"#defineAPSTUDIO_READONLY_SYMBOLS/////////////////////////////////////////////
7、////////////////////////////////////GeneratedfromtheTEXTINCLUDE2resource.//#include"atlres.h"/////////////////////////////////////////////////////////////////////////////#undefAPSTUDIO_READONLY_SYMBOLS////////////////////////////////////////////////////////////
8、///////////////////English(U.S.)resources#if!defined(AFX_RESOURCE_DLL)
9、
10、defined(AFX_TARG_ENU)#ifdef_WIN32LANGUAGELANG_ENGLISH,SUBLANG_ENGLISH_US#pragmacode_page(1252)#endif/