| |

VerySource

 Forgot password?
 Register
Search
View: 677|Reply: 1

Modal window problem

[Copy link]

1

Threads

1

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 China

Post time: 2020-1-29 10:00:02
| Show all posts |Read mode
A modal window is displayed on the interface. I want the modal window to flicker when the user clicks other parts except the modal window. I don't know how to do it, please give pointers !!!
Reply

Use magic Report

0

Threads

2

Posts

3.00

Credits

Newbie

Rank: 1

Credits
3.00

 China

Post time: 2020-3-3 15:45:01
| Show all posts
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 ();
}
// ------------------------------------------------ ---------------------------
Reply

Use magic Report

You have to log in before you can reply Login | Register

Points Rules

Contact us|Archive|Mobile|CopyRight © 2008-2023|verysource.com ( 京ICP备17048824号-1 )

Quick Reply To Top Return to the list