因为是在CE里,所以是用Coredll PC机用的不是这个,可查MSDN [DllImport("coredll", EntryPoint = "AddFontResource")] [DllImport("coredll", EntryPoint = "SendMessage")]
SendMessage((IntPtr)0xffff, 0x001d, IntPtr.Zero, IntPtr.Zero); //通知其它正在运行的应用程序,有新字体注册了 //枚举字体
如果只是自己的程序使用的话,那么就没必要这么折腾了 : System.Drawing.Text.PrivateFontCollection privateFonts = new System.Drawing.Text.PrivateFontCollection();
|
因为是在CE里,所以是用Coredll PC机用的不是这个,可查MSDN [DllImport("coredll", EntryPoint = "AddFontResource")] [DllImport("coredll", EntryPoint = "SendMessage")]
SendMessage((IntPtr)0xffff, 0x001d, IntPtr.Zero, IntPtr.Zero); //通知其它正在运行的应用程序,有新字体注册了 //枚举字体
如果只是自己的程序使用的话,那么就没必要这么折腾了 : System.Drawing.Text.PrivateFontCollection privateFonts = new System.Drawing.Text.PrivateFontCollection();
|