Hidden windows showing up on taskbar, please help
Hidden windows showing up on taskbar, please help
I am working on a program that requires a hidden window.
I am using Win XP.
The main window in my program is off the screen with {WS_POPUP},
It used to not show the hidden window in the taskbar, but now it does.
This always worked before i had to reinstall my OS.
I used the same settings and installed same interpreter, win32lib,and
IDE versions.
The same thing happens with win32lib IDE in the hints window.
An example of what im trying to do is below, but in the real program
the window is off screen.
Is there any way to hide the main window?
-------------------------START CODE
-- code generated by Win32Lib IDE v0.18.2
include Win32Lib.ew
without warning
-- Window hidden_window
constant hidden_window = createEx( Window, "", 0, Default, Default, 400,
274, {WS_POPUP}, 0
)
constant PushButton13 = createEx( PushButton, "open normal_window",
hidden_window, 20, 16,
168, 28, 0, 0 )
-- Window normal_window
constant normal_window = createEx( Window, "normal window", 0, Default,
Default, 400, 300,
{WS_THICKFRAME, WS_SYSMENU, WS_MINIMIZEBOX, WS_MAXIMIZEBOX},
{WS_EX_DLGMODALFRAME} )
constant PushButton14 = createEx( PushButton, "close this window",
normal_window, 72, 20,
152, 28, 0, 0 )
constant PushButton15 = createEx( PushButton, "close progran",
normal_window, 88, 64, 88,
28, 0, 0 )
procedure hidden_window_onOpen (integer self, integer event, sequence
params)--params is ()
openWindow(normal_window,Normal)
end procedure
setHandler( hidden_window, w32HOpen, routine_id("hidden_window_onOpen"))
procedure PushButton13_onClick (integer self, integer event, sequence
params)--params is ()
openWindow(normal_window,Normal)
end procedure
setHandler( PushButton13, w32HClick, routine_id("PushButton13_onClick"))
procedure PushButton14_onClick (integer self, integer event, sequence
params)--params is ()
closeWindow(normal_window)
end procedure
setHandler( PushButton14, w32HClick, routine_id("PushButton14_onClick"))
procedure PushButton15_onClick (integer self, integer event, sequence
params)--params is ()
closeWindow(hidden_window)
end procedure
setHandler( PushButton15, w32HClick, routine_id("PushButton15_onClick"))
WinMain( hidden_window,Normal )
|
Not Categorized, Please Help
|
|