184 |
} |
} |
185 |
|
|
186 |
|
|
187 |
#define ico2idx(ico) imagelist_getindex (kmi->iconlist, (ico)) |
#define ico2idx(ico) km_imagelist_getindex (kmi->iconlist, (ico)) |
188 |
/* Create a new toolbar window with a pre-defined list of buttons. */ |
/* Create a new toolbar window with a pre-defined list of buttons. */ |
189 |
static HWND |
static HWND |
190 |
create_toolbar (HWND dlg, struct km_info_s *kmi) |
create_toolbar (HWND dlg, struct km_info_s *kmi) |
1103 |
Header_GetItem (hheader, idx, &hdi); |
Header_GetItem (hheader, idx, &hdi); |
1104 |
hdi.fmt |= HDF_IMAGE | HDF_BITMAP_ON_RIGHT; |
hdi.fmt |= HDF_IMAGE | HDF_BITMAP_ON_RIGHT; |
1105 |
if (!ctx->ext_chkbox) |
if (!ctx->ext_chkbox) |
1106 |
hdi.iImage = imagelist_getindex (kmi->iconlist, |
hdi.iImage = km_imagelist_getindex (kmi->iconlist, |
1107 |
sort_desc? IMI_SORT_DOWNARROW : |
sort_desc? IMI_SORT_DOWNARROW : |
1108 |
IMI_SORT_UPARROW); |
IMI_SORT_UPARROW); |
1109 |
else |
else |
1110 |
hdi.iImage = sort_desc? KEY_IMG_SORT_DOWN : KEY_IMG_SORT_UP; |
hdi.iImage = sort_desc? KEY_IMG_SORT_DOWN : KEY_IMG_SORT_UP; |
1111 |
Header_SetItem (hheader, idx, &hdi); |
Header_SetItem (hheader, idx, &hdi); |
1392 |
memset (kmi, 0, sizeof (struct km_info_s)); |
memset (kmi, 0, sizeof (struct km_info_s)); |
1393 |
kmi->lv_idx = -1; |
kmi->lv_idx = -1; |
1394 |
kmi->hwnd_sep = register_separator_window (dlg, kmi); |
kmi->hwnd_sep = register_separator_window (dlg, kmi); |
1395 |
imagelist_load (dlg, &kmi->iconlist); |
km_imagelist_load (dlg, &kmi->iconlist); |
1396 |
translate_menu_strings (dlg); |
translate_menu_strings (dlg); |
1397 |
SetWindowText (dlg, _("Key Manager")); |
SetWindowText (dlg, _("Key Manager")); |
1398 |
|
|
1449 |
|
|
1450 |
case WM_DESTROY: |
case WM_DESTROY: |
1451 |
save_column_info (kmi); |
save_column_info (kmi); |
1452 |
imagelist_destroy (kmi->iconlist); |
km_imagelist_destroy (kmi->iconlist); |
1453 |
if (kmi->kl) { |
if (kmi->kl) { |
1454 |
keylist_delete (kmi->kl); |
keylist_delete (kmi->kl); |
1455 |
kmi->kl = NULL; |
kmi->kl = NULL; |
1516 |
LPTBNOTIFY lpTbNotify; |
LPTBNOTIFY lpTbNotify; |
1517 |
lpTbNotify = (LPTBNOTIFY)lparam; |
lpTbNotify = (LPTBNOTIFY)lparam; |
1518 |
if (lpTbNotify->iItem < (sizeof (tbb) / sizeof (tb_button_s))) { |
if (lpTbNotify->iItem < (sizeof (tbb) / sizeof (tb_button_s))) { |
1519 |
lpTbNotify->tbButton.iBitmap = imagelist_getindex (kmi->iconlist, |
lpTbNotify->tbButton.iBitmap = km_imagelist_getindex (kmi->iconlist, |
1520 |
tbb[lpTbNotify->iItem].icon); |
tbb[lpTbNotify->iItem].icon); |
1521 |
lpTbNotify->tbButton.idCommand = tbb[lpTbNotify->iItem].command; |
lpTbNotify->tbButton.idCommand = tbb[lpTbNotify->iItem].command; |
1522 |
lpTbNotify->tbButton.fsState = TBSTATE_ENABLED; |
lpTbNotify->tbButton.fsState = TBSTATE_ENABLED; |