Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
29360 Discussions

Closing child windows in Quickwin program

csmao
Beginner
825 Views
Dear Colleagues:

I am new to IVF compiler (I used Lahey LF95 until now).
Can anyone tell me whether I can close a child window in a QUICKWIN program. I successfully build my project but unable to close the child window once it is created. I am exploring if I should use Fortran Windows Project instead of Quickwin.

Thanks.

Mao
0 Kudos
3 Replies
anthonyrichards
New Contributor III
825 Views
If you know the handle to the window, try sendinga WM_CLOSE message to is using
iSt=SendMessage(hChild,WM_CLOSE,0,0)
0 Kudos
david_jones
Beginner
825 Views

You can use the ordinary Fortran CLOSE statement, with the unit number set to the unit number you used to create the child window. The default option for "status" (DELETE) will close and clear the child window from the screen, while KEEP closes the window for further activity, but leaves it on the screen.

0 Kudos
csmao
Beginner
825 Views
Your comments are very helpful.
Thanks a lot.

Mao
0 Kudos
Reply