All pastes #9712 Raw Edit

themule

public text v1 · immutable
#9712 ·published 2005-04-17 21:35 UTC
rendered paste body


#include "windows.h"
#include "resource.h"

//////////Variables////////////
HWND hDlg;
//////////////////////////////

///////////Functions//////////
INT_PTR CALLBACK DlgProc(HWND hDlg, UINT msg, WPARAM wParam, LPARAM lParam);
//////////////////////////////

int __stdcall WinMain(HINSTANCE hInstance,HINSTANCE hPrevInstance,LPSTR lpCmdLine,int nCmdShow)
{
	hDlg = CreateDialog(hInstance, MAKEINTRESOURCE(DLG1), 0, DlgProc);
	ShowWindow(hDlg, SW_SHOWDEFAULT);

	MSG msg;
	while (GetMessage(&msg, 0, NULL, NULL))
	{
		TranslateMessage(&msg);
		DispatchMessage(&msg);
	}
	return (int)msg.wParam;
}



INT_PTR CALLBACK DlgProc(HWND hDlg, UINT msg, WPARAM wParam, LPARAM lParam)
{
	switch(msg)
	{
		case WM_CLOSE:
			PostQuitMessage(0);
			break;

		case WM_COMMAND:
			break;
	}

	return 0;
}