Vima19 TextLib 14/05/20
@@ -26,6 +26,8 @@ | ||
26 | 26 | #include "GD19_App.h" |
27 | 27 | #include "VM_TextLib.h" |
28 | 28 | |
29 | +#pragma warning( disable : 4800) | |
30 | + | |
29 | 31 | VM_TextLib::VM_TextLib() |
30 | 32 | { |
31 | 33 | Entry = nullptr; |
@@ -65,7 +67,7 @@ | ||
65 | 67 | SendDlgItemMessage(hDlg, IDC_TEXTURELIST, WM_SETFONT, (WPARAM)App->Font_CB15, MAKELPARAM(TRUE, 0)); |
66 | 68 | SendDlgItemMessage(hDlg, IDC_EXPORTALL, WM_SETFONT, (WPARAM)App->Font_CB15, MAKELPARAM(TRUE, 0)); |
67 | 69 | SendDlgItemMessage(hDlg, IDC_RENAME, WM_SETFONT, (WPARAM)App->Font_CB15, MAKELPARAM(TRUE, 0)); |
68 | - | |
70 | + SendDlgItemMessage(hDlg, IDC_EXPORTSELECTED, WM_SETFONT, (WPARAM)App->Font_CB15, MAKELPARAM(TRUE, 0)); | |
69 | 71 | |
70 | 72 | App->CL_Vm_TextLib->Entry = new BitmapEntry; |
71 | 73 |
@@ -137,6 +139,13 @@ | ||
137 | 139 | return CDRF_DODEFAULT; |
138 | 140 | } |
139 | 141 | |
142 | + if (some_item->idFrom == IDC_EXPORTSELECTED && some_item->code == NM_CUSTOMDRAW) | |
143 | + { | |
144 | + LPNMCUSTOMDRAW item = (LPNMCUSTOMDRAW)some_item; | |
145 | + App->Custom_Button_Normal(item); | |
146 | + return CDRF_DODEFAULT; | |
147 | + } | |
148 | + | |
140 | 149 | return CDRF_DODEFAULT; |
141 | 150 | } |
142 | 151 |
@@ -249,8 +258,7 @@ | ||
249 | 258 | //--------------------------------- Save AS -------------------- |
250 | 259 | if (LOWORD(wParam) == IDC_EXPORTSELECTED) |
251 | 260 | { |
252 | - | |
253 | - //App->CL_Vm_TextLib->TPack_ExtractSelected(); | |
261 | + App->CL_Vm_TextLib->TPack_ExtractSelected(); | |
254 | 262 | return TRUE; |
255 | 263 | } |
256 | 264 |
@@ -1187,8 +1195,9 @@ | ||
1187 | 1195 | //---------------------------------------------- |
1188 | 1196 | |
1189 | 1197 | // Ouput to the current directory |
1198 | + | |
1190 | 1199 | GetCurrentDirectory(MAX_PATH, szPath); |
1191 | - | |
1200 | + | |
1192 | 1201 | nSel = SendDlgItemMessage(p_Data->hwnd, IDC_TEXTURELIST, LB_GETCURSEL, (WPARAM)0, (LPARAM)0); |
1193 | 1202 | if (nSel == LB_ERR) |
1194 | 1203 | { |