首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 开发语言 > C++ Builder >

模态窗口有关问题

2012-03-14 
模态窗口问题在界面上显示了一模态窗口,我想在用户点击除模态窗口外的其他部分时,该模态窗口闪烁,不知如何

模态窗口问题
在界面上显示了一模态窗口,我想在用户点击除模态窗口外的其他部分时,该模态窗口闪烁,不知如何做,请指点!!!

[解决办法]
unit1.h
//---------------------------------------
class TfmFile : public TForm
{
__published:// IDE-managed Components
...
private:// User declarations
...
public:// User declarations
...
protected:
void __fastcall CreateParams(Controls::TCreateParams &Params);
};
//---------------------------------------

unit1.cpp
//---------------------------------------
void __fastcall TfmFile::CreateParams(Controls::TCreateParams &Params)
{
TForm::CreateParams(Params);
Params.WndParent=GetActiveWindow();
}
//---------------------------------------

热点排行