#include <windows.h>
#include <iostream.h>
#include "resource.h"
//#define IDD_DIALOG1 1000
//LPCTSTR CONST CHAR*
BOOL CALLBACK DlgProc(HWND,UINT,WPARAM,LPARAM);
int WINAPI WinMain(HINSTANCE hInstance,HINSTANCE hPrevInstance,LPSTR lpCmdLine,int nCmdShow)
{
//LPCTSTR lpTitle="我的对话框";
//hInstance=GetModuleHandle(NULL);
DialogBoxParam(hInstance,MAKEINTRESOURCE(IDD_DIALOG1),NULL,DlgProc,NULL);
cout<<"AAA"<<endl;
//DialogBox(hInstance,TEXT("hello"),NULL,DlgProc);
return 0;
}
BOOL CALLBACK DlgProc(HWND hwndDlg,UINT uMsg,WPARAM wParam,LPARAM lParam)
{
switch (uMsg)
{
case WM_INITDIALOG:
return TRUE;
case WM_CLOSE:
EndDialog(hwndDlg,NULL);
}
return FALSE;
}