// WIN35.cpp : Defines the entry point for the application.
//
#include "stdafx.h"
#include "resource.h"
BOOL CALLBACK NieaProc(
HWND hwndDlg, // handle to dialog box
UINT uMsg, // message
WPARAM wParam, // first message parameter
LPARAM lParam // second message parameter
)
{
char s[256];
sprintf_s(s,"uMsg=%d,wParam=%d,lParam=%d\n",uMsg,wParam,lParam);
OutputDebugString(s);
return FALSE;
}
int APIENTRY WinMain(HINSTANCE hInstance,
HINSTANCE hPrevInstance,
LPSTR lpCmdLine,
int nCmdShow)
{
DialogBox(hInstance,(LPCSTR)IDD_DIALOG1,NULL,NieaProc);
return 0;
}