The window procedure WndProc(), and wWinMain().
More...
Go to the source code of this file.
|
| LRESULT CALLBACK | WndProc (HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam) |
| | Window procedure. More...
|
| |
| int WINAPI | wWinMain (HINSTANCE hInst, HINSTANCE hPrev, LPWSTR lpStr, int nShow) |
| | Winmain. More...
|
| |
◆ WndProc()
| LRESULT CALLBACK WndProc |
( |
HWND |
hWnd, |
|
|
UINT |
message, |
|
|
WPARAM |
wParam, |
|
|
LPARAM |
lParam |
|
) |
| |
This is the handler for messages from the operating system. This function assumes that the menu IDs for the L-System menu are consecutive and run from IDM_LSYS_BRANCHING to IDM_LSYS_HEXGOSPER (see WindowsHelpers.h).
- Parameters
-
| hWnd | Window handle. |
| message | Message code. |
| wParam | Parameter for message. |
| lParam | Second parameter for message if needed. |
- Returns
- 0 If message is handled.
Definition at line 41 of file Main.cpp.
◆ wWinMain()
| int WINAPI wWinMain |
( |
HINSTANCE |
hInst, |
|
|
HINSTANCE |
hPrev, |
|
|
LPWSTR |
lpStr, |
|
|
int |
nShow |
|
) |
| |
Initialize a window and start the message pump.
- Parameters
-
| hInst | Handle to the current instance. |
| hPrev | Unused. |
| lpStr | Unused. |
| nShow | Nonzero if window is to be shown. |
- Returns
- 0 If this application terminates correctly, otherwise an error code.
Definition at line 111 of file Main.cpp.