Glossary
Terms
API functions
- CreateWindowEx
- Creates a window or a control based on the styles and attributes passed to the function
- Prototype:
HWND CreateWindowEx(DWORD dwExStyle, LPCTSTR lpClassName, LPCTSTR lpWindowName, DWORD dwStyle, int x, int y, int nWidth, int nHeight, HWND hWndParent, HMENU hMenu, HINSTANCE hInstance, LPVOID lpParam); - Online MSDN reference
- DefWindowProc
- Provides default message processing for any window messages that are not processed by the application
- Prototype:
LRESULT DefWindowProc(HWND hWnd, UINT Msg, WPARAM wParam, LPARAM lParam); - Online MSDN reference
- DispatchMessage
- Sends a message received from the message queue to the application’s main window procedure
- Prototype:
LRESULT DispatchMessage(const MSG* lpmsg);
- Online MSDN reference
- EnableWindow
- Enables (or disables) a window or control
- Prototype:
BOOL EnableWindow(HWND hWnd, BOOL bEnable); - Online MSDN reference
- FindWindow
- Returns a handle to the window with the specified title (if one exists)
- Prototype:
HWND FindWindow(LPCTSTR lpClassName, LPCTSTR lpWindowName); - Online MSDN reference
- GetMessage
- Gets a message from the application’s message queue, returns non-zero on success, -1 if an error occured, or zero when WM_QUIT is retrieved
- Prototype:
BOOL GetMessage(LPMSG lpMsg, HWND hWnd, UINT wMsgFilterMin, UINT wMsgFilterMax); - Online MSDN reference
- PostQuitMessage
- PostQuitMessage is called when an application wishes to quit
- Prototype:
void PostQuitMessage(int nExitCode);
- Online MSDN reference
- RegisterClassEx
- Registers a new window class for use in CreateWindowEx
- Prototype:
ATOM RegisterClassEx(CONST WNDCLASSEX* lpwcx);
- Online MSDN reference
- ShowWindow
- Sets a window’s show state
- Prototype:
BOOL ShowWindow(HWND hWnd, int nCmdShow); - Online MSDN reference
- TranslateMessage
- Translates virtual keypresses into character messages and reinserts those messages into the application’s message queue
- Prototype:
BOOL TranslateMessage(const MSG* lpMsg);
- Online MSDN reference
- WinMain
- The entry point for all Windows-based GUI programs
- Prototype:
int WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow); - Online MSDN reference
