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

vima19: Commit


Commit MetaInfo

Revision218 (tree)
Time2020-10-10 01:14:39
Authorhgtterry

Log Message

09/10/20

Change Summary

Incremental Difference

--- Anim19_OSDN/GD19_App.h (revision 217)
+++ Anim19_OSDN/GD19_App.h (revision 218)
@@ -20,6 +20,7 @@
2020 3. This notice may not be removed or altered from any source
2121 distribution.
2222
23+https://sourceforge.net/projects/hazel25/
2324 ebopster
2425 */
2526
--- Anim19_OSDN/VM_TextLib.cpp (revision 217)
+++ Anim19_OSDN/VM_TextLib.cpp (revision 218)
@@ -69,6 +69,8 @@
6969 SendDlgItemMessage(hDlg, IDC_RENAME, WM_SETFONT, (WPARAM)App->Font_CB15, MAKELPARAM(TRUE, 0));
7070 SendDlgItemMessage(hDlg, IDC_EXPORTSELECTED, WM_SETFONT, (WPARAM)App->Font_CB15, MAKELPARAM(TRUE, 0));
7171 SendDlgItemMessage(hDlg, IDC_ADD, WM_SETFONT, (WPARAM)App->Font_CB15, MAKELPARAM(TRUE, 0));
72+ SendDlgItemMessage(hDlg, IDC_SAVEAS, WM_SETFONT, (WPARAM)App->Font_CB15, MAKELPARAM(TRUE, 0));
73+ SendDlgItemMessage(hDlg, IDC_SAVE, WM_SETFONT, (WPARAM)App->Font_CB15, MAKELPARAM(TRUE, 0));
7274
7375 App->CL_Vm_TextLib->Entry = new BitmapEntry;
7476
@@ -154,6 +156,20 @@
154156 return CDRF_DODEFAULT;
155157 }
156158
159+ if (some_item->idFrom == IDC_SAVEAS && some_item->code == NM_CUSTOMDRAW)
160+ {
161+ LPNMCUSTOMDRAW item = (LPNMCUSTOMDRAW)some_item;
162+ App->Custom_Button_Normal(item);
163+ return CDRF_DODEFAULT;
164+ }
165+
166+ if (some_item->idFrom == IDC_SAVE && some_item->code == NM_CUSTOMDRAW)
167+ {
168+ LPNMCUSTOMDRAW item = (LPNMCUSTOMDRAW)some_item;
169+ App->Custom_Button_Normal(item);
170+ return CDRF_DODEFAULT;
171+ }
172+
157173 return CDRF_DODEFAULT;
158174 }
159175
@@ -172,7 +188,9 @@
172188 MB_YESNOCANCEL);
173189
174190 if (Result == IDCANCEL)
191+ {
175192 return 0;
193+ }
176194
177195 if (Result == IDYES)
178196 {
@@ -205,6 +223,8 @@
205223
206224 App->CL_Vm_TextLib->AddTexture(NULL, App->CL_Vm_TextLib->Txt_FileName);
207225 App->CL_Vm_TextLib->p_Data->Dirty = 1; // it as changed reqest save
226+
227+ App->Say("Texture Added");
208228 return TRUE;
209229 }
210230 //--------------------------------- Save ----------------------
@@ -211,7 +231,8 @@
211231 if (LOWORD(wParam) == IDC_SAVE)
212232 {
213233
214- //App->CL_Vm_TextLib->Save(App->CL_Vm_TextLib->p_Data->TXLFileName);
234+ App->CL_Vm_TextLib->Save(App->CL_Vm_TextLib->p_Data->TXLFileName);
235+ App->Say("Saved");
215236 return TRUE;
216237 }
217238 //--------------------------------- Rename ----------------------
@@ -226,7 +247,8 @@
226247 if (LOWORD(wParam) == IDC_SAVEAS)
227248 {
228249
229- //App->CL_Vm_TextLib->Save(NULL);
250+ App->CL_Vm_TextLib->Save(NULL);
251+ App->Say("Saved");
230252 return TRUE;
231253 }
232254
@@ -267,6 +289,7 @@
267289 if (LOWORD(wParam) == IDC_EXPORTSELECTED)
268290 {
269291 App->CL_Vm_TextLib->TPack_ExtractSelected();
292+ App->Say("Texture Exported");
270293 return TRUE;
271294 }
272295
Show on old repository browser