{"id":1984,"date":"2024-08-07T09:55:22","date_gmt":"2024-08-07T01:55:22","guid":{"rendered":"https:\/\/support.foxitsoftware.cn\/?p=1984"},"modified":"2024-11-20T14:53:29","modified_gmt":"2024-11-20T06:53:29","slug":"%e3%80%90plugin-sdk%e3%80%91%e5%a6%82%e4%bd%95%e5%88%9b%e5%bb%ba%e8%bf%9b%e4%b8%80%e4%b8%aa%e5%ba%a6%e6%9d%a1%ef%bc%9f","status":"publish","type":"post","link":"https:\/\/support.fuxinsoft.cn\/?p=1984","title":{"rendered":"\u5982\u4f55\u521b\u5efa\u4e00\u4e2a\u8fdb\u5ea6\u6761\uff1f"},"content":{"rendered":"\n<p>\u521b\u5efa\u4e00\u4e2a\u8fdb\u5ea6\u6761\uff0c\u663e\u793a\u8fdb\u5ea6\u7684\u793a\u4f8b\u4ee3\u7801\u5982\u4e0b\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code has-body-font-family\"><code>void Test_Progress()\n{\n\n FR_UIProgress uipro;\n uipro = FRUIProgressCreate(FRAppGetMainFrameWnd(), true);\n FS_WideString localLang = FSWideStringNew();\n FRLanguageGetLocalLangName(&amp;localLang);\n FS_LPCWSTR lpcwstr = FSWideStringCastToLPCWSTR(localLang);\n if (FSWideStringEqual(localLang, L\"zh-CN\"))\n {\n FRUIProgressSetText(uipro, L\"\u6b63\u5728\u8f6c\u6362...\");\n }\n else\n {\n FRUIProgressSetText(uipro, L\"Converting...\");\n }\n\n \/\/ lpcwstr)\n int n_1oop = 10; int n_set = 0;\n while (n_1oop-- &gt; 0) {\n n_set += 10;\n FRUIProgressSetCurrValue(uipro, n_set);\n Sleep(500);\n }\n\n if (uipro != nullptr) {\n FRUIProgressDoCancel(uipro, true);\n\n FRUIProgressDestroy(uipro);\n }\n\n \n}<\/code><\/pre>\n\n\n\n<p>\u8bf7\u60a8\u6ce8\u610f\uff0c\u8fdb\u5ea6\u6761\u4e0d\u80fd\u5728\u7ebf\u7a0b\u91cc\u9500\u6bc1\u3002\u8fdb\u5ea6\u6761UI\u662f\u8981\u963b\u585e\u5f53\u524d\u8fdb\u7a0b\uff0c\u8ba9\u754c\u9762\u4e0a\u4e0d\u80fd\u64cd\u4f5c\u5176\u5b83\uff1b\u5982\u679c\u5728\u7ebf\u7a0b\u91cc\u9500\u6bc1\u4f1a\u629b\u5f02\u5e38\u3002<br><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u521b\u5efa\u4e00\u4e2a\u8fdb\u5ea6\u6761\uff0c\u663e\u793a\u8fdb\u5ea6\u7684\u793a\u4f8b\u4ee3\u7801\u5982\u4e0b\uff1a \u8bf7\u60a8\u6ce8\u610f\uff0c\u8fdb\u5ea6\u6761\u4e0d\u80fd\u5728\u7ebf\u7a0b\u91cc\u9500\u6bc1\u3002\u8fdb\u5ea6\u6761UI\u662f\u8981\u963b\u585e\u5f53\u524d\u8fdb\u7a0b\uff0c\u8ba9\u754c\u9762 [&hellip;]<\/p>\n","protected":false},"author":31,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[90],"tags":[],"class_list":["post-1984","post","type-post","status-publish","format-standard","hentry","category-plugin-sdk"],"pp_statuses_selecting_workflow":false,"pp_workflow_action":"current","pp_status_selection":"publish","_links":{"self":[{"href":"https:\/\/support.fuxinsoft.cn\/index.php?rest_route=\/wp\/v2\/posts\/1984","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/support.fuxinsoft.cn\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/support.fuxinsoft.cn\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/support.fuxinsoft.cn\/index.php?rest_route=\/wp\/v2\/users\/31"}],"replies":[{"embeddable":true,"href":"https:\/\/support.fuxinsoft.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1984"}],"version-history":[{"count":4,"href":"https:\/\/support.fuxinsoft.cn\/index.php?rest_route=\/wp\/v2\/posts\/1984\/revisions"}],"predecessor-version":[{"id":3389,"href":"https:\/\/support.fuxinsoft.cn\/index.php?rest_route=\/wp\/v2\/posts\/1984\/revisions\/3389"}],"wp:attachment":[{"href":"https:\/\/support.fuxinsoft.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1984"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/support.fuxinsoft.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1984"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/support.fuxinsoft.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1984"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}