Discuss PocketC for CE (including Desktop Edition)

Postby kjm on Thu Mar 08, 2001 6:27 pm

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
Posts: 48
Joined: Wed Mar 07, 2001 4:02 pm
Location: United Kingdom

Postby darwin on Thu Mar 08, 2001 7:28 pm ... 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
Posts: 71
Joined: Tue Dec 05, 2000 12:04 pm
Location: Germany

Postby ianf on Fri Mar 09, 2001 7:16 am

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.

Posts: 92
Joined: Mon Dec 11, 2000 7:25 am
Location: United Kingdom

Return to PocketC for CE

Who is online

Users browsing this forum: No registered users and 1 guest