摘要:
由于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 阅读全文