Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

46 lines
1.2 KiB

  1. #include "isignup.h"
  2. LRESULT FAR PASCAL ProgressProc(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam);
  3. HWND ProgressInit(HWND hwndParent)
  4. {
  5. HWND hwnd;
  6. WNDCLASS wndclass ;
  7. wndclass.style = CS_HREDRAW | CS_VREDRAW ;
  8. wndclass.lpfnWndProc = ProgressProc ;
  9. wndclass.cbClsExtra = 0 ;
  10. wndclass.cbWndExtra = DLGWINDOWEXTRA ;
  11. wndclass.hInstance = ghInstance ;
  12. wndclass.hIcon = NULL ;
  13. wndclass.hCursor = LoadCursor (NULL, IDC_ARROW) ;
  14. wndclass.hbrBackground = (HBRUSH)COLOR_APPWORKSPACE ;
  15. wndclass.lpszMenuName = NULL ;
  16. wndclass.lpszClassName = TEXT("Internet Signup Progress");
  17. RegisterClass (&wndclass) ;
  18. hwnd = CreateDialog (ghInstance, TEXT("Progress"), hwndParent, NULL);
  19. ShowWindow (hwnd, SW_NORMAL);
  20. return hwnd;
  21. }
  22. LONG_PTR FAR PASCAL ProgressProc (
  23. HWND hwnd,
  24. UINT message,
  25. WPARAM wParam,
  26. LPARAM lParam)
  27. {
  28. switch (message)
  29. {
  30. case WM_MOUSEACTIVATE:
  31. return MA_NOACTIVATEANDEAT;
  32. default:
  33. break;
  34. }
  35. return DefWindowProc (hwnd, message, wParam, lParam) ;
  36. }