C
casso
Unregistered / Unconfirmed
GUEST, unregistred user!
使用如下的语句
hmenu:=LoadMenu(HInstance,MAKEINTRESOURCE(ID_ADD);
注:原来是VC中的.
VC中在resource.h文件中定义了这些常量(as ID_ADD etc.)
同时在menu.rc文件中有如下语句:
ID_ADD MENU DISCARDABLE
BEGIN
POPUP "文件(&F)"
BEGIN
MENUITEM "^00用户标识符(&I)...", NOTES_FILE_USERID
END
POPUP "查看(&V)"
BEGIN
MENUITEM "^03水平滚动条(&H)", NOTES_VIEW_HSCROLLBAR
MENUITEM "^04------------------------", ID_V_4
MENUITEM "^05未读文档(&U)", NOTES_VIEW_NOTREAD
MENUITEM "^06所选文档(&S)", NOTES_VIEW_SELECTED
MENUITEM "^07分类(&C)", NOTES_VIEW_CLASSIFY
MENUITEM "^08搜索结果(&R)", NOTES_VIEW_SEARCHRESULT
END
END
......
谁能解释一下这么做的原理.在Delphi中该如何实现?
hmenu:=LoadMenu(HInstance,MAKEINTRESOURCE(ID_ADD);
注:原来是VC中的.
VC中在resource.h文件中定义了这些常量(as ID_ADD etc.)
同时在menu.rc文件中有如下语句:
ID_ADD MENU DISCARDABLE
BEGIN
POPUP "文件(&F)"
BEGIN
MENUITEM "^00用户标识符(&I)...", NOTES_FILE_USERID
END
POPUP "查看(&V)"
BEGIN
MENUITEM "^03水平滚动条(&H)", NOTES_VIEW_HSCROLLBAR
MENUITEM "^04------------------------", ID_V_4
MENUITEM "^05未读文档(&U)", NOTES_VIEW_NOTREAD
MENUITEM "^06所选文档(&S)", NOTES_VIEW_SELECTED
MENUITEM "^07分类(&C)", NOTES_VIEW_CLASSIFY
MENUITEM "^08搜索结果(&R)", NOTES_VIEW_SEARCHRESULT
END
END
......
谁能解释一下这么做的原理.在Delphi中该如何实现?