5

Is there a way to make a TaskDialog always on top (ie, system modal)?

I've checked the TaskDialogConfig structure (http://msdn.microsoft.com/en-us/library/bb787473(VS.85).aspx), but I'm not having any luck.

Anyone know how to do it or if it's possible?

sean e
  • 11,792
  • 3
  • 44
  • 56
Disco
  • 515
  • 1
  • 6
  • 14

2 Answers2

1

Don't know if this is helpful. But you can make the TaskDialog application modal if you supply a window handle to the hwndParent member of the configuration.

Oliver Salzburg
  • 21,652
  • 20
  • 93
  • 138
0

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

Guest
  • 11