Bmp.rc
上传用户:s6549606
上传日期:2015-11-11
资源大小:12002k
文件大小:2k
源码类别:

图形图像处理

开发平台:

Visual C++

  1. #include "bmp.h"
  2. /////////////////////////////////////////////////////////////////////////////
  3. //
  4. // Menu
  5. //
  6. BMPMENU MENU DISCARDABLE 
  7. BEGIN
  8.     POPUP "File"
  9.     BEGIN
  10.         MENUITEM "Open",                        IDM_LOADBMP
  11.         MENUITEM "Exit",                        IDM_EXIT
  12.     END
  13.     POPUP "Geometric Transform"
  14.     BEGIN
  15.         MENUITEM "Translation...",              IDM_TRANSLATION
  16.         MENUITEM "Rotation...",                 IDM_ROTATION
  17.         MENUITEM "Mirror X Direction",          IDM_MIRRORX
  18.         MENUITEM "Mirror Y Direction",          IDM_MIRRORY
  19.         MENUITEM "Transpose",                   IDM_TRANSPOSE
  20.         MENUITEM "Zoom...",                     IDM_ZOOM
  21.     END
  22. END
  23. /////////////////////////////////////////////////////////////////////////////
  24. //
  25. // Dialog
  26. //
  27. INPUTBOX DIALOG DISCARDABLE  222, 17, 189, 149
  28. STYLE DS_MODALFRAME | WS_CAPTION | WS_SYSMENU
  29. CAPTION "InputBox"
  30. FONT 8, "System"
  31. BEGIN
  32.     EDITTEXT        ID_XOFFSET,43,28,44,12,ES_AUTOHSCROLL | ES_WANTRETURN
  33.     EDITTEXT        ID_YOFFSET,43,50,44,12,ES_AUTOHSCROLL | ES_WANTRETURN
  34.     DEFPUSHBUTTON   "OK",IDOK,78,132,32,14,WS_GROUP
  35.     CTEXT           "x:",IDC_STATIC,11,29,23,12
  36.     CTEXT           "Please input offset",IDC_STATIC,9,17,72,8
  37.     CTEXT           "y:",IDC_STATIC,11,50,23,12
  38.     GROUPBOX        "Translation",IDC_STATIC,5,4,88,68
  39.     EDITTEXT        ID_ANGLE,114,45,53,12,ES_AUTOHSCROLL | ES_WANTRETURN
  40.     CTEXT           "Please input angle(CW)",IDC_STATIC,100,20,80,8
  41.     GROUPBOX        "Rotation",IDC_STATIC,97,4,88,68
  42.     EDITTEXT        ID_ZOOMRATIO,16,105,53,12,ES_AUTOHSCROLL | ES_WANTRETURN
  43.     LTEXT           "Please input ratio(0.25<=ratio<=4)",IDC_STATIC,16,89,
  44.                     115,8
  45.     GROUPBOX        "Zoom",IDC_STATIC,5,73,180,53
  46. END