TaskDialog is always on top in Visual C ++

Is there a way to make TaskDialog always on top (i.e. system modal)?

I checked the structure of TaskDialogConfig ( http://msdn.microsoft.com/en-us/library/bb787473(VS.85).aspx ), but I had no luck.

Does anyone know how to do this or if it is possible?

+4
source share
2 answers

I don't know if this is useful. But you can make the TaskDialog application modal if you provide the window handle with a member of the hwndParent configuration.

+1
source

Yes, there is a way. You need to use the TaskDialogIndirect function and configure the callback. In the callback, you get the window handle for the newly created TaskDialog. With this, you can call SetWindowPos with the necessary parameters.

-one
source

All Articles