Wang Tiling
A Simple Wang Tiling Generator
Functions | Variables
Main.cpp File Reference

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

#include "Includes.h"
#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. More...
 

Function Documentation

◆ WndProc()

LRESULT CALLBACK WndProc ( HWND  hWnd,
UINT  message,
WPARAM  wParam,
LPARAM  lParam 
)

This is the handler for messages from the operating system.

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 116 of file Main.cpp.

Variable Documentation

◆ g_pMain

CMain* g_pMain = nullptr
static

Definition at line 30 of file Main.cpp.