摘要: 由于TPanel没有Canvas属性,属于其自身维护了其绘制的功能,要在其上画图,需要重载它的WM_PAINT消息。//.h文件class TForm1 : public TForm { __published: // IDE-managed Components TPanel *Panel1; TButton *Button1; private: // User declarations TWndMethod FPanelWndProc; void __fastcall PanelWndProc(TMessage& Message); public: // User declarat 阅读全文
posted @ 2011-04-14 23:24 luoshupeng 阅读(4031) 评论(0) 推荐(0) 编辑