Sorting Network Verify and Draw
Check Whether Comparator Networks Sort and Draw Them
Functions | Variables
Main.cpp File Reference

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

#include "Includes.h"
#include "CMain.h"
#include "OddEven.h"
#include "Bitonic.h"
#include "Pairwise.h"
#include "Bubblesort.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...
 
static const int g_nMinW = 320
 Minimum window width. More...
 
static const int g_nMinH = 160
 Minimum window height. 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 53 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 191 of file Main.cpp.

Variable Documentation

◆ g_nMinH

const int g_nMinH = 160
static

Definition at line 42 of file Main.cpp.

◆ g_nMinW

const int g_nMinW = 320
static

Definition at line 41 of file Main.cpp.

◆ g_pMain

CMain* g_pMain = nullptr
static

Definition at line 39 of file Main.cpp.