示例#1
0
LRESULT CALLBACK WndProc (HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam)
{
  switch (message) {

  case WM_CREATE:      return WMCreate      (hwnd, wParam, lParam);
	case WM_SIZE:        return WMSize        (hwnd, wParam, lParam);
	case WM_LBUTTONDOWN: return WMLButtonDown (hwnd, wParam, lParam);
	case WM_DESTROY:     return WMDestroy     (hwnd, wParam, lParam);

  }

  return DefWindowProc (hwnd, message, wParam, lParam);
}
示例#2
0
LONG APIENTRY GenericWndProc (HWND hWnd, UINT message, UINT wParam, LONG lParam)

//	GenericWndProc
//
//	WndProc for generic window

	{
	switch (message)
		{
		case WM_CREATE:
			return WMCreate(hWnd, (LPCREATESTRUCT)lParam);

		default:
			return DefWindowProc(hWnd, message, wParam, lParam);
		}
	}
示例#3
0
文件: Poppad.c 项目: banica/educatie
LRESULT CALLBACK WndProc (HWND hwnd,
						       UINT message,
						       WPARAM wParam,
						       LPARAM lParam)

{
  switch (message) {

	case WM_CREATE:   return WMCreate   (hwnd, wParam, lParam);
	case WM_SETFOCUS: return WMSetFocus (hwnd, wParam, lParam);
	case WM_SIZE:     return WMSize     (hwnd, wParam, lParam);
	case WM_COMMAND:  return WMCommand  (hwnd, wParam, lParam);
	case WM_DESTROY:  return WMDestroy  (hwnd, wParam, lParam);

  }

  return DefWindowProc (hwnd, message, wParam, lParam);
}