13,874
社区成员
发帖
与我相关
我的任务
分享private: // User declarations
void __fastcall Fun();
void __fastcall WndProc(TMessage &Msg);//---------------------------------------------------------------------------
// 自定义的函数
void __fastcall TForm1::Fun()
{
Caption = ::GetTickCount();
}
//---------------------------------------------------------------------------
// 重载窗体WndProc函数
void __fastcall TForm1::WndProc(TMessage &Msg)
{
if (Msg.Msg == WM_SYSCOMMAND && Msg.WParam == SC_MINIMIZE)
{
Fun();
return;
}
TForm::WndProc(Msg);
}