{"id":193375,"date":"2020-11-15T13:13:55","date_gmt":"2020-11-15T05:13:55","guid":{"rendered":"http:\/\/4563.org\/?p=193375"},"modified":"2020-11-15T13:13:55","modified_gmt":"2020-11-15T05:13:55","slug":"sdl-%e4%b8%ad%e5%a6%82%e4%bd%95%e8%b0%83%e7%94%a8%e4%b8%80%e4%b8%aa%e8%83%bd%e8%be%93%e5%85%a5%e6%96%87%e6%9c%ac%e7%9a%84%e5%af%b9%e8%af%9d%e6%a1%86","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=193375","title":{"rendered":"SDL \u4e2d\u5982\u4f55\u8c03\u7528\u4e00\u4e2a\u80fd\u8f93\u5165\u6587\u672c\u7684\u5bf9\u8bdd\u6846"},"content":{"rendered":"<div>\n<div>\n<div>\n<h1>                  SDL \u4e2d\u5982\u4f55\u8c03\u7528\u4e00\u4e2a\u80fd\u8f93\u5165\u6587\u672c\u7684\u5bf9\u8bdd\u6846               <\/h1>\n<p> <\/p>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : zengming00 <\/span>  <span><i><\/i> 2<\/span> <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<\/p><\/div>\n<div isfirst=\"1\"> <\/p>\n<p>\u7528 C \u8bed\u8a00 SDL \u505a\u4e86\u4e2a\u56fe\u5f62\u5316\u7684\u5c0f\u4e1c\u897f\uff0cSDL \u5728 windows \u548c linux \u4e0b\u7528\u8d77\u6765\u8fd8\u662f\u5f88\u65b9\u4fbf\u7684\uff0c\u73b0\u5728\u6709\u4e2a\u9700\u6c42\uff0c\u9700\u8981\u80fd\u7f16\u8f91\u4e00\u6bb5\u6587\u672c\uff0c\u4f46 SDL \u6ca1\u6709\u63d0\u4f9b\u6587\u672c\u6846\u7684\u63a7\u4ef6\uff0c\u6211\u5c31\u60f3\uff0c\u80fd\u4e0d\u80fd\u8c03\u7528 dll \u7684\u65b9\u5f0f\u542f\u52a8\u4e00\u4e2a\u7528\u5176\u5b83\u8bed\u8a00\u5199\u7684\u5bf9\u8bdd\u6846\u6765\u5b8c\u6210\u8fd9\u4e2a\u529f\u80fd\uff1f windows API \u6709\u6ca1\u6709\u8fd9\u6837\u7684\u51fd\u6570\uff1f<\/p>\n<pre><code>#include &lt;windows.h&gt; int main(int argc, char const *argv[]) {     MessageBox(NULL, TEXT(\"message\"), TEXT(\"title\"), MB_OK);     reutrn 0; } <\/code><\/pre>\n<p>MessageBox \u5012\u662f\u5f88\u7b80\u5355\u4e00\u884c\u4ee3\u7801\u5c31\u51fa\u6765\u4e86\uff0c\u6709\u6ca1\u6709 InputBox \uff1f<\/p>\n<\/p><\/div>\n<div> <b>\u5927\u4f6c\u6709\u8a71\u8aaa<\/b> (<span>3<\/span>)        <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<ul>\n<li data-pid=\"4104398\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : ysc3839 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             Windows \u6ca1\u6709 InputBox \u3002<br \/>macOS \u5927\u6982\u53ef\u4ee5\u7528 NSAlert \u7684 accessoryView \u5b9e\u73b0\u3002<br \/>https:\/\/developer.apple.com\/documentation\/appkit\/nsalert\/1530575-accessoryview?language=objc                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4104399\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : levelworm <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u6211\u8001\u65e9\u8001\u65e9\u5199\u8fc7\u4e00\u4e2a\uff1a<br \/>https:\/\/github.com\/markus-zhang\/Dragonlance-Editor\/blob\/master\/DLEditor\/cTextInput.h<br \/>\u4e0d\u8fc7\u6211\u7684\u4ee3\u7801\u5f88\u4e71\u7684\uff0c\u4f30\u8ba1\u4f60\u770b\u4e0d\u660e\u767d\u3002\u5176\u5b9e\u6211\u81ea\u5df1\u73b0\u5728\u4e5f\u770b\u4e0d\u61c2\u4e86\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4104400\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : zengming00 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @levelworm \u6ca1\u5b66\u8fc7 c \u8279                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li>\n","protected":false},"excerpt":{"rendered":"<p>SDL \u4e2d\u5982\u4f55\u8c03\u7528\u4e00\u4e2a\u80fd\u8f93\u5165\u6587\u672c\u7684&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[],"tags":[],"_links":{"self":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/193375"}],"collection":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=193375"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/193375\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=193375"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=193375"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=193375"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}