From 18 Jan, 2021 0:00 UTC: All services will be temporary unavailable for maintenance
  • R/O
  • SSH
  • HTTPS

vima19: Commit


Commit MetaInfo

Revision216 (tree)
Time2020-05-14 17:24:36
Authorhgtterry

Log Message

Vima19 TextLib 14/05/20

Change Summary

Incremental Difference

--- Anim19_OSDN/VM_TextLib.cpp (revision 215)
+++ Anim19_OSDN/VM_TextLib.cpp (revision 216)
@@ -26,6 +26,8 @@
2626 #include "GD19_App.h"
2727 #include "VM_TextLib.h"
2828
29+#pragma warning( disable : 4800)
30+
2931 VM_TextLib::VM_TextLib()
3032 {
3133 Entry = nullptr;
@@ -65,7 +67,7 @@
6567 SendDlgItemMessage(hDlg, IDC_TEXTURELIST, WM_SETFONT, (WPARAM)App->Font_CB15, MAKELPARAM(TRUE, 0));
6668 SendDlgItemMessage(hDlg, IDC_EXPORTALL, WM_SETFONT, (WPARAM)App->Font_CB15, MAKELPARAM(TRUE, 0));
6769 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));
6971
7072 App->CL_Vm_TextLib->Entry = new BitmapEntry;
7173
@@ -137,6 +139,13 @@
137139 return CDRF_DODEFAULT;
138140 }
139141
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+
140149 return CDRF_DODEFAULT;
141150 }
142151
@@ -249,8 +258,7 @@
249258 //--------------------------------- Save AS --------------------
250259 if (LOWORD(wParam) == IDC_EXPORTSELECTED)
251260 {
252-
253- //App->CL_Vm_TextLib->TPack_ExtractSelected();
261+ App->CL_Vm_TextLib->TPack_ExtractSelected();
254262 return TRUE;
255263 }
256264
@@ -1187,8 +1195,9 @@
11871195 //----------------------------------------------
11881196
11891197 // Ouput to the current directory
1198+
11901199 GetCurrentDirectory(MAX_PATH, szPath);
1191-
1200+
11921201 nSel = SendDlgItemMessage(p_Data->hwnd, IDC_TEXTURELIST, LB_GETCURSEL, (WPARAM)0, (LPARAM)0);
11931202 if (nSel == LB_ERR)
11941203 {
Show on old repository browser