Main Page Namespace List Class Hierarchy Compound List File List Namespace Members Compound Members File Members Related Pages

# Window.h File Reference

More...

`#include <windows.h>`
`#include "Types.h"`
`#include <vector>`
`#include "Control.h"`
`#include "Menu.h"`
`#include "Icon.h"`
`#include "Cursor.h"`
`#include "CommonDlg.h"`

Go to the source code of this file.

## Namespaces
namespace | wkgl
## Defines
#define | MAX_PATH 260
#define | DO_NOTHING_ON_CLOSE 0
| Pass this to SetDefaultCloseOpperation to say that nothing should occur when the WM_CLOSE event occurs.
#define | EXIT_ON_CLOSE 1
| Pass this to SetDefaultCloseOpperation to say that the application should exit when the WM_CLOSE message occurs, i.e.
#define | DESTROY_ON_CLOSE 2
| Pass this to SetDefaultCloseOpperation to say that when the WM_CLOSE message occurs the following will be destroyed: the window itself, all child windows, window's menu will be destroyed, the thread message queue will be flushed, the windows timers will be destroyed, removes clipboard ownership, breaks the clipboard viewer chain, and the handle to the Window object will become invalid.
#define | HIDE_ON_CLOSE 3
| Pass this to SetDefaultCloseOpperation to say that when the WM_CLOSE message occurs Window::Hide() will be called.

## Detailed Description

## Define Documentation

#define DESTROY_ON_CLOSE 2

| Pass this to SetDefaultCloseOpperation to say that when the WM_CLOSE message occurs the following will be destroyed: the window itself, all child windows, window's menu will be destroyed, the thread message queue will be flushed, the windows timers will be destroyed, removes clipboard ownership, breaks the clipboard viewer chain, and the handle to the Window object will become invalid.

#define DO_NOTHING_ON_CLOSE 0

| Pass this to SetDefaultCloseOpperation to say that nothing should occur when the WM_CLOSE event occurs. This means you should handle it yourself or the window will never close.

#define EXIT_ON_CLOSE 1

| Pass this to SetDefaultCloseOpperation to say that the application should exit when the WM_CLOSE message occurs, i.e. PostQuitMessage is called.

#define HIDE_ON_CLOSE 3

| Pass this to SetDefaultCloseOpperation to say that when the WM_CLOSE message occurs Window::Hide() will be called.

#define MAX_PATH 260