Source code of Windows XP (NT5)
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.

27 lines
781 B

  1. #include "precomp.h"
  2. #pragma hdrstop
  3. #include <windows.h>
  4. #include <commctrl.h>
  5. #include <objbase.h>
  6. #include "wiadebug.h"
  7. #include "wiadevd.h"
  8. #include "camdlg.rh"
  9. #include "camdlg.h"
  10. #include "pviewids.h"
  11. #include "wiatextc.h"
  12. #include "wiacamd.h"
  13. HRESULT WINAPI CameraDeviceDialog( PDEVICEDIALOGDATA pDialogDeviceData )
  14. {
  15. HRESULT hr = E_FAIL;
  16. if (pDialogDeviceData && pDialogDeviceData->cbSize == sizeof(DEVICEDIALOGDATA))
  17. {
  18. InitCommonControls();
  19. RegisterWiaPreviewClasses( g_hInstance );
  20. CWiaTextControl::RegisterClass(g_hInstance);
  21. hr = (HRESULT)DialogBoxParam( g_hInstance, MAKEINTRESOURCE(IDD_CAMERA), pDialogDeviceData->hwndParent, CCameraAcquireDialog::DialogProc, (LPARAM)pDialogDeviceData );
  22. }
  23. return hr;
  24. }