• R/O
  • SSH
  • HTTPS

vima19: Commit


Commit MetaInfo

Revision217 (tree)
Time2020-05-14 17:45:52
Authorhgtterry

Log Message

Vima19 TextLib 14/05/20

Change Summary

Incremental Difference

--- Anim19_OSDN/VM_TextLib.cpp (revision 216)
+++ Anim19_OSDN/VM_TextLib.cpp (revision 217)
@@ -68,6 +68,7 @@
6868 SendDlgItemMessage(hDlg, IDC_EXPORTALL, WM_SETFONT, (WPARAM)App->Font_CB15, MAKELPARAM(TRUE, 0));
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));
71+ SendDlgItemMessage(hDlg, IDC_ADD, WM_SETFONT, (WPARAM)App->Font_CB15, MAKELPARAM(TRUE, 0));
7172
7273 App->CL_Vm_TextLib->Entry = new BitmapEntry;
7374
@@ -146,6 +147,13 @@
146147 return CDRF_DODEFAULT;
147148 }
148149
150+ if (some_item->idFrom == IDC_ADD && some_item->code == NM_CUSTOMDRAW)
151+ {
152+ LPNMCUSTOMDRAW item = (LPNMCUSTOMDRAW)some_item;
153+ App->Custom_Button_Normal(item);
154+ return CDRF_DODEFAULT;
155+ }
156+
149157 return CDRF_DODEFAULT;
150158 }
151159
@@ -189,14 +197,14 @@
189197 //--------------------------------- Add -----------------------
190198 if (LOWORD(wParam) == IDC_ADD)
191199 {
192- /*int test = C_File->OpenFileCom("Texture Files ( *.bmp *.tga )\0*.bmp;*.tga\0*.tga\0*.tga\0*.bmp\0*.bmp\0", "Add Texture", "Bitmap Files");
200+ int test = App->CL_Vm_TextLib->Txt_OpenFile("Texture Files ( *.bmp *.tga )\0*.bmp;*.tga\0*.tga\0*.tga\0*.bmp\0*.bmp\0", "Add Texture", "Bitmap Files");
193201 if (test == 0)
194202 {
195203 return 1;
196- }*/
204+ }
197205
198- //App->CL_Vm_TextLib->AddTexture(NULL, App->CL_Vm_TextLib->Txt_FileName);
199- //App->CL_Vm_TextLib->p_Data->Dirty = 1; // it as changed reqest save
206+ App->CL_Vm_TextLib->AddTexture(NULL, App->CL_Vm_TextLib->Txt_FileName);
207+ App->CL_Vm_TextLib->p_Data->Dirty = 1; // it as changed reqest save
200208 return TRUE;
201209 }
202210 //--------------------------------- Save ----------------------
Show on old repository browser