Show / Hide Table of Contents

Method WndUtil.CreateMessageOnlyWindow(+ 1 overload)


Overload

Creates native/unmanaged message-only window.

public static wnd CreateMessageOnlyWindow(string className, string name = null)
Parameters
className  (string)

Window class name. Can be any existing class.

name  (string)

Window name or null.

Returns
wnd
Exceptions
AuException

Failed to create window. Unlikely.

Remarks

Styles: WS_POPUP, WS_EX_NOACTIVATE. To destroy the window can be used any function, including API DestroyWindow, WndUtil.DestroyWindow, wnd.Close, API WM_CLOSE.


Overload(top)

Creates native/unmanaged message-only window and sets its window procedure.

public static wnd CreateMessageOnlyWindow(WNDPROC wndProc, string className, string name = null)
Parameters
wndProc  (WNDPROC)
className  (string)

Window class name.

name  (string)

Window name or null.

Returns
wnd
Exceptions
AuException

Failed to create window. Unlikely.

Remarks

Styles: WS_POPUP, WS_EX_NOACTIVATE. Calls WndUtil.CreateWindow with keepAlive=true.