MDI_PostQuitMessage

<< Click to Display Table of Contents >>

Navigation:  ThinBASIC Modules > UI (User Interface) > DIALOGS > MDI Dialogs >

MDI_PostQuitMessage

 

Description

 

Indicates to the system that a thread has made a request to terminate (quit).

It is typically used in response to a %WM_DESTROY message.

 

Syntax

 

MDI_PostQuitMessage(nExitCode)

 

Returns

 

None.

 

Parameters

 

Name

Type

Optional

Meaning

nExitCode

Number

No

Specifies an application exit code. This value is used as the wParam parameter of the %WM_QUIT message.

 

Remarks

 

This function is a special version of the standard API PostQuitMessage.

It is "special" because it has to communicate with thinBasic MDI engine in order to clear and shutdown internal message loops.

 

Restrictions

 

See also

 

Examples