{"id":598,"date":"2008-05-15T20:22:14","date_gmt":"2008-05-15T20:22:14","guid":{"rendered":"http:\/\/6teen.ru\/?p=445"},"modified":"2008-05-15T20:22:14","modified_gmt":"2008-05-15T20:22:14","slug":"5647","status":"publish","type":"post","link":"http:\/\/pblog.ru\/lab\/?p=598","title":{"rendered":"\u041a\u0430\u043a \u0440\u0438\u0441\u043e\u0432\u0430\u0442\u044c \u043d\u0430 \u0440\u0430\u043c\u043a\u0435 \u0444\u043e\u0440\u043c\u044b"},"content":{"rendered":"<p>\u041a\u0430\u043a \u0440\u0438\u0441\u043e\u0432\u0430\u0442\u044c \u043d\u0430 \u0440\u0430\u043c\u043a\u0435 \u0444\u043e\u0440\u043c\u044b<br \/>\n<!--more--><\/p>\n<pre class=\"alt2\" style=\"margin:0px; padding:6px; border:1px inset; width:580px; height:320px; overflow:auto\"><div>\u041a\u0430\u043a \u0440\u0438\u0441\u043e\u0432\u0430\u0442\u044c \u043d\u0430 \u0440\u0430\u043c\u043a\u0435 \u0444\u043e\u0440\u043c\u044b\n\n\u041e\u0431\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u0439\u0442\u0435 \u0441\u043e\u0431\u044b\u0442\u0438\u0435 WM_NCPAINT. \u0412 \u043f\u0440\u0438\u043c\u0435\u0440\u0435 \u0440\u0430\u043c\u043a\u0430 \u043e\u0431\u0432\u043e\u0434\u0438\u0442\u0441\u044f \u043a\u0440\u0430\u0441\u043d\u043e\u0439 \u043b\u0438\u043d\u0438\u0435\u0439 \u0442\u043e\u043b\u0449\u0438\u043d\u043e\u0439 \u0432 1 \u043f\u0438\u043a\u0441\u0435\u043b.\n\ntype\n  TForm1 = class(TForm)\n  private\n  {Private declarations}\n  procedure WMNCPaint(var Msg: TWMNCPaint); message WM_NCPAINT;\n  public\n  {Public declarations}\nend;\n\nvar\n  Form1: TForm1;\nimplementation\n{$R *.DFM}\n\nprocedure TForm1.WMNCPaint(var Msg: TWMNCPaint);\nvar\n  dc : hDc;\n  Pen : hPen;\n  OldPen : hPen;\n  OldBrush : hBrush;\nbegin\n  inherited;\n  dc := GetWindowDC(Handle);\n  msg.Result := 1;\n  Pen := CreatePen(PS_SOLID, 1, RGB(255, 0, 0));\n  OldPen := SelectObject(dc, Pen);\n  OldBrush := SelectObject(dc, GetStockObject(NULL_BRUSH));\n  Rectangle(dc, 0,0, Form1.Width, Form1.Height);\n  SelectObject(dc, OldBrush);\n  SelectObject(dc, OldPen);\n  DeleteObject(Pen);\n  ReleaseDC(Handle, Canvas.Handle);\nend;\n<\/div><\/pre>\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u041a\u0430\u043a \u0440\u0438\u0441\u043e\u0432\u0430\u0442\u044c \u043d\u0430 \u0440\u0430\u043c\u043a\u0435 \u0444\u043e\u0440\u043c\u044b<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[72,386],"tags":[1671,1690,1034],"_links":{"self":[{"href":"http:\/\/pblog.ru\/lab\/index.php?rest_route=\/wp\/v2\/posts\/598"}],"collection":[{"href":"http:\/\/pblog.ru\/lab\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/pblog.ru\/lab\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/pblog.ru\/lab\/index.php?rest_route=\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"http:\/\/pblog.ru\/lab\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=598"}],"version-history":[{"count":0,"href":"http:\/\/pblog.ru\/lab\/index.php?rest_route=\/wp\/v2\/posts\/598\/revisions"}],"wp:attachment":[{"href":"http:\/\/pblog.ru\/lab\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=598"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/pblog.ru\/lab\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=598"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/pblog.ru\/lab\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=598"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}