如何将自定义的很多工具图标(.bmp)做成一个.mnr)-Auto CAD
·当前位置: 学海荡舟-论文 >> 电脑技术 >> 图形图象 >> Auto CAD
如何将自定义的很多工具图标(.bmp)做成一个.mnr)



  How to compile BMP files to one single DLL file

Tools: C or C++ compiler for Windows

Windows Driver Development Kit

1. Create the list of bitmaps.

"ICON0001.BMP"

"ICON0002.BMP"

...

2. Create the resource definition file

.rc from the list of bitmaps.

SCAD0001 BITMAP DISCARDABLE "ICON0001.BMP"

SCAD0002 BITMAP DISCARDABLE "ICON0002.BMP"

...

("SCAD" is an example name)

3. Create the linker definition file

.def

LIBRARY

4. Create the resource file: (Use C or C++ Compiler)

RC -r

.rc (or LRC /r .rc)

5. Create the DLL file: (Use Windows DDK)

LINK /nodefaultlib /DLL /MACHINE:IX86 /DEF:

.def

/OUT:

.dll /NOENTRY .res

6. Edit the file

.mns

Existing: [_Button("TEST", "ICON0001.BMP", "ICON0001.BMP")]^C^CTEST

New: [_Button("TEST", "SCAD0001", "SCAD0001")]^C^CTEST

7. Move all BMP files and reload the menu.

  • 上一篇教程:
  • 下一篇教程:
  • :查看相关:
  • 简单实用的标注标高小工具
  • 如何能使尺寸界线有一定倾斜角度进行标注
  • 在AutoCAD尺寸线中自定义箭头块应用技巧
  • 在AutoCAD尺寸线中自定义箭头块应用技巧
  • 自定义CAD里的图案