创建一个对话框

<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
在SDK中,经常要创建一个对话框,以下是一个创建对话框的代码:#include "resource.h"#include "windows.h"BOOL _stdcall DlgProc(HWND,UINT,WPARAM,LPARAM);int _stdcall WinMain(HINSTANCE hInstance,HINSTANCE,LPSTR,int){  	DialogBoxParam(hInstance,(LPCTSTR)IDD_MAIN,NULL,DlgProc,NULL);	// TODO: Place code here.	return 0;}BOOL _stdcall DlgProc(HWND hdlg,UINT message,WPARAM wParam,LPARAM lParam){	HWND hWndlist,hWndStatus,hWndedit;	switch(message){	case WM_INITDIALOG:		SetWindowText(hdlg,"自动统计时间(湖大计科SDK)");		break;	case WM_COMMAND:		{		  switch(LOWORD(wParam)){			//case IDC_EDIT:                			    //SetWindowText(hWndedit,"WELCOME");			//	break;			case IDC_CANCEL:                 				 EndDialog(hdlg,IDCANCEL);				break;			case IDC_OK:                EndDialog(hdlg,IDCANCEL);				break;			default:break;		   }		}		break;	}	   return 0;}


你可能感兴趣的:(html,windows)