| 1111 | } |
| 1112 | |
| 1113 | HMENU |
| 1114 | _get_main_menu(UINT menu_id) |
| 1115 | { |
| 1116 | HMENU hmenuMap; |
| 1117 | #if defined(WIN_CE_POCKETPC) || defined(WIN_CE_SMARTPHONE) |
| 1118 | TBBUTTONINFO tbbi; |
| 1119 | #endif |
| 1120 | |
| 1121 | #if defined(WIN_CE_POCKETPC) || defined(WIN_CE_SMARTPHONE) |
| 1122 | tbbi.cbSize = sizeof(tbbi); |
| 1123 | tbbi.dwMask = TBIF_LPARAM; |
| 1124 | SendMessage(GetNHApp()->hMenuBar, TB_GETBUTTONINFO, menu_id, |
| 1125 | (LPARAM) &tbbi); |
| 1126 | hmenuMap = (HMENU) tbbi.lParam; |
| 1127 | #else |
| 1128 | hmenuMap = CommandBar_GetMenu(GetNHApp()->hMenuBar, 0); |
| 1129 | #endif |
| 1130 | return hmenuMap; |
| 1131 | } |
| 1132 | |
| 1133 | /* SmartPhone: display dialog to type arbitrary command text */ |
| 1134 | void |
no test coverage detected