Page 1 of 1

PostPosted: Thu Mar 08, 2001 6:27 pm
by kjm
Can Anyone Help Please?

I have used the following line from one of the examples to open a dialogue box over a coloured background:

createctrl("BUTTON", "0K", WS_VISIBLE|WS_CHILD,0, x2 - 49, y1 + 4, 20, 18, DIALOGUE_OK);

and it works fine, however, I now want to close it and preserve the background. So how do I close just the dialogue box? All I can find is the following!

#define WS_VISIBLE 0x10000000 /*Specifies a window that is initially visible. This style can be turned on and off to change window visibility.*/

But it doesn't say how to turn it off.

Many thanks

PostPosted: Thu Mar 08, 2001 7:28 pm
by darwin ... d=1275#doc
wndshow(int handle,int flag)
[int handle] window identifier [int flag] indicates how the window state. SW_SHOW = 5 SW_HIDE = 0

PostPosted: Fri Mar 09, 2001 7:16 am
by ianf
you can also remove a windows control using delgui(321) where 321 is the control id.
I have not tried this with a dialogue box but it works on edit boxes, buttons etc.