udfMsgBox always on top

Started by erezpaz, March 27, 2017, 10:44:36 AM

Previous topic - Next topic

erezpaz

Hi

I am using udfMsgBox to create a message bog with a windows icon relevant to the message. If i use dynamic dialog and the udfMsgBox, sometimes this message go behind the dialog and only if user move the dialog in the screen he can see the message. This doesn't happened if using regular message function. How can i make udfMsgBox to always on top?

Thanks
Erez

JTaylor

The WindowOnTop() function?

Jim

erezpaz

This will be good when calling external application and make it ontop but i want to make the udfMsgBox that display custom message on top. I got the function from here: http://winbatch.hpdd.de/MyWbtHelp/htm/udfMsgBox.htm

td

Look at Delev's site again.  Notice that he lists a set of flags applicable to the MssageBoxA function, including MB_SYSTEMMODAL = 4096.   System modal is what you are looking for.  BTW, you can use WindowOnTop to make WinBatch Dialogs and other WinBatch Windows "Top Most."
"No one who sees a peregrine falcon fly can ever forget the beauty and thrill of that flight."
  - Dr. Tom Cade