static bool idaapi ct_object_explorer_keyboard(TCustomControl * /*v*/, int key, int shift, void *ud) { if (shift == 0) { object_explorer_info_t *si = (object_explorer_info_t *)ud; switch (key) { case IK_ESCAPE: close_tform(si->form, FORM_SAVE | FORM_CLOSE_LATER); return true; case 82: // R show_rtti_window_cb(ud); return true; case 83: // S make_vtbl_struct_cb(ud); return true; case 88: // X show_vtbl_xrefs_window_cb(ud); return true; } } return false; }
void createCollabStatus() { HWND hwnd = NULL; TForm *form = create_tform("CollabREate", &hwnd); if (hwnd != NULL) { //hook_to_notification_point(HT_UI, ui_collab, form); open_tform(form, FORM_MDI | FORM_TAB | FORM_MENU | FORM_RESTORE | FORM_QWIDGET); } else { close_tform(form, FORM_SAVE); } }
//-------------------------------------------------------------------------- void idaapi run(int /*arg*/) { HWND hwnd = NULL; TForm *form = create_tform("Sample graph", &hwnd); if ( hwnd != NULL ) { // get a unique graph id netnode id; id.create("$ ugraph sample"); graph_viewer_t *gv = create_graph_viewer(form, id, callback, NULL, 0); open_tform(form, FORM_MDI|FORM_TAB|FORM_MENU); if ( gv != NULL ) { viewer_fit_window(gv); viewer_add_menu_item(gv, "User function", menu_callback, gv, NULL, 0); } } else { close_tform(form, 0); } }