Home > Software engineering >  Scintillation effect when dialog box loses focus
Scintillation effect when dialog box loses focus

Time:10-01

Standard dialog when loses focus, there will be flashing effect.
I created a modal dialog box, then the dialog style is set to "None", also is to remove the title bar, the borders,
In addition to the title bar, after the border, nature is not flashing,
I want to achieve the effect, through repeated stroke, but now there is a problem
Which function is to draw in it?
I tried OnKillFocus, with OnActivate, found no,
The mouse to click somewhere other than the dialog (within the main program), the above two functions will not response.

CodePudding user response:

The FlashWindow?

CodePudding user response:

For, to achieve the effect of the FlashWindow, because there is no borders, the title bar, so the FlashWindow already can't use,
Want to achieve

CodePudding user response:

Dialog box loses focus, call OnNcPaint () redraw Caption,

CodePudding user response:

Loses focus is OnKillFocus response and the dialog box, but I only created when response time, the other doesn't response, such as clicking outside dialog.
So can't call OnNcPaint

CodePudding user response:

refer to the second floor CZCWZW response:
yes, to achieve the effect of the FlashWindow, because there is no borders, the title bar, so the FlashWindow already can't use,
To achieve

Have the corresponding taskbar buttons, FlashWindowEx flicker,
No, I'm afraid can only custom painting,
  • Related