Lindenmayer System
A Simple L-system Image Generator Featuring Turtle Graphics
Functions | Variables
Main.cpp File Reference

The window procedure WndProc(), and wWinMain(). More...

#include "CMain.h"

Go to the source code of this file.

Functions

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...
 

Variables

static CMaing_pMain = nullptr
 Pointer to the main class.
 

Function Documentation

◆ 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
hWndWindow handle.
messageMessage code.
wParamParameter for message.
lParamSecond 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
hInstHandle to the current instance.
hPrevUnused.
lpStrUnused.
nShowNonzero 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.