WinapiExtension
 All Classes Files Functions Variables Typedefs Pages
Public Member Functions | Public Attributes | List of all members
msgBase Struct Reference

Wrap parameters of WndProc in a struct. Can be used for any message. More...

#include <msgBase.h>

Inheritance diagram for msgBase:
msgCaptureChanged msgCommand msgCreate msgCtlColor msgDropFiles msgEnable msgEraseBkgnd msgGetIcon msgGetMinMaxInfo msgKey msgMouse msgMove msgMoving msgNotify msgPrint msgScroll msgSize msgSizing msgStyleChanged msgTimer msgWindowPosChange

Public Member Functions

LRESULT Default ()
 
void Init (HWND pHwnd, UINT pMessage, WPARAM pWP, LPARAM pLP)
 
void Result (LRESULT res)
 
void ResultDefault ()
 

Public Attributes

HWND hwnd
 
LPARAM lp
 
UINT message
 
WindowMessageHandlermessageHandler
 
LRESULT result
 
bool resultSet
 
WPARAM wp
 

Detailed Description

Wrap parameters of WndProc in a struct. Can be used for any message.

Member Function Documentation

LRESULT msgBase::Default ( )
inline

Calls the default window procedure.

void msgBase::Init ( HWND  pHwnd,
UINT  pMessage,
WPARAM  pWP,
LPARAM  pLP 
)
inline

The reason to have an Init() function besides the ctor is to make subclassing easier (we don't need to override ctor's)

void msgBase::Result ( LRESULT  res)
inline

By calling Result(), the message is marked as finished and will not be further processed.

Parameters
resThe value that the window procedure will return for this message.
Note
If this function is used, the DefWindowProc will not be called, which can be useful if the default implementation needs to be stopped.
void msgBase::ResultDefault ( )
inline

Combines Result() and Default().


The documentation for this struct was generated from the following files: