13,826
社区成员
发帖
与我相关
我的任务
分享
//上面有点问题
//我的系统是GHOST SP3,按照你的方法,没有你那些操作也不能奔跑在前,试试这个,我使用没有问题
void __fastcall TForm1::Timer1Timer(TObject *Sender)
{
if(Form3->Showing)
Form3->Hide();
else
{
//Form3->FormStyle = fsStayOnTop;
Form3->Show();
SetWindowPos(Form3->Handle, HWND_TOPMOST, 0, 0,
0, 0, SWP_NOMOVE|SWP_NOSIZE);
}
}
//---------------------------------------------------------------------------
void __fastcall TForm1::Button3Click(TObject *Sender)
{
Form3 = new TForm3(this);
Form3->Show();
Timer1->Enabled = true;
SetWindowPos(Form3->Handle, HWND_TOPMOST, 0, 0,
0, 0, SWP_NOMOVE|SWP_NOSIZE);
}
//-------------------
//我的系统是GHOST SP3,按照你的方法,没有你那些操作也不能奔跑在前,试试这个,我使用没有问题
void __fastcall TForm1::Timer1Timer(TObject *Sender)
{
if(Form3->Showing)
Form3->Hide();
else
{
Form3->FormStyle = fsStayOnTop;
Form3->Show();
SetWindowPos(Form3->Handle, HWND_TOPMOST, 0, 0,
0, 0, SWP_NOMOVE|SWP_NOSIZE);
}
}
//---------------------------------------------------------------------------
void __fastcall TForm1::Button3Click(TObject *Sender)
{
Form3 = new TForm3(this);
Form3->Show();
Timer1->Enabled = true;
SetWindowPos(Form3->Handle, HWND_TOPMOST, 0, 0,
0, 0, SWP_NOMOVE|SWP_NOSIZE);
}
//-------------------
void __fastcall TForm1::Timer1Timer(TObject *Sender)
{
if(Form3->Showing)
Form3->Hide();
else
Form3->Show();
}
//---------------------------------------------------------------------------
void __fastcall TForm1::Button3Click(TObject *Sender)
{
Form3 = new TForm3(this);
Form3->Show();
}