SHOWWINDOW API - Hide then show the same window.
Posted on 2005-03-15
I have the following procedure... I hide the window then I want to show it again, this code does not work. You can try this with calculator. Does anyone have a soultion to this problem.
Thanks in advance
Public Sub Dock_Window( _
ByVal sAppHandle As Long, _
ByVal lParentHandle As Long)
Dim lOriginalParent As Long
lOriginalParent = GetParent(sAppHandle)
Call ShowWindow(sAppHandle, 0) 'Hides the window
Call SetParent(sAppHandle, lOriginalParent)
Call ShowWindow(sAppHandle, 1)