protected override SciterXDef.LoadResult OnLoadData(SciterXDef.SCN_LOAD_DATA sld) { #if WINDOWS // Go figure //State.AppWindow.Icon = Properties.Resources.IconMain; _wnd.Icon = Properties.Resources.IconMain; PInvoke.User32.SendMessage(_wnd._hwnd, PInvoke.User32.WindowMessage.WM_SETICON, IntPtr.Zero, new Icon(Properties.Resources.IconMain, 16, 16).Handle); #endif if (sld.uri.StartsWith("archive://app/")) { // load resource from SciterArchive string path = sld.uri.Substring(14); byte[] data = _archive.Get(path); if (data != null) { _api.SciterDataReady(_wnd._hwnd, sld.uri, data, (uint)data.Length); } } return(base.OnLoadData(sld)); }
protected override SciterXDef.LoadResult OnLoadData(SciterXDef.SCN_LOAD_DATA sld) { #if DEBUG if (sld.uri.StartsWith("file://")) { Debug.Assert(File.Exists(sld.uri.Substring(7))); } #endif if (sld.uri.StartsWith("archive://app/")) { // load resource from SciterArchive string path = sld.uri.Substring(14); byte[] data = _archive.Get(path); if (data != null) { _api.SciterDataReady(sld.hwnd, sld.uri, data, (uint)data.Length); } } // call base to ensure LibConsole is loaded return(base.OnLoadData(sld)); }
protected override SciterXDef.LoadResult OnLoadData(SciterXDef.SCN_LOAD_DATA sld) { if (sld.uri.StartsWith("archive://app/")) { // load resource from SciterArchive string path = sld.uri.Substring(14); byte[] data = _archive.Get(path); if (data != null) { _api.SciterDataReady(_wnd._hwnd, sld.uri, data, (uint)data.Length); } } return(base.OnLoadData(sld)); }
protected override SciterXDef.LoadResult OnLoadData(SciterXDef.SCN_LOAD_DATA sld) { if (sld.uri.StartsWith("archive://app/")) { string path = sld.uri.Substring(14); byte[] data = archive.Get(path); if (data != null) { SciterX.API.SciterDataReady(window._hwnd, sld.uri, data, (uint)data.Length); } } return(base.OnLoadData(sld)); }
protected override SciterXDef.LoadResult OnLoadData(SciterXDef.SCN_LOAD_DATA sld) { SciterRequest rq = new SciterRequest(sld.requestId); string r1 = rq.Url; string r2 = rq.ContentUrl; var r3 = rq.RequestedType; if (sld.uri.StartsWith("archive://app/")) { // load resource from SciterArchive string path = sld.uri.Substring(14); byte[] data = _archive.Get(path); if (data != null) { _api.SciterDataReady(_wnd._hwnd, sld.uri, data, (uint)data.Length); } } return(SciterXDef.LoadResult.LOAD_OK); }