| 发表于:2007-01-12 23:30:512楼 得分:0 |
[system.runtime.interopservices.dllimport( "user32 ")] private static extern int setmenuitembitmaps(intptr hmenu, int nposition, int wflags, intptr hbitmapunchecked,intptr hbitmapchecked); 这两行得合在一起说,意思这里定义了一个方法setmenuitembitmaps,但该方法是外部函数,定义在user32.dll中,在你的程序中不需要写实现代码。 const int mf_byposition = 0x0400; 这行还用解释吗?就是定义了一个常量,供你在调用刚才那个函数的时候使用,看样子应该是放在第三个参数中使用。 | | |
|