CloseDialog Command

Purpose

Deletes a Dialog box shown with ShowDialog from the screen.

Syntax

CloseDialog n

Description

n is a value between 0 and 31.

Example

Dlg 3D On

Dialog # 1, 10, 10, 200, 100, "Trial Dialog", WS_SYSMENU

PushButton "Close", 11, 50, 20, 80, 25, 0

EndDialog

ShowDialog # 1

Do : Sleep : Until Me Is Nothing

Dlg 3D Off

 

Sub Dlg_1_Message(hWnd%, Mess%, wParam%, lParam%)

Switch Mess

Case WM_COMMAND

Trace wParam

If wParam = 11 Then CloseDialog # 1

EndSwitch

EndSub

See Also

Dialog, ShowDialog

{Created by Sjouke Hamstra; Last updated: 25/09/2014 by James Gaite}