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.

206 lines
6.8 KiB

  1. #ifndef _FRAMETEST_H_
  2. #define _FRAMETEST_H_
  3. #define IDR_MAINMENU 100
  4. #define IDR_ACCELTABLE 101
  5. #define IDM_FILE_OPEN 200
  6. #define IDM_FILE_SAVE 201
  7. #define IDM_FILE_SAVEFRAME 202
  8. #define IDM_FILE_RENDER 203
  9. #define IDM_FILE_PRINT 204
  10. #define IDM_FILE_QUIT 205
  11. #define IDM_VIEW_NEXTPAGE 300
  12. #define IDM_VIEW_PREVIOUSPAGE 301
  13. #define IDM_VIEW_THUMBNAIL 302
  14. #define IDM_VIEW_CHANNEL_C 303
  15. #define IDM_VIEW_CHANNEL_M 304
  16. #define IDM_VIEW_CHANNEL_Y 305
  17. #define IDM_VIEW_CHANNEL_K 306
  18. #define IDM_VIEW_CHANNEL_R 307
  19. #define IDM_VIEW_CHANNEL_G 308
  20. #define IDM_VIEW_CHANNEL_B 309
  21. #define IDM_VIEW_CHANNEL_L 310
  22. #define IDM_VIEW_CHANNEL_A 311
  23. #define IDM_VIEW_ATTR_INFO 312
  24. #define IDM_VIEW_ATTR_PROPERTY 313
  25. #define IDM_VIEW_ANIMATED 314
  26. #define IDM_VIEW_ZOOM_IN 315
  27. #define IDM_VIEW_ZOOM_OUT 316
  28. #define IDM_VIEW_ZOOM_FITWINDOW_W 317
  29. #define IDM_VIEW_ZOOM_FITWINDOW_H 318
  30. #define IDM_VIEW_ZOOM_REALSIZE 319
  31. #define IDM_VIEW_OPTION_BILINEAR 320
  32. #define IDM_VIEW_OPTION_BICUBIC 321
  33. #define IDM_VIEW_OPTION_NEARESTNEIGHBOR 322
  34. #define IDM_VIEW_OPTION_HIGHLINEAR 323
  35. #define IDM_VIEW_OPTION_HIGHCUBIC 324
  36. #define IDM_VIEW_OPTION_PIXELMODE 325
  37. #define IDM_VIEW_OPTION_WRAPMODETILE 326
  38. #define IDM_VIEW_OPTION_WRAPMODEFLIPX 327
  39. #define IDM_VIEW_OPTION_WRAPMODEFLIPY 328
  40. #define IDM_VIEW_OPTION_WRAPMODEFLIPXY 329
  41. #define IDM_VIEW_OPTION_WRAPMODECLAMP0 330
  42. #define IDM_VIEW_OPTION_WRAPMODECLAMPFF 331
  43. #define IDM_VIEW_CROP 332
  44. #define IDM_VIEW_ROTATE90 333
  45. #define IDM_VIEW_ROTATE270 334
  46. #define IDM_VIEW_HORIZONTALFLIP 335
  47. #define IDM_VIEW_VERTICALFLIP 336
  48. #define IDM_EFFECT_TRANSKEY 400
  49. #define IDM_EFFECT_COLORMAP 401
  50. #define IDM_EFFECT_ICC 402
  51. #define IDM_EFFECT_GAMMA 403
  52. #define IDM_TRANSFORM_ROTATE90 430
  53. #define IDM_TRANSFORM_ROTATE180 431
  54. #define IDM_TRANSFORM_ROTATE270 432
  55. #define IDM_TRANSFORM_HORIZONTALFLIP 433
  56. #define IDM_TRANSFORM_VERTICALFLIP 434
  57. #define IDM_CONVERT_8BIT 500
  58. #define IDM_CONVERT_16BITRGB555 501
  59. #define IDM_CONVERT_16BITRGB565 502
  60. #define IDM_CONVERT_24BITRGB 503
  61. #define IDM_CONVERT_32BITRGB 504
  62. #define IDM_CONVERT_32BITARGB 505
  63. #define IDM_ANNOTATION_ANNOTATION 520
  64. #define IDM_ANNOTATION_SOFTWARE 521
  65. #define IDM_ANNOTATION_AUDIOFILE 522
  66. // Set color key dialog
  67. #define IDD_COLORKEYDLG 700
  68. #define IDC_COLORKEY_OK 701
  69. #define IDC_COLORKEY_CANCEL 702
  70. #define IDC_TRANS_R 710
  71. #define IDC_TRANS_G 711
  72. #define IDC_TRANS_B 712
  73. #define IDC_TRANS_C 713
  74. #define IDC_TRANS_LOWER_RFIELD 714
  75. #define IDC_TRANS_LOWER_GFIELD 715
  76. #define IDC_TRANS_LOWER_BFIELD 716
  77. #define IDC_TRANS_LOWER_CFIELD 717
  78. #define IDC_TRANS_HIGHER_RFIELD 718
  79. #define IDC_TRANS_HIGHER_CFIELD 719
  80. #define IDC_TRANS_HIGHER_GFIELD 720
  81. #define IDC_TRANS_HIGHER_BFIELD 721
  82. #define IDC_TRANS_LOWERCOLOR 722
  83. #define IDC_TRANS_HIGHERCOLOR 723
  84. // Color map dialog
  85. #define IDD_COLORMAPDLG 800
  86. #define IDC_COLORMAP_OK 801
  87. #define IDC_COLORMAP_CANCEL 802
  88. #define IDC_MAP_OLDCOLOR 810
  89. #define IDC_MAP_NEWCOLOR 811
  90. #define IDC_MAP_R 812
  91. #define IDC_MAP_G 813
  92. #define IDC_MAP_B 814
  93. #define IDC_MAP_A 815
  94. #define IDC_MAP_OLD_RFIELD 816
  95. #define IDC_MAP_OLD_GFIELD 817
  96. #define IDC_MAP_OLD_BFIELD 818
  97. #define IDC_MAP_OLD_AFIELD 819
  98. #define IDC_MAP_NEW_RFIELD 820
  99. #define IDC_MAP_NEW_GFIELD 821
  100. #define IDC_MAP_NEW_BFIELD 822
  101. #define IDC_MAP_NEW_AFIELD 823
  102. // Annotation dialog
  103. #define IDD_ANNOTATIONDLG 900
  104. #define IDC_ANNOTATION_OK 901
  105. #define IDC_ANNOTATION_CANCEL 902
  106. #define IDC_ANNOTATION_EDITOR 910
  107. // JPEG save dialog
  108. #define IDD_SAVEJPEGDLG 1000
  109. #define IDC_SAVEJPEG_OK 1001
  110. #define IDC_SAVEJPEG_CANCEL 1002
  111. #define IDC_SAVEJPEG_QEFIELD 1003
  112. #define IDC_SAVEJPEG_QSLIDER 1004
  113. #define IDC_SAVEJPEG_QUALITY 1005
  114. #define IDC_SAVEJPEG_R90 1006
  115. #define IDC_SAVEJPEG_R180 1007
  116. #define IDC_SAVEJPEG_R270 1008
  117. #define IDC_SAVEJPEG_HFLIP 1009
  118. #define IDC_SAVEJPEG_VFLIP 1010
  119. #define IDC_SAVEJPEG_NOTRANSFORM 1011
  120. #define IDC_SAVEJPEG_LOSSLESSTEXT 1012
  121. // TIFF save dialog
  122. #define IDD_SAVETIFFDLG 1100
  123. #define IDC_SAVETIFFDLG_OK 1101
  124. #define IDC_SAVETIFFDLG_CANCEL 1102
  125. #define IDC_SAVETIFF_COLORDEPTH 1103
  126. #define IDC_SAVETIFF_1BPP 1104
  127. #define IDC_SAVETIFF_4BPP 1105
  128. #define IDC_SAVETIFF_8BPP 1106
  129. #define IDC_SAVETIFF_24BPP 1107
  130. #define IDC_SAVETIFF_32ARGB 1108
  131. #define IDC_SAVETIFF_ASSOURCE 1109
  132. #define IDC_SAVETIFF_COMPRESSMETHOD 1110
  133. #define IDC_SAVETIFF_CCITT3 1111
  134. #define IDC_SAVETIFF_CCITT4 1112
  135. #define IDC_SAVETIFF_RLE 1113
  136. #define IDC_SAVETIFF_LZW 1114
  137. #define IDC_SAVETIFF_UNCOMPRESSED 1115
  138. #define IDC_SAVETIFF_COMPASSOURCE 1116
  139. #define IDC_SAVETIFF_MULTIFRAME 1117
  140. const CLSID K_JPEGCLSID =
  141. {
  142. 0x557cf401,
  143. 0x1a04,
  144. 0x11d3,
  145. {0x9a, 0x73, 0x00, 0x00, 0xf8, 0x1e, 0xf3, 0x2e}
  146. };
  147. const CLSID K_TIFFCLSID =
  148. {
  149. 0x557cf405,
  150. 0x1a04,
  151. 0x11d3,
  152. {0x9a, 0x73, 0x00, 0x00, 0xf8, 0x1e, 0xf3, 0x2e}
  153. };
  154. void USAGE();
  155. BOOL AnsiToUnicodeStr(const CHAR* ansiStr,
  156. WCHAR* unicodeStr,
  157. INT unicodeSize);
  158. BOOL UnicodeToAnsiStr(const WCHAR* unicodeStr,
  159. CHAR* ansiStr,
  160. INT ansiSize);
  161. CHAR* MakeFilterFromCodecs(UINT count,
  162. const ImageCodecInfo* codecs,
  163. BOOL open);
  164. BOOL ShowMyDialog(INT id,
  165. HWND hwnd,
  166. DLGPROC fpfn);
  167. VOID FileTimeToDosTime(FILETIME fileTime);
  168. VOID DisplayTagName(PROPID id);
  169. VOID DisplayPropertyItem(PropertyItem* pItem);
  170. VOID ToggleWrapModeOptionMenu(UINT uiMenuItem,
  171. HMENU hMenu);
  172. VOID ToggleScaleOptionMenu(UINT uiMenuItem,
  173. HMENU hMenu);
  174. VOID ToggleScaleFactorMenu(UINT uiMenuItem,
  175. HMENU hMenu);
  176. #if DBG
  177. #define VERBOSE(args) printf args
  178. #else
  179. #define VERBOSE(args)
  180. #endif
  181. #endif // _FRAMETEST_H_