I've noticed that while sending %WM_CLOSE or %WM_QUIT
messages using the API SendMessage closes applications,
it does not appear to close windows that are merely open
folders (directories).
The syntax I'm using is
SendMessage sHandle, %WM_CLOSE, 0, 0
SendMessage sHandle, %WM_QUIT, 0, 0
where of course, sHandle is the handle of the window I want to close.
As I mentioned, this works fine if sHandle is a running task, but does not
seem to do anything if sHandle is an open folder.
Anyone know what I'm doing wrong, or more specifically, does
anyone know what one needs to do to close windows that are
open folders, rather than executing programs?
NB: This behavior does not seem to be consistant across the Windows
platforms I've tested.
Will close a Folder in Win 95 OSR2
Will NOT close a Folder in Win 98SE, Win ME or Win2K
[This message has been edited by Michael Burns (edited November 07, 2000).]
messages using the API SendMessage closes applications,
it does not appear to close windows that are merely open
folders (directories).
The syntax I'm using is
SendMessage sHandle, %WM_CLOSE, 0, 0
SendMessage sHandle, %WM_QUIT, 0, 0
where of course, sHandle is the handle of the window I want to close.
As I mentioned, this works fine if sHandle is a running task, but does not
seem to do anything if sHandle is an open folder.
Anyone know what I'm doing wrong, or more specifically, does
anyone know what one needs to do to close windows that are
open folders, rather than executing programs?
NB: This behavior does not seem to be consistant across the Windows
platforms I've tested.
Will close a Folder in Win 95 OSR2
Will NOT close a Folder in Win 98SE, Win ME or Win2K
[This message has been edited by Michael Burns (edited November 07, 2000).]
Comment