{"id":640,"date":"2008-05-18T01:10:11","date_gmt":"2008-05-18T01:10:11","guid":{"rendered":"http:\/\/6teen.ru\/?p=460"},"modified":"2008-05-18T01:10:11","modified_gmt":"2008-05-18T01:10:11","slug":"8635","status":"publish","type":"post","link":"http:\/\/pblog.ru\/lab\/?p=640","title":{"rendered":"\u041a\u0430\u043a \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0440\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u0441\u043a\u043e\u0435 \u043e\u043a\u043d\u043e \u0441 \u0444\u043e\u043d\u043e\u0432\u044b\u043c \u0440\u0438\u0441\u0443\u043d\u043a\u043e\u043c \u0432 \u043a\u043b\u0438\u0435\u043d\u0442\u0441\u043a\u043e\u043c"},"content":{"rendered":"<p>\u041a\u0430\u043a \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0440\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u0441\u043a\u043e\u0435 \u043e\u043a\u043d\u043e \u0441 \u0444\u043e\u043d\u043e\u0432\u044b\u043c \u0440\u0438\u0441\u0443\u043d\u043a\u043e\u043c \u0432 \u043a\u043b\u0438\u0435\u043d\u0442\u0441\u043a\u043e\u043c<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 \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0440\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u0441\u043a\u043e\u0435 \u043e\u043a\u043d\u043e \u0441 \u0444\u043e\u043d\u043e\u0432\u044b\u043c \u0440\u0438\u0441\u0443\u043d\u043a\u043e\u043c \u0432 \u043a\u043b\u0438\u0435\u043d\u0442\u0441\u043a\u043e\u043c\n\n\u0421\u043e\u0437\u0434\u0430\u0439\u0442\u0435 \u043d\u043e\u0432\u044b\u0439 \u043f\u0440\u043e\u0435\u043a\u0442.\n\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0435 FormStyle \u0444\u043e\u0440\u043c\u044b \u0432 fsMDIForm\n\u0420\u0430\u0437\u043c\u0435\u0441\u0442\u0438\u0442\u0435 Image \u043d\u0430 \u0444\u043e\u0440\u043c\u0435 \u0438 \u0437\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u0435 \u0432 \u043d\u0435\u0433\u043e \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0443.\n\u041d\u0430\u0439\u0434\u0438\u0442\u0435 { Private Declarations } \u0432 \u043e\u0431\u044c\u044f\u0432\u043b\u0435\u043d\u0438\u0438 \u0444\u043e\u0440\u043c\u044b \u0438\n\u0434\u043e\u0431\u0430\u044c\u0442\u0435 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435 \u0441\u0442\u0440\u043e\u043a\u0438:\n\nFClientInstance : TFarProc;\nFPrevClientProc : TFarProc;\nprocedure ClientWndProc(var Message: TMessage);\n\n\u0414\u043e\u0431\u0430\u044c\u0442\u0435 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435 \u0441\u0442\u0440\u043e\u043a\u0438 \u0432 \u0440\u0430\u0437\u0434\u0435\u043b\u0435 implementation:\n\nprocedure TMainForm.ClientWndProc(var Message: TMessage);\nvar\nDc : hDC;\nRow : Integer;\nCol : Integer;\nbegin\nwith Message do\ncase Msg of\nWM_ERASEBKGND:\nbegin\n\nDc := TWMEraseBkGnd(Message).Dc;\nfor R!\now := 0 to ClientHeight div Image1.Picture.Height do\nfor Col := 0 to ClientWidth div Image1.Picture.Width do\nBitBlt(Dc,\nCol * Image1.Picture.Width,\nRow * Image1.Picture.Height,\nImage1.Picture.Width,\nImage1.Picture.Height,\nImage1.Picture.Bitmap.Canvas.Handle,\n0,\n0,\nSRCCOPY);\n\nResult := 1;\nend;\nels!\ne\nResult := CallWindowProc(FPrevClientProc,\nClientHandle,\nMsg,\nwParam,\nlParam);\nend;\nend;\n\n\u0412 \u043c\u0435\u0442\u043e\u0434\u0435 \u0444\u043e\u0440\u043c\u044b OnCreate \u0434\u043e\u0431\u0430\u0432\u044c\u0442\u0435:\n\nFClientInstance := MakeObjectInstance(ClientWndProc);\nFPrevClientProc := Pointer(GetWindowLong(ClientHandle, GWL_WNDPROC));\nSetWindowLong(ClientHandle,\nGWL_WNDPROC, LongInt(FClientInstance));\n\n\u0414\u043e\u0431\u0430\u0432\u044c\u0442\u0435 \u043a \u043f\u0440\u043e\u0435\u043a\u0442\u0443 \u043d\u043e\u0432\u0443\u044e \u0444\u043e\u0440\u043c\u0443 \u0438 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0435 \u0435\u0435 \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u043e FormStyle \u0432\nfsMDIChild.\n\n\u0423 \u0412\u0430\u0441 \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u0441\u044f  MDI-\u043f\u0440\u043e\u0435\u043a\u0442 \u0441 \"\u043e\u0431\u043e\u044f\u043c\u0438\" \u0432 \u043a\u043b\u0438\u0435\u043d\u0442\u0441\u043a\u043e\u0439 \u043e\u0431\u043b\u0430\u0441\u0442\u0438 MDI \u0444\u043e\u0440\u043c\u044b.\n<\/div><\/pre>\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u041a\u0430\u043a \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0440\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u0441\u043a\u043e\u0435 \u043e\u043a\u043d\u043e \u0441 \u0444\u043e\u043d\u043e\u0432\u044b\u043c \u0440\u0438\u0441\u0443\u043d\u043a\u043e\u043c \u0432 \u043a\u043b\u0438\u0435\u043d\u0442\u0441\u043a\u043e\u043c<\/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":[1370,873,1691,1692,1829],"_links":{"self":[{"href":"http:\/\/pblog.ru\/lab\/index.php?rest_route=\/wp\/v2\/posts\/640"}],"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=640"}],"version-history":[{"count":0,"href":"http:\/\/pblog.ru\/lab\/index.php?rest_route=\/wp\/v2\/posts\/640\/revisions"}],"wp:attachment":[{"href":"http:\/\/pblog.ru\/lab\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=640"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/pblog.ru\/lab\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=640"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/pblog.ru\/lab\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=640"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}