| 3057 | } |
| 3058 | |
| 3059 | INT_PTR CALLBACK ImportBookmarkCallB(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam) |
| 3060 | { |
| 3061 | static int* tmpImportBookmarkProps; |
| 3062 | |
| 3063 | static HWND hTipMerge; |
| 3064 | static HWND hTipIgnore; |
| 3065 | static HWND hTipOverwrite; |
| 3066 | static HWND hTipKeep; |
| 3067 | static HWND hTipReassign; |
| 3068 | static HWND hTipDiscard; |
| 3069 | static HWND hTipConfirm; |
| 3070 | |
| 3071 | switch (uMsg) |
| 3072 | { |
| 3073 | case WM_INITDIALOG: |
| 3074 | CenterWindow(hwndDlg); |
| 3075 | tmpImportBookmarkProps = (int*)lParam; |
| 3076 | if (!(*tmpImportBookmarkProps & IMPORT_OVERWRITE_NO_PROMPT)) |
| 3077 | CheckDlgButton(hwndDlg, IDC_CHECK_BOOKMARKIMPORTOPTION_CONFIRMEVERYTIMEONCONFLICT, BST_CHECKED); |
| 3078 | |
| 3079 | if (*tmpImportBookmarkProps & IMPORT_DISCARD_ORIGINAL) |
| 3080 | { |
| 3081 | CheckDlgButton(hwndDlg, IDC_RADIO_BOOKMARKIMPORTOPTION_DISCARD, BST_CHECKED); |
| 3082 | |
| 3083 | EnableWindow(GetDlgItem(hwndDlg, IDC_GROUP_BOOKMARKIMPORTOPTION_SOLVECONFLICT), FALSE); |
| 3084 | EnableWindow(GetDlgItem(hwndDlg, IDC_TEXT_BOOKMARKIMPORTOPTION_BOOKMARK), FALSE); |
| 3085 | EnableWindow(GetDlgItem(hwndDlg, IDC_TEXT_BOOKMARKIMPORTOPTION_SHORTCUT), FALSE); |
| 3086 | EnableWindow(GetDlgItem(hwndDlg, IDC_RADIO_BOOKMARKIMPORTOPTION_BOOKMARKIGNORE), FALSE); |
| 3087 | EnableWindow(GetDlgItem(hwndDlg, IDC_RADIO_BOOKMARKIMPORTOPTION_BOOKMARKOVERWRITE), FALSE); |
| 3088 | EnableWindow(GetDlgItem(hwndDlg, IDC_RADIO_BOOKMARKIMPORTOPTION_SHORTCUTKEEP), FALSE); |
| 3089 | EnableWindow(GetDlgItem(hwndDlg, IDC_RADIO_BOOKMARKIMPORTOPTION_SHORTCUTREASSIGN), FALSE); |
| 3090 | } |
| 3091 | else |
| 3092 | { |
| 3093 | CheckDlgButton(hwndDlg, IDC_RADIO_BOOKMARKIMPORTOPTION_MERGE, BST_CHECKED); |
| 3094 | |
| 3095 | EnableWindow(GetDlgItem(hwndDlg, IDC_GROUP_BOOKMARKIMPORTOPTION_SOLVECONFLICT), TRUE); |
| 3096 | EnableWindow(GetDlgItem(hwndDlg, IDC_TEXT_BOOKMARKIMPORTOPTION_BOOKMARK), TRUE); |
| 3097 | EnableWindow(GetDlgItem(hwndDlg, IDC_TEXT_BOOKMARKIMPORTOPTION_SHORTCUT), TRUE); |
| 3098 | EnableWindow(GetDlgItem(hwndDlg, IDC_RADIO_BOOKMARKIMPORTOPTION_BOOKMARKIGNORE), TRUE); |
| 3099 | EnableWindow(GetDlgItem(hwndDlg, IDC_RADIO_BOOKMARKIMPORTOPTION_BOOKMARKOVERWRITE), TRUE); |
| 3100 | EnableWindow(GetDlgItem(hwndDlg, IDC_RADIO_BOOKMARKIMPORTOPTION_SHORTCUTKEEP), TRUE); |
| 3101 | EnableWindow(GetDlgItem(hwndDlg, IDC_RADIO_BOOKMARKIMPORTOPTION_SHORTCUTREASSIGN), TRUE); |
| 3102 | } |
| 3103 | |
| 3104 | if (*tmpImportBookmarkProps & IMPORT_OVERWRITE_BOOKMARK) |
| 3105 | CheckDlgButton(hwndDlg, IDC_RADIO_BOOKMARKIMPORTOPTION_BOOKMARKOVERWRITE, BST_CHECKED); |
| 3106 | else |
| 3107 | CheckDlgButton(hwndDlg, IDC_RADIO_BOOKMARKIMPORTOPTION_BOOKMARKIGNORE, BST_CHECKED); |
| 3108 | |
| 3109 | if (*tmpImportBookmarkProps & IMPORT_OVERWRITE_SHORTCUT) |
| 3110 | CheckDlgButton(hwndDlg, IDC_RADIO_BOOKMARKIMPORTOPTION_SHORTCUTREASSIGN, BST_CHECKED); |
| 3111 | else |
| 3112 | CheckDlgButton(hwndDlg, IDC_RADIO_BOOKMARKIMPORTOPTION_SHORTCUTKEEP, BST_CHECKED); |
| 3113 | |
| 3114 | TOOLINFO info; |
| 3115 | memset(&info, 0, sizeof(TOOLINFO)); |
| 3116 | info.cbSize = sizeof(TOOLINFO); |
nothing calls this directly
no test coverage detected